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
e00f13f5
Commit
e00f13f5
authored
Dec 23, 2019
by
Ille, Ondrej, Ing.
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test: Add SSP config to BTR_FD feature test!
On high data bit-rates this is needed!
parent
1f0550de
Pipeline
#14501
passed with stages
in 25 minutes and 31 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
test/feature/btr_fd_feature_tb.vhd
test/feature/btr_fd_feature_tb.vhd
+6
-0
No files found.
test/feature/btr_fd_feature_tb.vhd
View file @
e00f13f5
...
...
@@ -106,6 +106,7 @@ package body btr_fd_feature is
variable
clock_meas
:
natural
:
=
0
;
variable
frames_equal
:
boolean
;
variable
ssp_pos
:
std_logic_vector
(
7
downto
0
);
begin
-----------------------------------------------------------------------
...
...
@@ -182,6 +183,11 @@ package body btr_fd_feature is
CAN_configure_timing
(
bus_timing
,
ID_1
,
mem_bus
(
1
));
CAN_configure_timing
(
bus_timing
,
ID_2
,
mem_bus
(
2
));
-- Configure SSP so that it samples in Data-bit rate and in 50 % of
-- expected received bit! We need it only for Node 1!
ssp_pos
:
=
std_logic_vector
(
to_unsigned
(
clock_per_bit
/
2
,
8
));
CAN_configure_ssp
(
ssp_meas_n_offset
,
ssp_pos
,
ID_1
,
mem_bus
(
1
));
-----------------------------------------------------------------------
-- 2. Enable both Nodes and send CAN FD frame where bit-rate is shifted
-- by Node 1. Wait until data field in Node 1 and measure duration
...
...
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