Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
Simple PCIe FMC carrier SPEC
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
50
Issues
50
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
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
Simple PCIe FMC carrier SPEC
Commits
7095df9c
Commit
7095df9c
authored
Jul 16, 2019
by
Dimitris Lampridis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix stalling in 'crossbar' process
parent
3a705a48
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
20 deletions
+20
-20
spec_template_wr.vhd
hdl/rtl/spec_template_wr.vhd
+20
-20
No files found.
hdl/rtl/spec_template_wr.vhd
View file @
7095df9c
...
...
@@ -490,31 +490,29 @@ begin -- architecture top
is
type
t_ca_state
is
(
S_IDLE
,
S_APP
,
S_CARRIER
);
variable
ca_state
:
t_ca_state
;
constant
wb_idle_master_out
:
t_wishbone_master_out
:
=
(
cyc
=>
'0'
,
stb
=>
'0'
,
adr
=>
(
others
=>
'X'
),
sel
=>
x"0"
,
we
=>
'0'
,
dat
=>
(
others
=>
'X'
));
constant
wb_idle_master_in
:
t_wishbone_master_in
:
=
(
stall
=>
'0'
,
ack
=>
'0'
,
err
=>
'0'
,
dat
=>
(
others
=>
'X'
),
rty
=>
'0'
);
variable
can_stall
:
std_logic
;
constant
c_IDLE_WB_MASTER_IN
:
t_wishbone_master_in
:
=
(
'0'
,
'0'
,
'0'
,
'0'
,
c_DUMMY_WB_DATA
);
begin
if
rising_edge
(
clk_sys_62m5
)
then
if
rst_sys_62m5_n
=
'0'
then
ca_state
:
=
S_IDLE
;
gn_wb_in
<=
wb_idle_master_in
;
app_wb_o
<=
wb_idle_master_out
;
carrier_wb_in
<=
wb_idle_master_out
;
gn_wb_in
<=
c_IDLE_WB_MASTER_IN
;
app_wb_o
<=
c_DUMMY_WB_MASTER_OUT
;
carrier_wb_in
<=
c_DUMMY_WB_MASTER_OUT
;
else
-- Default: idle.
gn_wb_in
<=
wb_idle_master_in
;
app_wb_o
<=
wb_idle_master_out
;
carrier_wb_in
<=
wb_idle_master_out
;
case
ca_state
is
when
S_IDLE
=>
gn_wb_in
<=
c_IDLE_WB_MASTER_IN
;
app_wb_o
<=
c_DUMMY_WB_MASTER_OUT
;
carrier_wb_in
<=
c_DUMMY_WB_MASTER_OUT
;
if
gn_wb_out
.
cyc
=
'1'
and
gn_wb_out
.
stb
=
'1'
then
-- New transaction.
-- Stall
gn_wb_in
.
stall
<=
'1'
;
can_stall
:
=
'1'
;
if
gn_wb_out
.
adr
(
31
downto
13
)
=
(
31
downto
13
=>
'0'
)
then
ca_state
:
=
S_CARRIER
;
-- Pass to carrier
...
...
@@ -526,7 +524,8 @@ begin -- architecture top
end
if
;
when
S_CARRIER
=>
-- Pass from carrier.
carrier_wb_in
.
stb
<=
'0'
;
carrier_wb_in
.
stb
<=
carrier_wb_out
.
stall
and
can_stall
;
can_stall
:
=
can_stall
and
carrier_wb_out
.
stall
;
gn_wb_in
<=
carrier_wb_out
;
gn_wb_in
.
stall
<=
'1'
;
if
carrier_wb_out
.
ack
=
'1'
then
...
...
@@ -534,7 +533,8 @@ begin -- architecture top
end
if
;
when
S_APP
=>
-- Pass from application
app_wb_o
.
stb
<=
'0'
;
app_wb_o
.
stb
<=
app_wb_i
.
stall
and
can_stall
;
can_stall
:
=
can_stall
and
app_wb_i
.
stall
;
gn_wb_in
<=
app_wb_i
;
gn_wb_in
.
stall
<=
'1'
;
if
app_wb_i
.
ack
=
'1'
or
app_wb_i
.
err
=
'1'
then
...
...
@@ -543,7 +543,7 @@ begin -- architecture top
end
case
;
end
if
;
end
if
;
end
process
;
end
process
carrier_app_xb
;
i_devs
:
entity
work
.
spec_template_regs
port
map
(
...
...
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