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
2ede9cf3
Commit
2ede9cf3
authored
Jun 13, 2018
by
Ille, Ondrej, Ing.
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Restricted step duration of RX Buffer unit test.
parent
b51a0fdb
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
36 additions
and
36 deletions
+36
-36
test/unit/Fault_confinement/Fault_confinement_tb.vhd
test/unit/Fault_confinement/Fault_confinement_tb.vhd
+32
-32
test/unit/RX_Buffer/RX_Buffer_tb.vhd
test/unit/RX_Buffer/RX_Buffer_tb.vhd
+4
-4
No files found.
test/unit/Fault_confinement/Fault_confinement_tb.vhd
View file @
2ede9cf3
...
...
@@ -437,9 +437,9 @@ end architecture;
architecture
Fault_confinement_unit_test_wrapper
of
CAN_test_wrapper
is
--Select architecture of the test
for
test_comp
:
CAN_test
use
entity
work
.
CAN_test
(
Fault_confinement_unit_test
);
--Select architecture of the test
for
test_comp
:
CAN_test
use
entity
work
.
CAN_test
(
Fault_confinement_unit_test
);
-- Input trigger, test starts running when true
signal
run
:
boolean
;
...
...
@@ -451,36 +451,36 @@ architecture Fault_confinement_unit_test_wrapper of CAN_test_wrapper is
begin
-- In this test wrapper generics are directly connected to the signals
-- of test entity
test_comp
:
CAN_test
port
map
(
run
=>
run
,
iterations
=>
iterations
,
log_level
=>
log_level
,
error_beh
=>
error_beh
,
error_tol
=>
error_tol
,
status
=>
status_int
,
errors
=>
errors
);
status
<=
status_int
;
------------------------------------
-- Starts the test and lets it run
------------------------------------
test
:
process
begin
run
<=
true
;
wait
for
1
ns
;
--Wait until the only test finishes and then propagate the results
wait
until
(
status_int
=
passed
or
status_int
=
failed
);
-- In this test wrapper generics are directly connected to the signals
-- of test entity
test_comp
:
CAN_test
port
map
(
run
=>
run
,
iterations
=>
iterations
,
log_level
=>
log_level
,
error_beh
=>
error_beh
,
error_tol
=>
error_tol
,
status
=>
status_int
,
errors
=>
errors
);
status
<=
status_int
;
------------------------------------
-- Starts the test and lets it run
------------------------------------
test
:
process
begin
run
<=
true
;
wait
for
1
ns
;
--Wait until the only test finishes and then propagate the results
wait
until
(
status_int
=
passed
or
status_int
=
failed
);
wait
for
100
ns
;
run
<=
false
;
wait
for
100
ns
;
run
<=
false
;
end
process
;
end
process
;
end
;
test/unit/RX_Buffer/RX_Buffer_tb.vhd
View file @
2ede9cf3
...
...
@@ -560,12 +560,12 @@ begin
-- Overall amount of errors is sum of errors from all processes
error_ctr
<=
stim_errs
+
read_errs
+
status_errs
+
cons_errs
;
-- Common input memory is considered full once there is less space
-- than RX buffer size
!
in_mem_full
<=
true
when
in_pointer
+
buff_size
+
1
>
1024
else
-- Common input memory is not filled totally so that one iteration
-- of test won't take too long
!
in_mem_full
<=
true
when
in_pointer
+
buff_size
+
1
>
300
else
false
;
out_mem_full
<=
true
when
out_pointer
+
buff_size
+
1
>
1024
else
out_mem_full
<=
true
when
out_pointer
+
buff_size
+
1
>
300
else
false
;
drv_bus
(
DRV_READ_START_INDEX
)
<=
drv_read_start
;
...
...
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