Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
W
White Rabbit core collection
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
30
Issues
30
List
Board
Labels
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Schedules
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
White Rabbit core collection
Commits
c2adeb23
Commit
c2adeb23
authored
Jan 23, 2019
by
li hongming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Modify the xwrf_mux to support multi output
parent
3654cd97
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
9 deletions
+10
-9
xwrf_mux.vhd
modules/fabric/xwrf_mux.vhd
+10
-9
No files found.
modules/fabric/xwrf_mux.vhd
View file @
c2adeb23
...
...
@@ -269,21 +269,22 @@ begin
dmux_others
(
I
)
<=
or_reduce
(
dmux_select
(
I
-1
downto
0
));
end
generate
;
-- Modify the MUX to support multi output by hm
GEN_DMUX_CONN
:
for
I
in
0
to
g_muxed_ports
-1
generate
mux_src_o
(
I
)
.
cyc
<=
ep_snk_i
.
cyc
when
(
dmux_select
(
I
)
=
'1'
and
dmux_others
(
I
)
=
'0'
)
else
mux_src_o
(
I
)
.
cyc
<=
ep_snk_i
.
cyc
when
(
dmux_select
(
I
)
=
'1'
)
else
'0'
;
mux_src_o
(
I
)
.
stb
<=
'1'
when
(
dmux_snd_stat
(
I
)
=
'1'
and
dmux_others
(
I
)
=
'0'
)
else
mux_src_o
(
I
)
.
stb
<=
'1'
when
(
dmux_snd_stat
(
I
)
=
'1'
)
else
ep_snk_i
.
stb
when
(
dmux_select
(
I
)
=
'1'
and
dmux_others
(
I
)
=
'0'
)
else
(
ep_snk_i
.
stb
and
not
ep_snk_out_stall
)
when
(
dmux_select
(
I
)
=
'1'
and
dmux_others
(
I
)
=
'1'
)
else
'0'
;
mux_src_o
(
I
)
.
adr
<=
c_WRF_STATUS
when
(
dmux_snd_stat
(
I
)
=
'1'
and
dmux_others
(
I
)
=
'0'
)
else
ep_snk_i
.
adr
when
(
dmux_select
(
I
)
=
'1'
and
dmux_others
(
I
)
=
'0'
)
else
mux_src_o
(
I
)
.
adr
<=
c_WRF_STATUS
when
(
dmux_snd_stat
(
I
)
=
'1'
)
else
ep_snk_i
.
adr
when
(
dmux_select
(
I
)
=
'1'
)
else
(
others
=>
'0'
);
mux_src_o
(
I
)
.
dat
<=
dmux_status_reg
when
(
dmux_snd_stat
(
I
)
=
'1'
and
dmux_others
(
I
)
=
'0'
)
else
ep_snk_i
.
dat
when
(
dmux_select
(
I
)
=
'1'
and
dmux_others
(
I
)
=
'0'
)
else
mux_src_o
(
I
)
.
dat
<=
dmux_status_reg
when
(
dmux_snd_stat
(
I
)
=
'1'
)
else
ep_snk_i
.
dat
when
(
dmux_select
(
I
)
=
'1'
)
else
(
others
=>
'0'
);
mux_src_o
(
I
)
.
sel
<=
(
others
=>
'1'
)
when
(
dmux_snd_stat
(
I
)
=
'1'
and
dmux_others
(
I
)
=
'0'
)
else
ep_snk_i
.
sel
when
(
dmux_select
(
I
)
=
'1'
and
dmux_others
(
I
)
=
'0'
)
else
mux_src_o
(
I
)
.
sel
<=
(
others
=>
'1'
)
when
(
dmux_snd_stat
(
I
)
=
'1'
)
else
ep_snk_i
.
sel
when
(
dmux_select
(
I
)
=
'1'
)
else
(
others
=>
'1'
);
mux_src_o
(
I
)
.
we
<=
'1'
;
end
generate
;
...
...
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