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
baa5e114
Commit
baa5e114
authored
Feb 02, 2019
by
Ille, Ondrej, Ing.
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test: fix double error in burst size alignment.
parent
d710c954
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
test/lib/CANtestLib.vhd
test/lib/CANtestLib.vhd
+5
-5
No files found.
test/lib/CANtestLib.vhd
View file @
baa5e114
...
...
@@ -2449,19 +2449,19 @@ package body CANtestLib is
end
procedure
;
impure
function
aval_is_
in
valid_burst_size
(
impure
function
aval_is_valid_burst_size
(
constant
data_length
:
natural
)
return
boolean
is
begin
if
((
data_length
mod
4
)
=
0
)
then
if
((
data_length
mod
32
)
/
=
0
)
then
warning
(
"Invalid Avalon Burst size: "
&
integer
'image
(
data_length
)
&
" Burst size should be 32 bit aligned!"
);
return
false
;
end
if
;
if
((
data_length
/
4
)
>
64
)
then
if
((
data_length
/
32
)
>
64
)
then
warning
(
"Invalid Avalon Burst size: "
&
integer
'image
(
data_length
)
&
" Burst size should not be larger than 64 words! "
&
...
...
@@ -2490,7 +2490,7 @@ package body CANtestLib is
return
;
end
if
;
if
(
aval_is_in
valid_burst_size
(
w_data
'length
))
then
if
(
not
aval_is_
valid_burst_size
(
w_data
'length
))
then
return
;
end
if
;
...
...
@@ -2543,7 +2543,7 @@ package body CANtestLib is
return
;
end
if
;
if
(
aval_is_in
valid_burst_size
(
r_data
'length
))
then
if
(
not
aval_is_
valid_burst_size
(
r_data
'length
))
then
return
;
end
if
;
...
...
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