Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
Gennum GN4124 core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
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
Gennum GN4124 core
Commits
f1e9a982
Commit
f1e9a982
authored
Jul 02, 2020
by
Dimitris Lampridis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hdl: fix bug in BFM not accepting 4096B writes
Signed-off-by:
Dimitris Lampridis
<
dimitris.lampridis@cern.ch
>
parent
4f56571d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
gn412x_bfm.vhd
hdl/sim/gn4124_bfm/gn412x_bfm.vhd
+10
-2
No files found.
hdl/sim/gn4124_bfm/gn412x_bfm.vhd
View file @
f1e9a982
...
...
@@ -2520,7 +2520,11 @@ writeline(OUT_FILE, OUTPUT_LINE);
if
(
CID_COUNT
<
N_INBOUND_RD_OUTSTANDING
)
then
-- OK to accept the request
INBOUND_READ_REQUEST_ARRAY
(
COMPLETION_ID
)
.
ADDRESS
<=
HEADER_ADDR_HI
&
HEADER_ADDR_LOW
;
INBOUND_READ_REQUEST_ARRAY
(
COMPLETION_ID
)
.
BAR_HIT
<=
to_mvl
(
BFM_BAR_HIT
(
1
))
&
to_mvl
(
BFM_BAR_HIT
(
0
));
INBOUND_READ_REQUEST_ARRAY
(
COMPLETION_ID
)
.
LENGTH
<=
to_int
(
HEADER_LENGTH
);
if
to_int
(
HEADER_LENGTH
)
=
0
then
INBOUND_READ_REQUEST_ARRAY
(
COMPLETION_ID
)
.
LENGTH
<=
1024
;
else
INBOUND_READ_REQUEST_ARRAY
(
COMPLETION_ID
)
.
LENGTH
<=
to_int
(
HEADER_LENGTH
);
end
if
;
INBOUND_READ_REQUEST_ARRAY
(
COMPLETION_ID
)
.
STATE
<=
not
INBOUND_READ_REQUEST_ARRAY
(
COMPLETION_ID
)
.
STATE
;
INBOUND_READ_REQUEST_ARRAY
(
COMPLETION_ID
)
.
TC
<=
HEADER_TC
;
INBOUND_READ_REQUEST_ARRAY
(
COMPLETION_ID
)
.
V
<=
HEADER_V
;
...
...
@@ -2542,7 +2546,11 @@ writeline(OUT_FILE, OUTPUT_LINE);
--* Process the Read Completion
--*-------------------------------------------------------------
I_HEADER_LENGTH
:
=
to_int
(
HEADER_LENGTH
);
if
to_int
(
HEADER_LENGTH
)
=
0
then
I_HEADER_LENGTH
:
=
1024
;
else
I_HEADER_LENGTH
:
=
to_int
(
HEADER_LENGTH
);
end
if
;
I_CID
:
=
to_int
(
HEADER_CID
);
if
(
RD_BUFFER_PTR
(
I_CID
)
=
0
)
then
-- start of a completion sequence
...
...
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