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
c910ec5a
Commit
c910ec5a
authored
12 years ago
by
Wesley W. Terpstra
Browse files
Options
Downloads
Patches
Plain Diff
Working read state machine.
Bug: std_match is needed when comparing '-'s
parent
543394df
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
hdl/pcie_tlp.vhd
+33
-33
33 additions, 33 deletions
hdl/pcie_tlp.vhd
hdl/pcie_wb.qsf
+576
-331
576 additions, 331 deletions
hdl/pcie_wb.qsf
with
609 additions
and
364 deletions
hdl/pcie_tlp.vhd
+
33
−
33
View file @
c910ec5a
...
...
@@ -296,42 +296,42 @@ begin
-- These tables are copied from the PCI express standard:
s_missing
<=
"000"
when
r_first_be
=
"1--1"
and
r_last_be
=
"0000"
else
"001"
when
r_first_be
=
"01-1"
and
r_last_be
=
"0000"
else
"001"
when
r_first_be
=
"1-10"
and
r_last_be
=
"0000"
else
"010"
when
r_first_be
=
"0011"
and
r_last_be
=
"0000"
else
"010"
when
r_first_be
=
"0110"
and
r_last_be
=
"0000"
else
"010"
when
r_first_be
=
"1100"
and
r_last_be
=
"0000"
else
"011"
when
r_first_be
=
"0001"
and
r_last_be
=
"0000"
else
"011"
when
r_first_be
=
"0010"
and
r_last_be
=
"0000"
else
"011"
when
r_first_be
=
"0100"
and
r_last_be
=
"0000"
else
"011"
when
r_first_be
=
"1000"
and
r_last_be
=
"0000"
else
"000"
when
r_first_be
=
"---1"
and
r_last_be
=
"1---"
else
"001"
when
r_first_be
=
"---1"
and
r_last_be
=
"01--"
else
"010"
when
r_first_be
=
"---1"
and
r_last_be
=
"001-"
else
"011"
when
r_first_be
=
"---1"
and
r_last_be
=
"0001"
else
"001"
when
r_first_be
=
"--10"
and
r_last_be
=
"1---"
else
"010"
when
r_first_be
=
"--10"
and
r_last_be
=
"01--"
else
"011"
when
r_first_be
=
"--10"
and
r_last_be
=
"001-"
else
"100"
when
r_first_be
=
"--10"
and
r_last_be
=
"0001"
else
"010"
when
r_first_be
=
"-100"
and
r_last_be
=
"1---"
else
"011"
when
r_first_be
=
"-100"
and
r_last_be
=
"01--"
else
"100"
when
r_first_be
=
"-100"
and
r_last_be
=
"001-"
else
"101"
when
r_first_be
=
"-100"
and
r_last_be
=
"0001"
else
"011"
when
r_first_be
=
"1000"
and
r_last_be
=
"1---"
else
"100"
when
r_first_be
=
"1000"
and
r_last_be
=
"01--"
else
"101"
when
r_first_be
=
"1000"
and
r_last_be
=
"001-"
else
"110"
when
r_first_be
=
"1000"
and
r_last_be
=
"0001"
else
"000"
when
std_match
(
r_first_be
,
"1--1"
)
and
std_match
(
r_last_be
,
"0000"
)
else
"001"
when
std_match
(
r_first_be
,
"01-1"
)
and
std_match
(
r_last_be
,
"0000"
)
else
"001"
when
std_match
(
r_first_be
,
"1-10"
)
and
std_match
(
r_last_be
,
"0000"
)
else
"010"
when
std_match
(
r_first_be
,
"0011"
)
and
std_match
(
r_last_be
,
"0000"
)
else
"010"
when
std_match
(
r_first_be
,
"0110"
)
and
std_match
(
r_last_be
,
"0000"
)
else
"010"
when
std_match
(
r_first_be
,
"1100"
)
and
std_match
(
r_last_be
,
"0000"
)
else
"011"
when
std_match
(
r_first_be
,
"0001"
)
and
std_match
(
r_last_be
,
"0000"
)
else
"011"
when
std_match
(
r_first_be
,
"0010"
)
and
std_match
(
r_last_be
,
"0000"
)
else
"011"
when
std_match
(
r_first_be
,
"0100"
)
and
std_match
(
r_last_be
,
"0000"
)
else
"011"
when
std_match
(
r_first_be
,
"1000"
)
and
std_match
(
r_last_be
,
"0000"
)
else
"000"
when
std_match
(
r_first_be
,
"---1"
)
and
std_match
(
r_last_be
,
"1---"
)
else
"001"
when
std_match
(
r_first_be
,
"---1"
)
and
std_match
(
r_last_be
,
"01--"
)
else
"010"
when
std_match
(
r_first_be
,
"---1"
)
and
std_match
(
r_last_be
,
"001-"
)
else
"011"
when
std_match
(
r_first_be
,
"---1"
)
and
std_match
(
r_last_be
,
"0001"
)
else
"001"
when
std_match
(
r_first_be
,
"--10"
)
and
std_match
(
r_last_be
,
"1---"
)
else
"010"
when
std_match
(
r_first_be
,
"--10"
)
and
std_match
(
r_last_be
,
"01--"
)
else
"011"
when
std_match
(
r_first_be
,
"--10"
)
and
std_match
(
r_last_be
,
"001-"
)
else
"100"
when
std_match
(
r_first_be
,
"--10"
)
and
std_match
(
r_last_be
,
"0001"
)
else
"010"
when
std_match
(
r_first_be
,
"-100"
)
and
std_match
(
r_last_be
,
"1---"
)
else
"011"
when
std_match
(
r_first_be
,
"-100"
)
and
std_match
(
r_last_be
,
"01--"
)
else
"100"
when
std_match
(
r_first_be
,
"-100"
)
and
std_match
(
r_last_be
,
"001-"
)
else
"101"
when
std_match
(
r_first_be
,
"-100"
)
and
std_match
(
r_last_be
,
"0001"
)
else
"011"
when
std_match
(
r_first_be
,
"1000"
)
and
std_match
(
r_last_be
,
"1---"
)
else
"100"
when
std_match
(
r_first_be
,
"1000"
)
and
std_match
(
r_last_be
,
"01--"
)
else
"101"
when
std_match
(
r_first_be
,
"1000"
)
and
std_match
(
r_last_be
,
"001-"
)
else
"110"
when
std_match
(
r_first_be
,
"1000"
)
and
std_match
(
r_last_be
,
"0001"
)
else
"---"
;
s_bytes
<=
std_logic_vector
(
unsigned
(
r_length
&
"00"
)
-
s_missing
);
s_low_addr
(
6
downto
2
)
<=
r_address
(
6
downto
2
);
s_low_addr
(
1
downto
0
)
<=
"00"
when
r_first_be
=
"0000"
else
"00"
when
r_first_be
=
"---1"
else
"01"
when
r_first_be
=
"--10"
else
"10"
when
r_first_be
=
"-100"
else
"11"
when
r_first_be
=
"1000"
else
"00"
when
std_match
(
r_first_be
,
"0000"
)
else
"00"
when
std_match
(
r_first_be
,
"---1"
)
else
"01"
when
std_match
(
r_first_be
,
"--10"
)
else
"10"
when
std_match
(
r_first_be
,
"-100"
)
else
"11"
when
std_match
(
r_first_be
,
"1000"
)
else
"--"
;
-- register: tx_en_o and tx_alloc_o
...
...
@@ -427,13 +427,13 @@ begin
begin
if
rising_edge
(
clk_i
)
then
if
(
wb_ack_i
or
wb_err_i
)
=
'1'
then
if
wb_stb
=
'1'
then
if
(
wb_stb
and
not
wb_stall_i
)
=
'1'
then
r_flight_count
<=
r_flight_count
;
else
r_flight_count
<=
r_flight_count
-
1
;
end
if
;
else
if
wb_stb
=
'1'
then
if
(
wb_stb
and
not
wb_stall_i
)
=
'1'
then
r_flight_count
<=
r_flight_count
+
1
;
else
r_flight_count
<=
r_flight_count
;
...
...
This diff is collapsed.
Click to expand it.
hdl/pcie_wb.qsf
+
576
−
331
View file @
c910ec5a
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