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
c4bb605f
Commit
c4bb605f
authored
Jan 03, 2020
by
Ille, Ondrej, Ing.
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test: Remove unused variable declarations from feature tests.
parent
95513606
Changes
71
Hide whitespace changes
Inline
Side-by-side
Showing
71 changed files
with
58 additions
and
981 deletions
+58
-981
test/feature/alc_base_id_feature_tb.vhd
test/feature/alc_base_id_feature_tb.vhd
+1
-8
test/feature/alc_id_extension_feature_tb.vhd
test/feature/alc_id_extension_feature_tb.vhd
+1
-8
test/feature/alc_ide_feature_tb.vhd
test/feature/alc_ide_feature_tb.vhd
+1
-7
test/feature/alc_rtr_r0_feature_tb.vhd
test/feature/alc_rtr_r0_feature_tb.vhd
+1
-11
test/feature/alc_srr_rtr_2_feature_tb.vhd
test/feature/alc_srr_rtr_2_feature_tb.vhd
+1
-13
test/feature/alc_srr_rtr_feature_tb.vhd
test/feature/alc_srr_rtr_feature_tb.vhd
+2
-15
test/feature/btr_fd_feature_tb.vhd
test/feature/btr_fd_feature_tb.vhd
+0
-9
test/feature/btr_feature_tb.vhd
test/feature/btr_feature_tb.vhd
+0
-9
test/feature/btr_ssp_access_feature_tb.vhd
test/feature/btr_ssp_access_feature_tb.vhd
+1
-8
test/feature/bus_start_feature_tb.vhd
test/feature/bus_start_feature_tb.vhd
+0
-4
test/feature/byte_enable_feature_tb.vhd
test/feature/byte_enable_feature_tb.vhd
+0
-1
test/feature/command_cdo_feature_tb.vhd
test/feature/command_cdo_feature_tb.vhd
+2
-18
test/feature/command_frcrst_feature_tb.vhd
test/feature/command_frcrst_feature_tb.vhd
+1
-22
test/feature/command_rrb_feature_tb.vhd
test/feature/command_rrb_feature_tb.vhd
+1
-18
test/feature/device_id_feature_tb.vhd
test/feature/device_id_feature_tb.vhd
+1
-23
test/feature/err_capt_arb_bit_feature_tb.vhd
test/feature/err_capt_arb_bit_feature_tb.vhd
+2
-23
test/feature/err_capt_crc_bit_feature_tb.vhd
test/feature/err_capt_crc_bit_feature_tb.vhd
+1
-27
test/feature/err_capt_ctrl_bit_feature_tb.vhd
test/feature/err_capt_ctrl_bit_feature_tb.vhd
+2
-27
test/feature/err_capt_ctrl_form_feature_tb.vhd
test/feature/err_capt_ctrl_form_feature_tb.vhd
+2
-30
test/feature/err_capt_data_bit_feature_tb.vhd
test/feature/err_capt_data_bit_feature_tb.vhd
+1
-28
test/feature/err_capt_sof_feature_tb.vhd
test/feature/err_capt_sof_feature_tb.vhd
+2
-31
test/feature/err_norm_fd_feature_tb.vhd
test/feature/err_norm_fd_feature_tb.vhd
+1
-24
test/feature/error_rules_a_feature_tb.vhd
test/feature/error_rules_a_feature_tb.vhd
+0
-6
test/feature/error_rules_b_feature_tb.vhd
test/feature/error_rules_b_feature_tb.vhd
+1
-7
test/feature/error_rules_c_feature_tb.vhd
test/feature/error_rules_c_feature_tb.vhd
+2
-5
test/feature/error_rules_d_feature_tb.vhd
test/feature/error_rules_d_feature_tb.vhd
+0
-10
test/feature/error_rules_e_feature_tb.vhd
test/feature/error_rules_e_feature_tb.vhd
+0
-10
test/feature/error_rules_f_rx_feature_tb.vhd
test/feature/error_rules_f_rx_feature_tb.vhd
+0
-12
test/feature/error_rules_f_tx_feature_tb.vhd
test/feature/error_rules_f_tx_feature_tb.vhd
+0
-10
test/feature/error_rules_g_feature_tb.vhd
test/feature/error_rules_g_feature_tb.vhd
+1
-12
test/feature/fault_state_feature_tb.vhd
test/feature/fault_state_feature_tb.vhd
+0
-12
test/feature/int_do_feature_tb.vhd
test/feature/int_do_feature_tb.vhd
+0
-15
test/feature/int_ewl_feature_tb.vhd
test/feature/int_ewl_feature_tb.vhd
+0
-14
test/feature/int_fcs_feature_tb.vhd
test/feature/int_fcs_feature_tb.vhd
+0
-15
test/feature/int_rx_feature_tb.vhd
test/feature/int_rx_feature_tb.vhd
+0
-13
test/feature/int_tx_feature_tb.vhd
test/feature/int_tx_feature_tb.vhd
+0
-12
test/feature/invalid_configs_feature_tb.vhd
test/feature/invalid_configs_feature_tb.vhd
+0
-3
test/feature/mode_fd_enable_feature_tb.vhd
test/feature/mode_fd_enable_feature_tb.vhd
+1
-11
test/feature/mode_frame_filters_feature_tb.vhd
test/feature/mode_frame_filters_feature_tb.vhd
+2
-13
test/feature/mode_listen_only_feature_tb.vhd
test/feature/mode_listen_only_feature_tb.vhd
+1
-9
test/feature/mode_loopback_feature_tb.vhd
test/feature/mode_loopback_feature_tb.vhd
+1
-10
test/feature/mode_rst_feature_tb.vhd
test/feature/mode_rst_feature_tb.vhd
+0
-24
test/feature/mode_self_test_feature_tb.vhd
test/feature/mode_self_test_feature_tb.vhd
+1
-9
test/feature/mode_test_feature_tb.vhd
test/feature/mode_test_feature_tb.vhd
+2
-14
test/feature/no_sof_tx_feature_tb.vhd
test/feature/no_sof_tx_feature_tb.vhd
+1
-17
test/feature/one_shot_feature_tb.vhd
test/feature/one_shot_feature_tb.vhd
+0
-9
test/feature/overload_feature_tb.vhd
test/feature/overload_feature_tb.vhd
+1
-27
test/feature/rec_saturation_feature_tb.vhd
test/feature/rec_saturation_feature_tb.vhd
+0
-14
test/feature/retr_limit_2_feature_tb.vhd
test/feature/retr_limit_2_feature_tb.vhd
+1
-8
test/feature/retr_limit_3_feature_tb.vhd
test/feature/retr_limit_3_feature_tb.vhd
+1
-8
test/feature/retr_limit_feature_tb.vhd
test/feature/retr_limit_feature_tb.vhd
+0
-7
test/feature/rx_buf_empty_read_feature_tb.vhd
test/feature/rx_buf_empty_read_feature_tb.vhd
+1
-22
test/feature/rx_settings_rtsop_feature_tb.vhd
test/feature/rx_settings_rtsop_feature_tb.vhd
+0
-2
test/feature/ssp_cfg_feature_tb.vhd
test/feature/ssp_cfg_feature_tb.vhd
+3
-25
test/feature/status_eft_feature_tb.vhd
test/feature/status_eft_feature_tb.vhd
+2
-22
test/feature/status_ewl_feature_tb.vhd
test/feature/status_ewl_feature_tb.vhd
+1
-24
test/feature/status_idle_feature_tb.vhd
test/feature/status_idle_feature_tb.vhd
+1
-19
test/feature/status_rxne_feature_tb.vhd
test/feature/status_rxne_feature_tb.vhd
+3
-20
test/feature/status_rxs_feature_tb.vhd
test/feature/status_rxs_feature_tb.vhd
+1
-22
test/feature/status_txnf_feature_tb.vhd
test/feature/status_txnf_feature_tb.vhd
+1
-21
test/feature/status_txs_feature_tb.vhd
test/feature/status_txs_feature_tb.vhd
+1
-22
test/feature/stuff_in_data_feature_tb.vhd
test/feature/stuff_in_data_feature_tb.vhd
+0
-1
test/feature/timestamp_low_high_feature_tb.vhd
test/feature/timestamp_low_high_feature_tb.vhd
+0
-2
test/feature/trv_delay_feature_tb.vhd
test/feature/trv_delay_feature_tb.vhd
+1
-5
test/feature/tx_cmd_set_abort_feature_tb.vhd
test/feature/tx_cmd_set_abort_feature_tb.vhd
+0
-6
test/feature/tx_cmd_set_empty_feature_tb.vhd
test/feature/tx_cmd_set_empty_feature_tb.vhd
+0
-4
test/feature/tx_cmd_set_ready_feature_tb.vhd
test/feature/tx_cmd_set_ready_feature_tb.vhd
+1
-5
test/feature/tx_from_intermission_feature_tb.vhd
test/feature/tx_from_intermission_feature_tb.vhd
+1
-21
test/feature/tx_priority_feature_tb.vhd
test/feature/tx_priority_feature_tb.vhd
+0
-9
test/feature/tx_status_feature_tb.vhd
test/feature/tx_status_feature_tb.vhd
+1
-18
test/feature/txt_buffer_hazard_feature_tb.vhd
test/feature/txt_buffer_hazard_feature_tb.vhd
+0
-11
No files found.
test/feature/alc_base_id_feature_tb.vhd
View file @
c4bb605f
...
...
@@ -101,24 +101,17 @@ package body alc_base_id_feature is
signal
mem_bus
:
inout
mem_bus_arr_t
;
signal
bus_level
:
in
std_logic
)
is
variable
rand_value
:
real
;
variable
alc
:
natural
;
-- Some unit lost the arbitration...
-- 0 - initial , 1-Node 1 turned rec, 2 - Node 2 turned rec
variable
unit_rec
:
natural
:
=
0
;
variable
ID_1
:
natural
:
=
1
;
variable
ID_2
:
natural
:
=
2
;
variable
r_data
:
std_logic_vector
(
31
downto
0
)
:
=
(
OTHERS
=>
'0'
);
-- Generated frames
variable
frame_1
:
SW_CAN_frame_type
;
variable
frame_2
:
SW_CAN_frame_type
;
variable
frame_rx
:
SW_CAN_frame_type
;
-- Node status
variable
stat_1
:
SW_status
;
variable
stat_2
:
SW_status
;
variable
pc_dbg
:
SW_PC_Debug
;
...
...
test/feature/alc_id_extension_feature_tb.vhd
View file @
c4bb605f
...
...
@@ -99,24 +99,17 @@ package body alc_id_extension_feature is
signal
mem_bus
:
inout
mem_bus_arr_t
;
signal
bus_level
:
in
std_logic
)
is
variable
rand_value
:
real
;
variable
alc
:
natural
;
-- Some unit lost the arbitration...
-- 0 - initial , 1-Node 1 turned rec, 2 - Node 2 turned rec
variable
unit_rec
:
natural
:
=
0
;
variable
ID_1
:
natural
:
=
1
;
variable
ID_2
:
natural
:
=
2
;
variable
r_data
:
std_logic_vector
(
31
downto
0
)
:
=
(
OTHERS
=>
'0'
);
-- Generated frames
variable
frame_1
:
SW_CAN_frame_type
;
variable
frame_2
:
SW_CAN_frame_type
;
variable
frame_rx
:
SW_CAN_frame_type
;
-- Node status
variable
stat_1
:
SW_status
;
variable
stat_2
:
SW_status
;
variable
pc_dbg
:
SW_PC_Debug
;
...
...
test/feature/alc_ide_feature_tb.vhd
View file @
c4bb605f
...
...
@@ -88,17 +88,11 @@ package body alc_ide_feature is
signal
mem_bus
:
inout
mem_bus_arr_t
;
signal
bus_level
:
in
std_logic
)
is
variable
rand_value
:
real
;
variable
alc
:
natural
;
-- Some unit lost the arbitration...
-- 0 - initial , 1-Node 1 turned rec, 2 - Node 2 turned rec
variable
unit_rec
:
natural
:
=
0
;
variable
ID_1
:
natural
:
=
1
;
variable
ID_2
:
natural
:
=
2
;
variable
r_data
:
std_logic_vector
(
31
downto
0
)
:
=
(
OTHERS
=>
'0'
);
-- Generated frames
variable
frame_1
:
SW_CAN_frame_type
;
variable
frame_2
:
SW_CAN_frame_type
;
...
...
test/feature/alc_rtr_r0_feature_tb.vhd
View file @
c4bb605f
...
...
@@ -90,17 +90,11 @@ package body alc_rtr_r0_feature is
signal
mem_bus
:
inout
mem_bus_arr_t
;
signal
bus_level
:
in
std_logic
)
is
variable
rand_value
:
real
;
variable
alc
:
natural
;
-- Some unit lost the arbitration...
-- 0 - initial , 1-Node 1 turned rec, 2 - Node 2 turned rec
variable
unit_rec
:
natural
:
=
0
;
variable
ID_1
:
natural
:
=
1
;
variable
ID_2
:
natural
:
=
2
;
variable
r_data
:
std_logic_vector
(
31
downto
0
)
:
=
(
OTHERS
=>
'0'
);
-- Generated frames
variable
frame_1
:
SW_CAN_frame_type
;
variable
frame_2
:
SW_CAN_frame_type
;
...
...
@@ -109,14 +103,10 @@ package body alc_rtr_r0_feature is
-- Node status
variable
stat_1
:
SW_status
;
variable
stat_2
:
SW_status
;
variable
pc_dbg
:
SW_PC_Debug
;
variable
txt_buf_state
:
SW_TXT_Buffer_state_type
;
variable
rx_buf_info
:
SW_RX_Buffer_info
;
variable
frames_equal
:
boolean
:
=
false
;
variable
id_vect
:
std_logic_vector
(
28
downto
0
);
begin
-----------------------------------------------------------------------
...
...
test/feature/alc_srr_rtr_2_feature_tb.vhd
View file @
c4bb605f
...
...
@@ -96,17 +96,11 @@ package body alc_srr_rtr_2_feature is
signal
mem_bus
:
inout
mem_bus_arr_t
;
signal
bus_level
:
in
std_logic
)
is
variable
rand_value
:
real
;
variable
alc
:
natural
;
-- Some unit lost the arbitration...
-- 0 - initial , 1-Node 1 turned rec, 2 - Node 2 turned rec
variable
unit_rec
:
natural
:
=
0
;
variable
ID_1
:
natural
:
=
1
;
variable
ID_2
:
natural
:
=
2
;
variable
r_data
:
std_logic_vector
(
31
downto
0
)
:
=
(
OTHERS
=>
'0'
);
-- Generated frames
variable
frame_1
:
SW_CAN_frame_type
;
variable
frame_2
:
SW_CAN_frame_type
;
...
...
@@ -116,12 +110,6 @@ package body alc_srr_rtr_2_feature is
variable
stat_1
:
SW_status
;
variable
stat_2
:
SW_status
;
variable
pc_dbg
:
SW_PC_Debug
;
variable
txt_buf_state
:
SW_TXT_Buffer_state_type
;
variable
rx_buf_info
:
SW_RX_Buffer_info
;
variable
frames_equal
:
boolean
:
=
false
;
variable
id_vect
:
std_logic_vector
(
28
downto
0
);
begin
...
...
test/feature/alc_srr_rtr_feature_tb.vhd
View file @
c4bb605f
...
...
@@ -97,32 +97,19 @@ package body alc_srr_rtr_feature is
signal
mem_bus
:
inout
mem_bus_arr_t
;
signal
bus_level
:
in
std_logic
)
is
variable
rand_value
:
real
;
variable
alc
:
natural
;
-- Some unit lost the arbitration...
-- 0 - initial , 1-Node 1 turned rec, 2 - Node 2 turned rec
variable
unit_rec
:
natural
:
=
0
;
variable
ID_1
:
natural
:
=
1
;
variable
ID_2
:
natural
:
=
2
;
variable
r_data
:
std_logic_vector
(
31
downto
0
)
:
=
(
OTHERS
=>
'0'
);
-- Generated frames
variable
frame_1
:
SW_CAN_frame_type
;
variable
frame_2
:
SW_CAN_frame_type
;
variable
frame_rx
:
SW_CAN_frame_type
;
-- Node status
variable
stat_1
:
SW_status
;
variable
stat_2
:
SW_status
;
variable
pc_dbg
:
SW_PC_Debug
;
variable
txt_buf_state
:
SW_TXT_Buffer_state_type
;
variable
rx_buf_info
:
SW_RX_Buffer_info
;
variable
frames_equal
:
boolean
:
=
false
;
variable
id_vect
:
std_logic_vector
(
28
downto
0
);
begin
...
...
test/feature/btr_fd_feature_tb.vhd
View file @
c4bb605f
...
...
@@ -89,16 +89,7 @@ package body btr_fd_feature is
variable
ID_2
:
natural
:
=
2
;
variable
CAN_frame_1
:
SW_CAN_frame_type
;
variable
CAN_frame_2
:
SW_CAN_frame_type
;
variable
CAN_frame_3
:
SW_CAN_frame_type
;
variable
frame_sent
:
boolean
:
=
false
;
variable
mode
:
SW_mode
:
=
SW_mode_rst_val
;
variable
rx_state
:
SW_RX_Buffer_info
;
variable
fault_state_1
:
SW_fault_state
;
variable
fault_state_2
:
SW_fault_state
;
variable
read_state
:
SW_PC_Debug
;
variable
status
:
SW_status
;
variable
bus_timing
:
bit_time_config_type
;
...
...
test/feature/btr_feature_tb.vhd
View file @
c4bb605f
...
...
@@ -87,16 +87,7 @@ package body btr_feature is
variable
ID_2
:
natural
:
=
2
;
variable
CAN_frame_1
:
SW_CAN_frame_type
;
variable
CAN_frame_2
:
SW_CAN_frame_type
;
variable
CAN_frame_3
:
SW_CAN_frame_type
;
variable
frame_sent
:
boolean
:
=
false
;
variable
mode
:
SW_mode
:
=
SW_mode_rst_val
;
variable
rx_state
:
SW_RX_Buffer_info
;
variable
fault_state_1
:
SW_fault_state
;
variable
fault_state_2
:
SW_fault_state
;
variable
read_state
:
SW_PC_Debug
;
variable
status
:
SW_status
;
variable
bus_timing
:
bit_time_config_type
;
...
...
test/feature/btr_ssp_access_feature_tb.vhd
View file @
c4bb605f
...
...
@@ -83,14 +83,7 @@ package body btr_ssp_access_feature is
)
is
constant
ID_1
:
natural
:
=
1
;
constant
ID_2
:
natural
:
=
2
;
variable
CAN_frame
:
SW_CAN_frame_type
;
variable
CAN_frame_2
:
SW_CAN_frame_type
:
=
(
0
,
(
OTHERS
=>
(
OTHERS
=>
'0'
)),
"0000"
,
0
,
'0'
,
'0'
,
'0'
,
'0'
,
'0'
,
(
OTHERS
=>
'0'
),
0
);
variable
frame_sent
:
boolean
;
variable
frames_equal
:
boolean
;
variable
pc_dbg
:
SW_PC_Debug
;
variable
btr
:
std_logic_vector
(
31
downto
0
)
:
=
(
OTHERS
=>
'0'
);
variable
btr_fd
:
std_logic_vector
(
31
downto
0
)
:
=
...
...
test/feature/bus_start_feature_tb.vhd
View file @
c4bb605f
...
...
@@ -95,10 +95,6 @@ package body bus_start_feature is
variable
ID_2
:
natural
:
=
2
;
variable
CAN_frame_1
:
SW_CAN_frame_type
;
variable
CAN_frame_2
:
SW_CAN_frame_type
;
variable
CAN_frame_3
:
SW_CAN_frame_type
;
variable
frame_sent
:
boolean
:
=
false
;
variable
mode
:
SW_mode
:
=
SW_mode_rst_val
;
variable
rx_state
:
SW_RX_Buffer_info
;
variable
fault_state_1
:
SW_fault_state
;
variable
fault_state_2
:
SW_fault_state
;
...
...
test/feature/byte_enable_feature_tb.vhd
View file @
c4bb605f
...
...
@@ -94,7 +94,6 @@ package body byte_enable_feature is
variable
address
:
std_logic_vector
(
11
downto
0
)
:
=
(
OTHERS
=>
'0'
);
variable
ID
:
natural
:
=
1
;
variable
errmsg
:
line
;
begin
------------------------------------------------------------------------
...
...
test/feature/command_cdo_feature_tb.vhd
View file @
c4bb605f
...
...
@@ -91,33 +91,17 @@ package body command_cdo_feature is
signal
mem_bus
:
inout
mem_bus_arr_t
;
signal
bus_level
:
in
std_logic
)
is
variable
rand_value
:
real
;
variable
alc
:
natural
;
-- Some unit lost the arbitration...
-- 0 - initial , 1-Node 1 turned rec, 2 - Node 2 turned rec
variable
unit_rec
:
natural
:
=
0
;
variable
ID_1
:
natural
:
=
1
;
variable
ID_2
:
natural
:
=
2
;
variable
r_data
:
std_logic_vector
(
31
downto
0
)
:
=
(
OTHERS
=>
'0'
);
-- Generated frames
variable
frame_1
:
SW_CAN_frame_type
;
variable
frame_2
:
SW_CAN_frame_type
;
variable
frame_rx
:
SW_CAN_frame_type
;
-- Node status
variable
stat_1
:
SW_status
;
variable
stat_2
:
SW_status
;
variable
pc_dbg
:
SW_PC_Debug
;
variable
txt_buf_state
:
SW_TXT_Buffer_state_type
;
variable
rx_buf_info
:
SW_RX_Buffer_info
;
variable
frames_equal
:
boolean
:
=
false
;
variable
rx_buf_info
:
SW_RX_Buffer_info
;
variable
id_vect
:
std_logic_vector
(
28
downto
0
);
variable
command
:
SW_command
:
=
SW_command_rst_val
;
begin
...
...
test/feature/command_frcrst_feature_tb.vhd
View file @
c4bb605f
...
...
@@ -85,33 +85,12 @@ package body command_frcrst_feature is
signal
mem_bus
:
inout
mem_bus_arr_t
;
signal
bus_level
:
in
std_logic
)
is
variable
rand_value
:
real
;
variable
alc
:
natural
;
-- Some unit lost the arbitration...
-- 0 - initial , 1-Node 1 turned rec, 2 - Node 2 turned rec
variable
unit_rec
:
natural
:
=
0
;
variable
ID_1
:
natural
:
=
1
;
variable
ID_2
:
natural
:
=
2
;
variable
r_data
:
std_logic_vector
(
31
downto
0
)
:
=
(
OTHERS
=>
'0'
);
-- Generated frames
variable
frame_1
:
SW_CAN_frame_type
;
variable
frame_2
:
SW_CAN_frame_type
;
variable
frame_rx
:
SW_CAN_frame_type
;
-- Node status
variable
stat_1
:
SW_status
;
variable
stat_2
:
SW_status
;
variable
pc_dbg
:
SW_PC_Debug
;
variable
txt_buf_state
:
SW_TXT_Buffer_state_type
;
variable
rx_buf_info
:
SW_RX_Buffer_info
;
variable
frames_equal
:
boolean
:
=
false
;
variable
id_vect
:
std_logic_vector
(
28
downto
0
);
variable
command
:
SW_command
:
=
SW_command_rst_val
;
variable
traff_ctrs_1
:
SW_traffic_counters
;
...
...
test/feature/command_rrb_feature_tb.vhd
View file @
c4bb605f
...
...
@@ -90,33 +90,16 @@ package body command_rrb_feature is
signal
mem_bus
:
inout
mem_bus_arr_t
;
signal
bus_level
:
in
std_logic
)
is
variable
rand_value
:
real
;
variable
alc
:
natural
;
-- Some unit lost the arbitration...
-- 0 - initial , 1-Node 1 turned rec, 2 - Node 2 turned rec
variable
unit_rec
:
natural
:
=
0
;
variable
ID_1
:
natural
:
=
1
;
variable
ID_2
:
natural
:
=
2
;
variable
r_data
:
std_logic_vector
(
31
downto
0
)
:
=
(
OTHERS
=>
'0'
);
-- Generated frames
variable
frame_1
:
SW_CAN_frame_type
;
variable
frame_2
:
SW_CAN_frame_type
;
variable
frame_rx
:
SW_CAN_frame_type
;
-- Node status
variable
stat_1
:
SW_status
;
variable
stat_2
:
SW_status
;
variable
pc_dbg
:
SW_PC_Debug
;
variable
txt_buf_state
:
SW_TXT_Buffer_state_type
;
variable
rx_buf_info
:
SW_RX_Buffer_info
;
variable
frames_equal
:
boolean
:
=
false
;
variable
id_vect
:
std_logic_vector
(
28
downto
0
);
variable
command
:
SW_command
:
=
SW_command_rst_val
;
begin
...
...
test/feature/device_id_feature_tb.vhd
View file @
c4bb605f
...
...
@@ -77,33 +77,11 @@ package body device_id_feature is
signal
mem_bus
:
inout
mem_bus_arr_t
;
signal
bus_level
:
in
std_logic
)
is
variable
rand_value
:
real
;
variable
alc
:
natural
;
-- Some unit lost the arbitration...
-- 0 - initial , 1-Node 1 turned rec, 2 - Node 2 turned rec
variable
unit_rec
:
natural
:
=
0
;
variable
ID_1
:
natural
:
=
1
;
variable
ID_2
:
natural
:
=
2
;
variable
r_data
:
std_logic_vector
(
31
downto
0
)
:
=
(
OTHERS
=>
'0'
);
-- Generated frames
variable
frame_1
:
SW_CAN_frame_type
;
variable
frame_2
:
SW_CAN_frame_type
;
variable
frame_rx
:
SW_CAN_frame_type
;
-- Node status
variable
stat_1
:
SW_status
;
variable
stat_2
:
SW_status
;
variable
pc_dbg
:
SW_PC_Debug
;
variable
txt_buf_state
:
SW_TXT_Buffer_state_type
;
variable
rx_buf_info
:
SW_RX_Buffer_info
;
variable
frames_equal
:
boolean
:
=
false
;
variable
id_vect
:
std_logic_vector
(
28
downto
0
);
begin
-----------------------------------------------------------------------
...
...
@@ -115,7 +93,7 @@ package body device_id_feature is
check
(
r_data
(
DEVICE_ID_H
downto
DEVICE_ID_L
)
=
CTU_CAN_FD_ID
,
"CTU CAN FD device ID check"
);
wait
for
100
0
ns
;
wait
for
100
ns
;
end
procedure
;
...
...
test/feature/err_capt_arb_bit_feature_tb.vhd
View file @
c4bb605f
...
...
@@ -82,41 +82,20 @@ package body err_capt_arb_bit_feature is
signal
mem_bus
:
inout
mem_bus_arr_t
;
signal
bus_level
:
in
std_logic
)
is
variable
rand_value
:
real
;
variable
alc
:
natural
;
-- Some unit lost the arbitration...
-- 0 - initial , 1-Node 1 turned rec, 2 - Node 2 turned rec
variable
unit_rec
:
natural
:
=
0
;
variable
ID_1
:
natural
:
=
1
;
variable
ID_2
:
natural
:
=
2
;
variable
r_data
:
std_logic_vector
(
31
downto
0
)
:
=
(
OTHERS
=>
'0'
);
-- Generated frames
variable
frame_1
:
SW_CAN_frame_type
;
variable
frame_2
:
SW_CAN_frame_type
;
variable
frame_rx
:
SW_CAN_frame_type
;
-- Node status
variable
stat_1
:
SW_status
;
variable
stat_2
:
SW_status
;
variable
pc_dbg
:
SW_PC_Debug
;
variable
txt_buf_state
:
SW_TXT_Buffer_state_type
;
variable
rx_buf_info
:
SW_RX_Buffer_info
;
variable
frames_equal
:
boolean
:
=
false
;
variable
pc_dbg
:
SW_PC_Debug
;
variable
id_vect
:
std_logic_vector
(
28
downto
0
);
variable
wait_time
:
natural
;
variable
err_counters_1_1
:
SW_error_counters
;
variable
err_counters_1_2
:
SW_error_counters
;
variable
err_counters_2_1
:
SW_error_counters
;
variable
err_counters_2_2
:
SW_error_counters
;
variable
frame_sent
:
boolean
;
variable
err_capt
:
SW_error_capture
;
...
...
test/feature/err_capt_crc_bit_feature_tb.vhd
View file @
c4bb605f
...
...
@@ -82,41 +82,15 @@ package body err_capt_crc_bit_feature is
signal
mem_bus
:
inout
mem_bus_arr_t
;
signal
bus_level
:
in
std_logic
)
is
variable
rand_value
:
real
;
variable
alc
:
natural
;
-- Some unit lost the arbitration...
-- 0 - initial , 1-Node 1 turned rec, 2 - Node 2 turned rec
variable
unit_rec
:
natural
:
=
0
;
variable
ID_1
:
natural
:
=
1
;
variable
ID_2
:
natural
:
=
2
;
variable
r_data
:
std_logic_vector
(
31
downto
0
)
:
=
(
OTHERS
=>
'0'
);
-- Generated frames
variable
frame_1
:
SW_CAN_frame_type
;
variable
frame_2
:
SW_CAN_frame_type
;
variable
frame_rx
:
SW_CAN_frame_type
;
-- Node status
variable
stat_1
:
SW_status
;
variable
stat_2
:
SW_status
;
variable
pc_dbg
:
SW_PC_Debug
;
variable
txt_buf_state
:
SW_TXT_Buffer_state_type
;
variable
rx_buf_info
:
SW_RX_Buffer_info
;
variable
frames_equal
:
boolean
:
=
false
;
variable
id_vect
:
std_logic_vector
(
28
downto
0
);
variable
wait_time
:
natural
;
variable
err_counters_1_1
:
SW_error_counters
;
variable
err_counters_1_2
:
SW_error_counters
;
variable
err_counters_2_1
:
SW_error_counters
;
variable
err_counters_2_2
:
SW_error_counters
;
variable
frame_sent
:
boolean
;
variable
err_capt
:
SW_error_capture
;
...
...
test/feature/err_capt_ctrl_bit_feature_tb.vhd
View file @
c4bb605f
...
...
@@ -91,48 +91,23 @@ package body err_capt_ctrl_bit_feature is
signal
mem_bus
:
inout
mem_bus_arr_t
;
signal
bus_level
:
in
std_logic
)
is
variable
rand_value
:
real
;
variable
alc
:
natural
;
-- Some unit lost the arbitration...
-- 0 - initial , 1-Node 1 turned rec, 2 - Node 2 turned rec
variable
unit_rec
:
natural
:
=
0
;
variable
ID_1
:
natural
:
=
1
;
variable
ID_2
:
natural
:
=
2
;
variable
r_data
:
std_logic_vector
(
31
downto
0
)
:
=
(
OTHERS
=>
'0'
);
-- Generated frames
variable
frame_1
:
SW_CAN_frame_type
;
variable
frame_2
:
SW_CAN_frame_type
;
variable
frame_rx
:
SW_CAN_frame_type
;
-- Node status
variable
stat_1
:
SW_status
;
variable
stat_2
:
SW_status
;
variable
pc_dbg
:
SW_PC_Debug
;
variable
txt_buf_state
:
SW_TXT_Buffer_state_type
;
variable
rx_buf_info
:
SW_RX_Buffer_info
;
variable
frames_equal
:
boolean
:
=
false
;
variable
id_vect
:
std_logic_vector
(
28
downto
0
);
variable
wait_time
:
natural
;
variable
err_counters_1_1
:
SW_error_counters
;
variable
err_counters_1_2
:
SW_error_counters
;
variable
err_counters_2_1
:
SW_error_counters
;
variable
err_counters_2_2
:
SW_error_counters
;
variable
frame_sent
:
boolean
;
variable
err_capt
:
SW_error_capture
;
variable
tmp
:
natural
;
variable
force_value
:
std_logic
:
=
'0'
;
begin
-- Other controller is not need in this test. Disable it not to have
...
...
test/feature/err_capt_ctrl_form_feature_tb.vhd
View file @
c4bb605f
...
...
@@ -91,45 +91,17 @@ package body err_capt_ctrl_form_feature is
signal
mem_bus
:
inout
mem_bus_arr_t
;
signal
bus_level
:
in
std_logic
)
is
variable
rand_value
:
real
;
variable
alc
:
natural
;
-- Some unit lost the arbitration...
-- 0 - initial , 1-Node 1 turned rec, 2 - Node 2 turned rec
variable
unit_rec
:
natural
:
=
0
;
variable
ID_1
:
natural
:
=
1
;
variable
ID_2
:
natural
:
=
2
;
variable
r_data
:
std_logic_vector
(
31
downto
0
)
:
=
(
OTHERS
=>
'0'
);
-- Generated frames
variable
frame_1
:
SW_CAN_frame_type
;
variable
frame_2
:
SW_CAN_frame_type
;
variable
frame_rx
:
SW_CAN_frame_type
;
-- Node status
variable
stat_1
:
SW_status
;
variable
stat_2
:
SW_status
;
variable
pc_dbg
:
SW_PC_Debug
;
variable
txt_buf_state
:
SW_TXT_Buffer_state_type
;
variable
rx_buf_info
:
SW_RX_Buffer_info
;
variable
frames_equal
:
boolean
:
=
false
;
variable
stat_1
:
SW_status
;
variable
id_vect
:
std_logic_vector
(
28
downto
0
);
variable
wait_time
:
natural
;
variable
err_counters_1_1
:
SW_error_counters
;
variable
err_counters_1_2
:
SW_error_counters
;
variable
err_counters_2_1
:
SW_error_counters
;
variable
err_counters_2_2
:
SW_error_counters
;
variable
frame_sent
:
boolean
;
variable
err_capt
:
SW_error_capture
;
begin
-----------------------------------------------------------------------
...
...
test/feature/err_capt_data_bit_feature_tb.vhd
View file @
c4bb605f
...
...
@@ -82,40 +82,13 @@ package body err_capt_data_bit_feature is
signal
mem_bus
:
inout
mem_bus_arr_t
;
signal
bus_level
:
in
std_logic
)
is
variable
rand_value
:
real
;
variable
alc
:
natural
;
-- Some unit lost the arbitration...
-- 0 - initial , 1-Node 1 turned rec, 2 - Node 2 turned rec