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
16
Issues
16
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
70e30da2
Commit
70e30da2
authored
Jan 19, 2019
by
Ille, Ondrej, Ing.
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test: Replace report with Vunit logger functions
parent
da253ce5
Pipeline
#5965
passed with stages
in 11 minutes and 59 seconds
Changes
5
Pipelines
1
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
169 additions
and
209 deletions
+169
-209
test/feature/arbitration_feature_tb.vhd
test/feature/arbitration_feature_tb.vhd
+4
-4
test/lib/CANtestLib.vhd
test/lib/CANtestLib.vhd
+159
-199
test/reference/tb_reference.vhd
test/reference/tb_reference.vhd
+2
-2
test/sanity/sanity_test.vhd
test/sanity/sanity_test.vhd
+2
-2
test/unit/Protocol_Control/Protocol_Control_tb.vhd
test/unit/Protocol_Control/Protocol_Control_tb.vhd
+2
-2
No files found.
test/feature/arbitration_feature_tb.vhd
View file @
70e30da2
...
...
@@ -308,9 +308,9 @@ package body Arbitration_feature is
-- Print Frame info
------------------------------------------------------------------------
info
(
"Frame 1:"
);
CAN_print_frame
(
frame_1
,
info_l
);
CAN_print_frame
(
frame_1
);
info
(
"Frame 2:"
);
CAN_print_frame
(
frame_2
,
info_l
);
CAN_print_frame
(
frame_2
);
------------------------------------------------------------------------
-- Check whether expected winner is the unit which lost the arbitration
...
...
@@ -343,9 +343,9 @@ package body Arbitration_feature is
-- Print Frame info
------------------------------------------------------------------------
info
(
"Frame 1:"
);
CAN_print_frame
(
frame_1
,
info_l
);
CAN_print_frame
(
frame_1
);
info
(
"Frame 2:"
);
CAN_print_frame
(
frame_2
,
info_l
);
CAN_print_frame
(
frame_2
);
------------------------------------------------------------------------
-- If error frame is transmitted and collision not have appeared
...
...
test/lib/CANtestLib.vhd
View file @
70e30da2
This diff is collapsed.
Click to expand it.
test/reference/tb_reference.vhd
View file @
70e30da2
...
...
@@ -409,10 +409,10 @@ begin
CAN_compare_frames
(
TX_frame
,
RX_frame
,
false
,
result
);
info
(
"TX Frame:"
);
CAN_print_frame
(
TX_frame
,
log_level
);
CAN_print_frame
(
TX_frame
);
info
(
"RX Frame:"
);
CAN_print_frame
(
RX_frame
,
log_level
);
CAN_print_frame
(
RX_frame
);
check
(
result
,
"TX, RX frames mismatch!"
);
...
...
test/sanity/sanity_test.vhd
View file @
70e30da2
...
...
@@ -372,7 +372,7 @@ architecture behavioral of sanity_test is
while
(
tx_mems
(
i
)(
tx_r_ptr
)(
8
)
=
'1'
)
loop
tmp_mem
:
=
tx_mems
(
i
);
read_frame_from_test_mem
(
TX_frame
,
tmp_mem
,
tx_r_ptr
);
CAN_print_frame
(
TX_frame
,
error_l
);
CAN_print_frame
(
TX_frame
);
end
loop
;
error
(
"RX Memory Node "
&
integer
'image
(
i
)
&
":"
);
...
...
@@ -380,7 +380,7 @@ architecture behavioral of sanity_test is
while
(
rx_mems
(
i
)(
rx_r_ptr
)(
8
)
=
'1'
)
loop
tmp_mem
:
=
rx_mems
(
i
);
read_frame_from_test_mem
(
RX_frame
,
tmp_mem
,
rx_r_ptr
);
CAN_print_frame
(
RX_frame
,
error_l
);
CAN_print_frame
(
RX_frame
);
end
loop
;
-- LCOV_EXCL_STOP
end
if
;
...
...
test/unit/Protocol_Control/Protocol_Control_tb.vhd
View file @
70e30da2
...
...
@@ -1219,10 +1219,10 @@ begin
-- Print the frames in the end
info
(
"Generated CAN frame:"
);
CAN_print_frame
(
tx_frame
,
info_l
);
CAN_print_frame
(
tx_frame
);
info
(
"Receied CAN frame:"
);
CAN_print_frame
(
rx_frame
,
info_l
);
CAN_print_frame
(
rx_frame
);
info
(
"Expected bit sequence:"
);
write
(
msg1
,
sw_seq
(
seq_length
-
1
downto
0
));
...
...
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