Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
Platform-independent core collection
Manage
Activity
Members
Labels
Plan
Issues
15
Issue boards
Milestones
Wiki
Code
Merge requests
5
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Projects
Platform-independent core collection
Commits
453c977d
Commit
453c977d
authored
13 years ago
by
Wesley W. Terpstra
Browse files
Options
Downloads
Patches
Plain Diff
Print the bus mapping in compile logs.
Eliminate warning about constant zero. Use the aliases generic array.
parent
308d96c9
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
modules/wishbone/wb_crossbar/xwb_crossbar.vhd
+12
-6
12 additions, 6 deletions
modules/wishbone/wb_crossbar/xwb_crossbar.vhd
with
12 additions
and
6 deletions
modules/wishbone/wb_crossbar/xwb_crossbar.vhd
+
12
−
6
View file @
453c977d
...
...
@@ -77,19 +77,25 @@ architecture rtl of xwb_crossbar is
function
f_ranges_ok
return
boolean
is
variable
zero
:
t_wishbone_address
:
=
(
others
=>
'0'
);
constant
zero
:
t_wishbone_address
:
=
(
others
=>
'0'
);
begin
for
i
in
0
to
g_num_slaves
-2
loop
for
j
in
i
+
1
to
g_num_slaves
-1
loop
assert
not
(((
g
_mask
(
i
)
and
g
_mask
(
j
))
and
(
g
_address
(
i
)
xor
g
_address
(
j
)))
=
zero
)
assert
not
(((
c
_mask
(
i
)
and
c
_mask
(
j
))
and
(
c
_address
(
i
)
xor
c
_address
(
j
)))
=
zero
)
report
"Address ranges must be distinct (slaves "
&
Integer
'image
(
i
)
&
"["
&
Integer
'image
(
to_integer
(
unsigned
(
g
_address
(
i
))))
&
"/"
&
Integer
'image
(
to_integer
(
unsigned
(
g
_mask
(
i
))))
&
"] & "
&
Integer
'image
(
j
)
&
"["
&
Integer
'image
(
to_integer
(
unsigned
(
g
_address
(
j
))))
&
"/"
&
Integer
'image
(
to_integer
(
unsigned
(
g
_mask
(
j
))))
&
"])"
Integer
'image
(
i
)
&
"["
&
Integer
'image
(
to_integer
(
unsigned
(
c
_address
(
i
))))
&
"/"
&
Integer
'image
(
to_integer
(
unsigned
(
c
_mask
(
i
))))
&
"] & "
&
Integer
'image
(
j
)
&
"["
&
Integer
'image
(
to_integer
(
unsigned
(
c
_address
(
j
))))
&
"/"
&
Integer
'image
(
to_integer
(
unsigned
(
c
_mask
(
j
))))
&
"])"
severity
Failure
;
end
loop
;
end
loop
;
for
i
in
0
to
g_num_slaves
-1
loop
report
"Mapping slave #"
&
Integer
'image
(
i
)
&
"["
&
Integer
'image
(
to_integer
(
unsigned
(
c_address
(
i
))))
&
"/"
&
Integer
'image
(
to_integer
(
unsigned
(
c_mask
(
i
))))
&
"]"
severity
Note
;
end
loop
;
return
true
;
end
f_ranges_ok
;
constant
c_ok
:
boolean
:
=
f_ranges_ok
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment