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
07071eb5
Commit
07071eb5
authored
8 years ago
by
Wesley W. Terpstra
Browse files
Options
Downloads
Patches
Plain Diff
crossbar: silence a warning for crossbars with 1 slave
parent
8b259e40
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
+14
-12
14 additions, 12 deletions
modules/wishbone/wb_crossbar/xwb_crossbar.vhd
with
14 additions
and
12 deletions
modules/wishbone/wb_crossbar/xwb_crossbar.vhd
+
14
−
12
View file @
07071eb5
...
...
@@ -82,19 +82,21 @@ architecture rtl of xwb_crossbar is
constant
zero
:
t_wishbone_address
:
=
(
others
=>
'0'
);
begin
-- all (i,j) with 0 <= i < j < n
for
i
in
0
to
g_num_slaves
-2
loop
for
j
in
i
+
1
to
g_num_slaves
-1
loop
assert
not
(((
c_mask
(
i
)
and
c_mask
(
j
))
and
(
c_address
(
i
)
xor
c_address
(
j
)))
=
zero
)
or
((
c_mask
(
i
)
or
not
c_address
(
i
))
=
zero
)
or
-- disconnected slave?
((
c_mask
(
j
)
or
not
c_address
(
j
))
=
zero
)
-- disconnected slave?
report
"Address ranges must be distinct (slaves "
&
Integer
'image
(
i
)
&
"["
&
f_bits2string
(
c_address
(
i
))
&
"/"
&
f_bits2string
(
c_mask
(
i
))
&
"] & "
&
Integer
'image
(
j
)
&
"["
&
f_bits2string
(
c_address
(
j
))
&
"/"
&
f_bits2string
(
c_mask
(
j
))
&
"])"
severity
Failure
;
if
g_num_slaves
>
1
then
for
i
in
0
to
g_num_slaves
-2
loop
for
j
in
i
+
1
to
g_num_slaves
-1
loop
assert
not
(((
c_mask
(
i
)
and
c_mask
(
j
))
and
(
c_address
(
i
)
xor
c_address
(
j
)))
=
zero
)
or
((
c_mask
(
i
)
or
not
c_address
(
i
))
=
zero
)
or
-- disconnected slave?
((
c_mask
(
j
)
or
not
c_address
(
j
))
=
zero
)
-- disconnected slave?
report
"Address ranges must be distinct (slaves "
&
Integer
'image
(
i
)
&
"["
&
f_bits2string
(
c_address
(
i
))
&
"/"
&
f_bits2string
(
c_mask
(
i
))
&
"] & "
&
Integer
'image
(
j
)
&
"["
&
f_bits2string
(
c_address
(
j
))
&
"/"
&
f_bits2string
(
c_mask
(
j
))
&
"])"
severity
Failure
;
end
loop
;
end
loop
;
end
loop
;
end
if
;
for
i
in
0
to
g_num_slaves
-1
loop
report
"Mapping slave #"
&
Integer
'image
(
i
)
&
"["
&
f_bits2string
(
c_address
(
i
))
&
"/"
&
...
...
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