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
27f06c1c
Commit
27f06c1c
authored
Dec 06, 2019
by
Ille, Ondrej, Ing.
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test: Debug BTR FD feature test.
RTR must not be present! Also RWCNT must be recalculated accordingly!
parent
e4862727
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletion
+11
-1
test/feature/btr_fd_feature_tb.vhd
test/feature/btr_fd_feature_tb.vhd
+11
-1
No files found.
test/feature/btr_fd_feature_tb.vhd
View file @
27f06c1c
...
...
@@ -213,11 +213,21 @@ package body btr_fd_feature is
CAN_generate_frame
(
rand_ctr
,
CAN_frame_1
);
CAN_frame_1
.
brs
:
=
BR_SHIFT
;
CAN_frame_1
.
frame_format
:
=
FD_CAN
;
-- Force DLC length to 1 byte only not to have long test run time!
CAN_frame_1
.
dlc
:
=
"0001"
;
decode_dlc
(
CAN_frame_1
.
dlc
,
CAN_frame_1
.
data_length
);
CAN_frame_1
.
data
(
0
)
:
=
x"AA"
;
-- We need to make sure that frame is not RTR frame, because CAN FD
-- frames have no RTR frames! This would lead to fail in check between
-- TX and RX frame! Also, we have to re-calculate RWCNT for the check
-- accordingly!
CAN_frame_1
.
rtr
:
=
NO_RTR_FRAME
;
decode_dlc_rx_buff
(
CAN_frame_1
.
dlc
,
CAN_frame_1
.
rwcnt
);
-- These data bytes are preloaded to have all elements of memory word
-- defined!
CAN_frame_1
.
data
(
1
)
:
=
x"BB"
;
CAN_frame_1
.
data
(
2
)
:
=
x"CC"
;
CAN_frame_1
.
data
(
3
)
:
=
x"DD"
;
...
...
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