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
93292025
Commit
93292025
authored
Jul 21, 2018
by
Ille, Ondrej, Ing.
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added coverage exclusion to assertions in source codes.
parent
5aec501b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
35 additions
and
12 deletions
+35
-12
src/Buffers_Message_Handling/rxBuffer.vhd
src/Buffers_Message_Handling/rxBuffer.vhd
+10
-2
src/CAN_Core/bitDeStuffing.vhd
src/CAN_Core/bitDeStuffing.vhd
+21
-9
src/CAN_Core/faultConf.vhd
src/CAN_Core/faultConf.vhd
+4
-1
No files found.
src/Buffers_Message_Handling/rxBuffer.vhd
View file @
93292025
...
...
@@ -1049,20 +1049,26 @@ begin
-- pragma translate_off
if
(
rising_edge
(
clk_sys
)
and
now
/=
0
fs
)
then
if
(
store_metadata
=
'1'
and
rx_fsm
/=
rxb_idle
)
then
-- LCOV_EXCL_START
report
"RX Buffer: Store metadata command did NOT come during "
&
"'rx_buf_idle'!"
severity
error
;
"'rx_buf_idle'!"
severity
error
;
-- LCOV_EXCL_STOP
end
if
;
if
((
rec_message_valid
=
'1'
or
store_data
=
'1'
)
and
rx_fsm
/=
rxb_store_data
)
then
-- LCOV_EXCL_START
report
"RX Buffer: Store data or finish storing did NOT come "
&
"during 'rec_data'"
severity
error
;
"during 'rec_data'"
severity
error
;
-- LCOV_EXCL_STOP
end
if
;
if
(
sof_pulse
=
'1'
and
rx_fsm
/=
rxb_idle
)
then
-- LCOV_EXCL_START
report
"RX Buffer: SOF pulse should come during 'rx_fsm_idle'"
severity
error
;
-- LCOV_EXCL_STOP
end
if
;
cmd_join
:
=
store_metadata
&
store_data
&
rec_message_valid
&
...
...
@@ -1070,8 +1076,10 @@ begin
if
(
cmd_join
/=
"0000"
and
cmd_join
/=
"0001"
and
cmd_join
/=
"0010"
and
cmd_join
/=
"0100"
and
cmd_join
/=
"1000"
)
then
-- LCOV_EXCL_START
report
"RX Buffer: One-hot coding on RX Buffer commands "
&
"corrupted!"
severity
error
;
-- LCOV_EXCL_STOP
end
if
;
end
if
;
-- pragma translate_on
...
...
src/CAN_Core/bitDeStuffing.vhd
View file @
93292025
...
...
@@ -173,10 +173,6 @@ begin
enable_prev
<=
enable
;
dst_bit_ctr
<=
dst_bit_ctr
;
if
((
length
=
"000"
or
length
=
"001"
)
and
(
enable
=
'1'
))
then
report
"0 and 1 bit stuffing length is invalid"
severity
warning
;
end
if
;
if
(
enable
=
'1'
)
then
-- When transition starts prev_val needs to be deleted! Otherwise
...
...
@@ -278,11 +274,27 @@ begin
end
if
;
end
process
;
-- Register propagation on output
data_out
<=
data_in
;
destuffed
<=
destuffed_reg
;
stuff_Error
<=
error_reg
;
dst_ctr
<=
dst_bit_ctr
;
----------------------------------------------------------------------------
-- Assertions on input settings
----------------------------------------------------------------------------
input_length_assert_proc
:
process
(
clk_sys
)
begin
if
(
rising_edge
(
clk_sys
))
then
if
((
length
=
"000"
or
length
=
"001"
)
and
(
enable
=
'1'
))
then
-- LCOV_EXCL_START
report
"0 and 1 bit stuffing length is invalid!"
severity
warning
;
-- LCOV_EXCL_STOP
end
if
;
end
if
;
end
process
;
-- Register propagation on output
data_out
<=
data_in
;
destuffed
<=
destuffed_reg
;
stuff_Error
<=
error_reg
;
dst_ctr
<=
dst_bit_ctr
;
end
architecture
;
src/CAN_Core/faultConf.vhd
View file @
93292025
...
...
@@ -425,10 +425,13 @@ begin
-- pragma translate_off
if
(
rising_edge
(
clk_sys
)
and
now
/=
0
fs
)
then
if
(
joined_ctr
/=
"000"
and
joined_ctr
/=
"001"
and
joined_ctr
/=
"010"
and
joined_ctr
/=
"100"
)
then
joined_ctr
/=
"010"
and
joined_ctr
/=
"100"
)
then
-- LCOV_EXCL_START
report
"Error counters commands from Protocol Control to "
&
"Fault confinemnet corrupt one hot decoding"
severity
error
;
-- LCOV_EXCL_STOP
end
if
;
end
if
;
-- pragma translate_on
...
...
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