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
16de3087
Commit
16de3087
authored
Feb 09, 2012
by
Tomasz Wlostowski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fabric: xwb_fabric_(sink/source): WB interface bugfixes
parent
49ebab20
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
27 deletions
+29
-27
xwb_fabric_sink.vhd
modules/fabric/xwb_fabric_sink.vhd
+2
-2
xwb_fabric_source.vhd
modules/fabric/xwb_fabric_source.vhd
+27
-25
No files found.
modules/fabric/xwb_fabric_sink.vhd
View file @
16de3087
...
...
@@ -6,7 +6,7 @@
-- Author : Tomasz Wlostowski
-- Company : CERN BE-CO-HT
-- Created : 2012-01-16
-- Last update: 2012-01-
17
-- Last update: 2012-01-
22
-- Platform :
-- Standard : VHDL'93
-------------------------------------------------------------------------------
...
...
@@ -160,7 +160,7 @@ begin -- rtl
post_data
<=
fout_reg
(
15
downto
0
);
post_addr
<=
fout_reg
(
17
downto
16
);
post_sof
<=
fout_reg
(
21
)
and
rd_d0
and
q_valid
;
post_sof
<=
fout_reg
(
21
)
and
rd_d0
;
--
and q_valid;
post_dvalid
<=
fout_reg
(
18
);
...
...
modules/fabric/xwb_fabric_source.vhd
View file @
16de3087
...
...
@@ -42,6 +42,7 @@ architecture rtl of xwb_fabric_source is
signal
post_dvalid
,
post_eof
,
post_bytesel
,
post_sof
:
std_logic
;
signal
err_status
:
t_wrf_status_reg
;
signal
cyc_int
:
std_logic
;
begin
-- rtl
...
...
@@ -81,19 +82,20 @@ begin -- rtl
begin
if
rising_edge
(
clk_i
)
then
if
rst_n_i
=
'0'
then
src_o
.
cyc
<=
'0'
;
cyc_int
<=
'0'
;
else
if
(
src_i
.
stall
=
'0'
)
then
if
(
src_i
.
stall
=
'0'
and
q_valid
=
'1'
)
then
if
(
post_sof
=
'1'
)
then
src_o
.
cyc
<=
'1'
;
cyc_int
<=
'1'
;
elsif
(
post_eof
=
'1'
)
then
src_o
.
cyc
<=
'0'
;
cyc_int
<=
'0'
;
end
if
;
end
if
;
end
if
;
end
if
;
end
process
;
src_o
.
cyc
<=
cyc_int
or
post_sof
;
src_o
.
we
<=
'1'
;
src_o
.
stb
<=
post_dvalid
and
q_valid
;
src_o
.
sel
<=
'1'
&
not
fout
(
19
);
...
...
@@ -163,7 +165,7 @@ architecture wrapper of wb_fabric_source is
begin
-- wrapper
U_Wrapped_Source
:
xwb_fabric_source
U_Wrapped_Source
:
xwb_fabric_source
port
map
(
clk_i
=>
clk_i
,
rst_n_i
=>
rst_n_i
,
...
...
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