Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
CTU CAN FD IP Core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
14
Issues
14
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
canbus
CTU CAN FD IP Core
Commits
c72728eb
Commit
c72728eb
authored
Jul 14, 2018
by
Ille, Ondrej, Ing.
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
RTR pref feature test bug-fix.
parent
8afbc658
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
test/feature/rtr_pref_feature_tb.vhd
test/feature/rtr_pref_feature_tb.vhd
+6
-6
No files found.
test/feature/rtr_pref_feature_tb.vhd
View file @
c72728eb
...
...
@@ -80,7 +80,7 @@ package rtr_pref_feature is
variable
o
:
out
feature_outputs_t
;
signal
so
:
out
feature_signal_outputs_t
;
signal
rand_ctr
:
inout
natural
range
0
to
RAND_POOL_SIZE
;
signal
iout
:
in
instance_
in
puts_arr_t
;
signal
iout
:
in
instance_
out
puts_arr_t
;
signal
mem_bus
:
inout
mem_bus_arr_t
;
signal
bus_level
:
in
std_logic
);
...
...
@@ -107,7 +107,7 @@ package body rtr_pref_feature is
false
,
false
,
false
,
false
,
false
,
false
,
false
);
begin
outcome
:
=
true
;
o
.
o
utcome
:
=
true
;
------------------------------------------------------------------------
-- Part 1
...
...
@@ -138,7 +138,7 @@ package body rtr_pref_feature is
------------------------------------------------------------------------
CAN_send_frame
(
tx_frame
,
1
,
ID_1
,
mem_bus_1
,
frame_sent
);
if
(
not
frame_sent
)
then
outcome
:
=
false
;
o
.
o
utcome
:
=
false
;
end
if
;
CAN_wait_frame_sent
(
ID_2
,
mem_bus_2
);
...
...
@@ -147,7 +147,7 @@ package body rtr_pref_feature is
------------------------------------------------------------------------
CAN_read_frame
(
rx_frame
,
ID_2
,
mem_bus_2
);
if
(
rx_frame
.
dlc
/=
x"0"
)
then
outcome
:
=
false
;
o
.
o
utcome
:
=
false
;
end
if
;
...
...
@@ -173,7 +173,7 @@ package body rtr_pref_feature is
------------------------------------------------------------------------
CAN_send_frame
(
tx_frame
,
1
,
ID_1
,
mem_bus_1
,
frame_sent
);
if
(
not
frame_sent
)
then
outcome
:
=
false
;
o
.
o
utcome
:
=
false
;
end
if
;
CAN_wait_frame_sent
(
ID_2
,
mem_bus_2
);
...
...
@@ -182,7 +182,7 @@ package body rtr_pref_feature is
------------------------------------------------------------------------
CAN_read_frame
(
rx_frame
,
ID_2
,
mem_bus_2
);
if
(
rx_frame
.
dlc
/=
tx_frame
.
dlc
)
then
outcome
:
=
false
;
o
.
o
utcome
:
=
false
;
end
if
;
end
procedure
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment