Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Accelerator Project
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Contributor analytics
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 Project
Commits
5ed8ce5e
Commit
5ed8ce5e
authored
2 years ago
by
David Mapstone
Browse files
Options
Downloads
Patches
Plain Diff
SOC1-153
: Added Read Address Calculator to Packet Deconstructor
parent
c69abb34
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
accelerator-wrapper
+1
-1
1 addition, 1 deletion
accelerator-wrapper
wrapper/src/wrapper_sha256_hashing_stream.sv
+26
-10
26 additions, 10 deletions
wrapper/src/wrapper_sha256_hashing_stream.sv
with
27 additions
and
11 deletions
accelerator-wrapper
@
944f600c
Compare
58638353
...
944f600c
Subproject commit
586383534848fe84a20b915c32bf40843190bbcd
Subproject commit
944f600c8a96c82117af672c0344aac637cf5716
This diff is collapsed.
Click to expand it.
wrapper/src/wrapper_sha256_hashing_stream.sv
+
26
−
10
View file @
5ed8ce5e
...
...
@@ -64,6 +64,11 @@ module wrapper_sha256_hashing_stream #(
output
logic
out_data_req
);
localparam
INADDRWIDTH
=
ADDRWIDTH
-
1
;
localparam
OUTADDRWIDTH
=
ADDRWIDTH
-
1
;
localparam
OUTPACKETBYTEWIDTH
=
$
clog2
(
OUTPACKETWIDTH
/
8
);
// Number of Bytes in Packet
localparam
OUTPACKETSPACEWIDTH
=
OUTADDRWIDTH
-
OUTPACKETBYTEWIDTH
;
// Number of Bits to represent all Packets in Address Space
// ----------------------------------------
// Internal wires declarations
...
...
@@ -97,16 +102,23 @@ module wrapper_sha256_hashing_stream #(
// Internal Wiring
// Input Packet Wires
logic
[
51
1
:
0
]
in_packet
;
logic
[
INPACKETWIDTH
-
1
:
0
]
in_packet
;
logic
in_packet_last
;
logic
in_packet_valid
;
logic
in_packet_ready
;
// Output Packet Wires
logic
[
255
:
0
]
out_packet
;
logic
out_packet_last
;
logic
out_packet_valid
;
logic
out_packet_ready
;
logic
[
OUTPACKETWIDTH
-
1
:
0
]
out_packet
;
logic
out_packet_last
;
logic
[
OUTPACKETSPACEWIDTH
-
1
:
0
]
out_packet_remain
;
logic
out_packet_valid
;
logic
out_packet_ready
;
// Block Packets Remaining Tie-off (only ever one packet per block)
assign
out_packet_remain
=
{
OUTPACKETSPACEWIDTH
{
1'b0
}}
;
// Relative Read Address for Start of Current Block
logic
[
OUTADDRWIDTH
-
1
:
0
]
block_read_addr
;
// Configuration Tie Off
logic
[
63
:
0
]
cfg_size
;
...
...
@@ -264,13 +276,17 @@ module wrapper_sha256_hashing_stream #(
.
hrdatas
(
hrdata1
),
// Valid/Ready Interface
.
packet_data
(
out_packet
),
.
packet_data_last
(
out_packet_last
),
.
packet_data_valid
(
out_packet_valid
),
.
packet_data_ready
(
out_packet_ready
),
.
packet_data
(
out_packet
),
.
packet_data_last
(
out_packet_last
),
.
packet_data_remain
(
out_packet_remain
),
.
packet_data_valid
(
out_packet_valid
),
.
packet_data_ready
(
out_packet_ready
),
// Input Data Request
.
data_req
(
out_data_req
)
.
data_req
(
out_data_req
),
// Read Address Interface
.
block_read_addr
(
block_read_addr
)
);
//------------------------
...
...
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