Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
fpga-network-stack
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
Show more breadcrumbs
paulrr2
fpga-network-stack
Commits
1b8bd097
Commit
1b8bd097
authored
5 years ago
by
David Sidler
Browse files
Options
Downloads
Patches
Plain Diff
change alignment of SIMD register write to 64B
parent
666993aa
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
hdl/common/network_controller.sv
+9
-14
9 additions, 14 deletions
hdl/common/network_controller.sv
with
9 additions
and
14 deletions
hdl/common/network_controller.sv
+
9
−
14
View file @
1b8bd097
...
...
@@ -347,6 +347,7 @@ wire axis_legacy_merge_metadata_valid;
wire
axis_legacy_merge_metadata_ready
;
wire
[
159
:
0
]
axis_legacy_merge_metadata_data
;
// Two-clock cmd_fifo: 2 stage synchronization
axis_data_fifo_160_cc
cmd_fifo
(
.
s_axis_aclk
(
pcie_clk
),
// input wire s_axis_aresetn
...
...
@@ -693,7 +694,7 @@ begin
s_axim
.
bvalid
<=
1'b0
;
axis_by_tx_metadata_valid
<=
1'b0
;
mmwriteAddr
=
(
s_axim
.
awaddr
[
11
:
0
]
>>
5
);
mmwriteAddr
=
(
s_axim
.
awaddr
[
11
:
0
]
>>
6
);
//64B aligned addresses for AVX -> no alignment issues with PCIe 8x or 16x
if
(
s_axim
.
awvalid
&&
s_axim
.
awready
)
begin
s_axim
.
awready
<=
1'b0
;
...
...
@@ -718,7 +719,7 @@ begin
GPIO_REG_POST:
begin
// sw data is 32 bits aligned
/* s_axim.wdata[31:0] -> op - sw:
8
bits
/* s_axim.wdata[31:0] -> op - sw:
32
bits
[63:32] -> qpn - sw: 32 bits
[127:64] -> originAddr - sw: 64 bits
[191:128] -> targetAddr - sw: 64 bits
...
...
@@ -732,20 +733,14 @@ begin
axis_by_tx_metadata_data
[
6
:
3
]
<=
s_axim
.
wdata
[
35
:
32
];
axis_by_tx_metadata_data
[
26
:
7
]
<=
0
;
// 20 bits
// originAddr - use only 48 b from the sw, that last 2 bits are set to zero
// [127:64]
axis_by_tx_metadata_data
[
28
:
27
]
<=
0
;
// 2 bits
axis_by_tx_metadata_data
[
74
:
29
]
<=
s_axim
.
wdata
[
113
:
66
];
// originAddr - use only 48 b from the sw [127:64]
axis_by_tx_metadata_data
[
74
:
27
]
<=
s_axim
.
wdata
[
113
:
64
];
// targetAddr - use only 48 b from the sw, that last 2 bits are set to zero
// [191:128]
axis_by_tx_metadata_data
[
76
:
75
]
<=
0
;
// 2 bits
axis_by_tx_metadata_data
[
122
:
77
]
<=
s_axim
.
wdata
[
177
:
130
];
// targetAddr - use only 48 b from the sw [191:128]
axis_by_tx_metadata_data
[
122
:
75
]
<=
s_axim
.
wdata
[
177
:
128
];
// size
// [255:192]
axis_by_tx_metadata_data
[
125
:
123
]
<=
0
;
// 3 bits
axis_by_tx_metadata_data
[
154
:
126
]
<=
s_axim
.
wdata
[
223
:
195
];
// size [255:192]
axis_by_tx_metadata_data
[
154
:
123
]
<=
s_axim
.
wdata
[
223
:
192
];
axis_by_tx_metadata_valid
<=
1'b1
;
s_axim
.
bvalid
<=
1'b0
;
...
...
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