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
1bd3f6aa
Commit
1bd3f6aa
authored
Jan 17, 2020
by
Ille, Ondrej, Ing.
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test: Constrain ERR_CAPT bit error TC!
parent
8e90f1b5
Pipeline
#15820
passed with stage
in 16 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
1 deletion
+12
-1
test/feature/err_capt_ctrl_bit_feature_tb.vhd
test/feature/err_capt_ctrl_bit_feature_tb.vhd
+12
-1
No files found.
test/feature/err_capt_ctrl_bit_feature_tb.vhd
View file @
1bd3f6aa
...
...
@@ -141,7 +141,18 @@ package body err_capt_ctrl_bit_feature is
for
i
in
1
to
4
loop
info
(
"Inner Loop: "
&
integer
'image
(
i
));
CAN_generate_frame
(
rand_ctr
,
frame_1
);
-- Detect patterns in which stuff bit might be placed. In such
-- case, avoid it. Because if we stuff the same value of bit as
-- we are trying to force, error frame will not be sent (obviously,
-- bus has equal value as is sent) and test will fail!
if
(
frame_1
.
dlc
(
3
)
=
frame_1
.
dlc
(
2
))
then
-- It is enough to break first two equal bits!
frame_1
.
dlc
(
3
)
:
=
not
frame_1
.
dlc
(
2
);
decode_dlc
(
frame_1
.
dlc
,
frame_1
.
data_length
);
end
if
;
-- ID is not important in this TC. Avoid overflows of high generated
-- IDs on Base IDs!
frame_1
.
identifier
:
=
10
;
...
...
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