Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Accelerator Wrapper Tech
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SoCLabs
Accelerator Wrapper Tech
Commits
ed24acbb
Commit
ed24acbb
authored
2 years ago
by
David Mapstone
Browse files
Options
Downloads
Patches
Plain Diff
SOC1-141
: Fixed bug on in packet constructor where empty packet pushed out after reset
parent
a51dddea
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
hdl/src/wrapper_packet_construct.sv
+3
-2
3 additions, 2 deletions
hdl/src/wrapper_packet_construct.sv
socsim
+1
-1
1 addition, 1 deletion
socsim
with
4 additions
and
3 deletions
hdl/src/wrapper_packet_construct.sv
+
3
−
2
View file @
ed24acbb
...
@@ -62,7 +62,7 @@ assign packet_last_word = &addr [PACKETBYTEWIDTH-1:REGDBYTEWIDTH];
...
@@ -62,7 +62,7 @@ assign packet_last_word = &addr [PACKETBYTEWIDTH-1:REGDBYTEWIDTH];
assign
prev_packet_last_word
=
&
prev_wr_addr
[
PACKETBYTEWIDTH
-
1
:
REGDBYTEWIDTH
];
assign
prev_packet_last_word
=
&
prev_wr_addr
[
PACKETBYTEWIDTH
-
1
:
REGDBYTEWIDTH
];
// Packet Address - Address of Packet
// Packet Address - Address of Packet
logic
[
ADDRWIDTH
-
1
:
PACKETBYTEWIDTH
]
packet_addr
,
prev_packet_addr
;
logic
[
ADDRWIDTH
-
PACKETBYTEWIDTH
-
1
:
0
]
packet_addr
,
prev_packet_addr
;
assign
packet_addr
=
addr
[
ADDRWIDTH
-
1
:
PACKETBYTEWIDTH
];
assign
packet_addr
=
addr
[
ADDRWIDTH
-
1
:
PACKETBYTEWIDTH
];
assign
prev_packet_addr
=
prev_wr_addr
[
ADDRWIDTH
-
1
:
PACKETBYTEWIDTH
];
assign
prev_packet_addr
=
prev_wr_addr
[
ADDRWIDTH
-
1
:
PACKETBYTEWIDTH
];
...
@@ -97,7 +97,8 @@ always_ff @(posedge hclk or negedge hresetn) begin
...
@@ -97,7 +97,8 @@ always_ff @(posedge hclk or negedge hresetn) begin
// If Packet Address Changed - write out value in construction buffer
// If Packet Address Changed - write out value in construction buffer
// - The output will get overwritten if the current address also causes generation of packet
// - The output will get overwritten if the current address also causes generation of packet
if
(
packet_addr
!=
prev_packet_addr
)
begin
// - Check that previous address isn't 0 (just out of reset and no packet actually in buffer)
if
(
packet_addr
!=
prev_packet_addr
&&
(
prev_wr_addr
!=
{
ADDRWIDTH
{
1'b0
}}
))
begin
// Produce Data Output
// Produce Data Output
packet_data
<=
const_buffer
;
// Write out Previous value of construction buffer
packet_data
<=
const_buffer
;
// Write out Previous value of construction buffer
// Calculate Last Flag on previous address
// Calculate Last Flag on previous address
...
...
This diff is collapsed.
Click to expand it.
socsim
@
55fae46b
Subproject commit
27329d3afac51fbf2762428e12f2635d1137c549
Subproject commit
55fae46b24cd1ec6e93347e553ad3d5e88fc0064
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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