Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
corr_matrixpi
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
DG
FOFB
corr_matrixpi
Commits
b759cff9
Commit
b759cff9
authored
1 year ago
by
BRONES Romain
Browse files
Options
Downloads
Patches
Plain Diff
feat: Add a second LL corrector
* Allows second order correction
parent
afad2a14
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
hdl/top_corr_matrix.vhd
+38
-4
38 additions, 4 deletions
hdl/top_corr_matrix.vhd
rdl/corr_matrix.rdl
+25
-4
25 additions, 4 deletions
rdl/corr_matrix.rdl
with
63 additions
and
8 deletions
hdl/top_corr_matrix.vhd
+
38
−
4
View file @
b759cff9
...
...
@@ -58,6 +58,10 @@ architecture struct of top_corr_matrix is
signal
matmult_seq
:
std_logic_vector
(
C_W_BPMSEQ
-1
downto
0
);
-- Corrector result, parallel
signal
corrfirst_valid
:
std_logic
;
signal
corrfirst_seq
:
std_logic_vector
(
C_W_BPMSEQ
-1
downto
0
);
signal
corrfirst
:
signed_array
(
0
to
C_N_MM_PSC
-1
)(
C_W_COR
-1
downto
0
);
signal
corrfirst_resize
:
signed_array
(
0
to
C_N_MM_PSC
-1
)(
C_W_MM
-1
downto
0
);
signal
corrout_valid
:
std_logic
;
signal
corrout_seq
:
std_logic_vector
(
C_W_BPMSEQ
-1
downto
0
);
signal
corrout
:
signed_array
(
0
to
C_N_MM_PSC
-1
)(
C_W_COR
-1
downto
0
);
...
...
@@ -165,10 +169,39 @@ begin
matmult_seq
=>
matmult_seq
,
-- Corr coefs
coef_a
=>
signed
(
mm_a2l
.
CORR_KA
.
data
.
data
),
coef_b
=>
signed
(
mm_a2l
.
CORR_KB
.
data
.
data
),
coef_ic
=>
signed
(
mm_a2l
.
CORR_KIC
.
data
.
data
),
coef_d
=>
signed
(
mm_a2l
.
CORR_KD
.
data
.
data
),
coef_a
=>
signed
(
mm_a2l
.
CORR_K1A
.
data
.
data
),
coef_b
=>
signed
(
mm_a2l
.
CORR_K1B
.
data
.
data
),
coef_ic
=>
signed
(
mm_a2l
.
CORR_K1IC
.
data
.
data
),
coef_d
=>
signed
(
mm_a2l
.
CORR_K1D
.
data
.
data
),
reset_corr
=>
mm_a2l
.
CONTROL
.
RST_CORR
.
data
(
0
),
enable_corr
=>
mm_a2l
.
CONTROL
.
ENABLE_CORR
.
data
(
0
),
-- Corr output
corrout_valid
=>
corrfirst_valid
,
corrout_seq
=>
corrfirst_seq
,
corrout
=>
corrfirst
);
gen_resize
:
for
I
in
0
to
C_N_MM_PSC
-1
generate
corrfirst_resize
(
I
)
<=
resize
(
corrfirst
(
I
),
C_W_MM
);
end
generate
;
inst_corr2
:
entity
work
.
corr_ll
port
map
(
clk
=>
clk
,
rst_n
=>
rst_n
,
-- matmult input
matmult
=>
corrfirst_resize
,
matmult_valid
=>
corrfirst_valid
,
matmult_seq
=>
corrfirst_seq
,
-- Corr coefs
coef_a
=>
signed
(
mm_a2l
.
CORR_K2A
.
data
.
data
),
coef_b
=>
signed
(
mm_a2l
.
CORR_K2B
.
data
.
data
),
coef_ic
=>
signed
(
mm_a2l
.
CORR_K2IC
.
data
.
data
),
coef_d
=>
signed
(
mm_a2l
.
CORR_K2D
.
data
.
data
),
reset_corr
=>
mm_a2l
.
CONTROL
.
RST_CORR
.
data
(
0
),
enable_corr
=>
mm_a2l
.
CONTROL
.
ENABLE_CORR
.
data
(
0
),
...
...
@@ -179,6 +212,7 @@ begin
corrout
=>
corrout
);
---------------------
-- DATA SERIALIZER --
---------------------
...
...
This diff is collapsed.
Click to expand it.
rdl/corr_matrix.rdl
+
25
−
4
View file @
b759cff9
...
...
@@ -36,22 +36,43 @@ addrmap corr_matrix {
reg {
desc="Correction coefficient A.";
field {sw = rw; hw = r;} data[`C_W_COR_COEF];
} CORR_KA;
} CORR_K
1
A;
reg {
desc="Correction coefficient B.";
field {sw = rw; hw = r;} data[`C_W_COR_COEF];
} CORR_KB;
} CORR_K
1
B;
reg {
desc="Correction coefficient (inverse) C.";
field {sw = rw; hw = r;} data[`C_W_COR_COEF];
} CORR_KIC;
} CORR_K
1
IC;
reg {
desc="Correction coefficient D.";
field {sw = rw; hw = r;} data[`C_W_COR_COEF];
} CORR_KD;
} CORR_K1D;
reg {
desc="Correction coefficient A.";
field {sw = rw; hw = r;} data[`C_W_COR_COEF];
} CORR_K2A;
reg {
desc="Correction coefficient B.";
field {sw = rw; hw = r;} data[`C_W_COR_COEF];
} CORR_K2B;
reg {
desc="Correction coefficient (inverse) C.";
field {sw = rw; hw = r;} data[`C_W_COR_COEF];
} CORR_K2IC;
reg {
desc="Correction coefficient D.";
field {sw = rw; hw = r;} data[`C_W_COR_COEF];
} CORR_K2D;
reg {
desc="Number of ID to count for matrix multiplication.";
...
...
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