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
e9b0e3b4
Commit
e9b0e3b4
authored
4 months ago
by
BRONES Romain
Browse files
Options
Downloads
Patches
Plain Diff
Change saturation of mult_d to MM size
parent
2735071c
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
hdl/corr_iir.vhd
+5
-5
5 additions, 5 deletions
hdl/corr_iir.vhd
with
5 additions
and
5 deletions
hdl/corr_iir.vhd
+
5
−
5
View file @
e9b0e3b4
...
...
@@ -44,7 +44,7 @@ architecture rtl of corr_iir is
constant
C_DELAY
:
natural
:
=
6
;
constant
C_W_MULT
:
natural
:
=
C_W_MM
+
C_W_COR_COEF
;
constant
C_W_CORFP
:
natural
:
=
C_W_
COR
+
C_W_FP
;
constant
C_W_CORFP
:
natural
:
=
C_W_
MM
;
type
arr_slv
is
array
(
natural
range
<>
)
of
std_logic_vector
;
signal
delay_valid
:
std_logic_vector
(
C_DELAY
-1
downto
0
);
...
...
@@ -96,7 +96,7 @@ begin
signal
rndsat_mult_a
:
signed
(
C_W_MM
-1
downto
0
);
signal
rndsat_mult_b
:
signed
(
C_W_MM
-1
downto
0
);
signal
rndsat_mult_d
:
signed
(
C_W_
CORFP
+
C_W_COR_COEF
-
C_W_COR_COEFFP
-1
downto
0
);
signal
rndsat_mult_d
:
signed
(
C_W_
MM
-1
downto
0
);
signal
coef_a
:
signed
(
C_W_COR_COEF
-1
downto
0
);
signal
coef_b
:
signed
(
C_W_COR_COEF
-1
downto
0
);
...
...
@@ -202,11 +202,11 @@ begin
if
mult_d
(
C_W_COR_COEFFP
-1
)
=
'0'
then
rndsat_mult_d
<=
f_resize_sat
(
f_resize_lsb
(
mult_d
,
mult_d
'length
-
C_W_COR_COEFFP
),
rndsat_mult_d
'length
);
C_W_MM
);
else
rndsat_mult_d
<=
f_resize_sat
(
f_sum_sat
(
f_resize_lsb
(
mult_d
,
mult_d
'length
-
C_W_COR_COEFFP
),
to_signed
(
1
,
2
)),
rndsat_mult_d
'length
);
C_W_MM
);
end
if
;
----------------------------------------------------------------------------------------------------------
...
...
@@ -229,7 +229,7 @@ begin
-- mapping
corrout
(
I
)
<=
rnd_cor
;
corrout_fp
(
I
)
<=
reg_dout2
;
corrout_fp
(
I
)
<=
f_resize_sat
(
reg_dout2
,
C_W_COR
+
C_W_FP
)
;
end
generate
gen_corr
;
...
...
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