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
c42616f8
Commit
c42616f8
authored
Jul 21, 2018
by
Ille, Ondrej, Ing.
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added coverage exclusion for reference test.
parent
93292025
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
2 deletions
+15
-2
test/reference/tb_reference.vhd
test/reference/tb_reference.vhd
+15
-2
No files found.
test/reference/tb_reference.vhd
View file @
c42616f8
...
...
@@ -144,11 +144,13 @@ architecture CAN_reference_test of CAN_test is
begin
readline
(
input
,
entry
);
-- Read CAN Identifier
read
(
entry
,
flag
);
-- Read CAN Identifier
read
(
entry
,
flag
);
read_dummy_chars
(
entry
,
1
);
if
(
flag
/=
"CAN"
)
then
-- LCOV_EXCL_START
report
"Invalid input config format"
severity
error
;
-- LCOV_EXCL_STOP
end
if
;
-- Frame type
...
...
@@ -159,8 +161,10 @@ architecture CAN_reference_test of CAN_test is
elsif
(
flag
=
"FD "
)
then
frame
.
frame_format
:
=
FD_CAN
;
else
-- LCOV_EXCL_START
report
"Invalid CAN Frame format in Reference test input"
severity
error
;
-- LCOV_EXCL_STOP
end
if
;
-- Identifier type
...
...
@@ -171,8 +175,10 @@ architecture CAN_reference_test of CAN_test is
elsif
(
id_type
=
"EXTENDED"
)
then
frame
.
ident_type
:
=
EXTENDED
;
else
-- LCOV_EXCL_START
report
"Invalid CAN Identifier type in Reference test input"
severity
error
;
-- LCOV_EXCL_STOP
end
if
;
-- RTR Flag
...
...
@@ -358,9 +364,11 @@ begin
-- Input files contain 1K frames. It does not have sense to have longer
-- test!
if
(
iterations
>
1000
)
then
-- LCOV_EXCL_START
real_iterations
:
=
1000
;
log
(
"Number of refference test iterations truncated to 1000!"
,
warning_l
,
log_level
);
-- LCOV_EXCL_STOP
else
real_iterations
:
=
iterations
;
end
if
;
...
...
@@ -383,9 +391,11 @@ begin
-- can quickly move to failing frames!
------------------------------------------------------------------------
if
(
ITER_PRESET
>
0
)
then
-- LCOV_EXCL_START
for
i
in
0
to
ITER_PRESET
loop
read_bit_sequence
(
config_file
,
TX_frame
,
bit_sequence
,
rand_ctr
);
end
loop
;
-- LCOV_EXCL_STOP
end
if
;
while
(
loop_ctr
<
real_iterations
or
exit_imm
)
...
...
@@ -409,7 +419,9 @@ begin
-- CTU CAN FD
CAN_compare_frames
(
TX_frame
,
RX_frame
,
false
,
result
);
-- Print error if frames are not matching!
if
(
not
result
)
then
-- LCOV_EXCL_START
log
(
"Iteration nr: "
&
integer
'image
(
loop_ctr
),
info_l
,
log_level
);
log
(
"TX Frame:"
,
info_l
,
log_level
);
...
...
@@ -418,6 +430,7 @@ begin
CAN_print_frame
(
RX_frame
,
log_level
);
log
(
"TX, RX frames mismatch!"
,
error_l
,
log_level
);
process_error
(
error_ctr
,
error_beh
,
exit_imm
);
-- LCOV_EXCL_STOP
end
if
;
loop_ctr
<=
loop_ctr
+
1
;
...
...
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