Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
tp-filtre-etudiant-d24spera
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
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
tp-vhdl-mee
MEDCON
gr-vhdl-d24spera
tp-filtre-etudiant-d24spera
Commits
af06ce34
Commit
af06ce34
authored
2 months ago
by
Davi SPERANDIO AGATTI
Browse files
Options
Downloads
Patches
Plain Diff
final commit
parent
3b40b54f
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
src/hdl/controlUnit.vhd
+4
-6
4 additions, 6 deletions
src/hdl/controlUnit.vhd
src/hdl/operativeUnit.vhd
+8
-26
8 additions, 26 deletions
src/hdl/operativeUnit.vhd
with
12 additions
and
32 deletions
src/hdl/controlUnit.vhd
+
4
−
6
View file @
af06ce34
...
@@ -3,10 +3,11 @@
...
@@ -3,10 +3,11 @@
-- Project :
-- Project :
-------------------------------------------------------------------------------
-------------------------------------------------------------------------------
-- File : operativeUnit.vhd
-- File : operativeUnit.vhd
-- Author : Jean-Noel BAZIN <jnbazin@pc-disi-026.enst-bretagne.fr>
-- Author : Davi SPERANDIO AGATTI <davi.sperandio-agatti@imt-atlantique.net>
-- Author : Marouen AIDOUDI <marouen.aidoudi@imt-atlantique.net>
-- Company :
-- Company :
-- Created : 20
18
-0
4
-11
-- Created : 20
25
-0
3
-11
-- Last update: 20
19-02-13
-- Last update: 20
25-03-25
-- Platform :
-- Platform :
-- Standard : VHDL'93/02
-- Standard : VHDL'93/02
-------------------------------------------------------------------------------
-------------------------------------------------------------------------------
...
@@ -16,7 +17,6 @@
...
@@ -16,7 +17,6 @@
-------------------------------------------------------------------------------
-------------------------------------------------------------------------------
-- Revisions :
-- Revisions :
-- Date Version Author Description
-- Date Version Author Description
-- 2018-04-11 1.0 jnbazin Created
-------------------------------------------------------------------------------
-------------------------------------------------------------------------------
library
ieee
;
library
ieee
;
...
@@ -113,8 +113,6 @@ begin
...
@@ -113,8 +113,6 @@ begin
I_processingDone
when
(
SR_presentState
=
PROCESSING_LOOP_1
)
else
'0'
;
I_processingDone
when
(
SR_presentState
=
PROCESSING_LOOP_1
)
else
'0'
;
O_incrAddress
<=
not
(
I_processingDone
)
when
(
SR_presentState
=
PROCESSING_LOOP_1
)
else
O_incrAddress
<=
not
(
I_processingDone
)
when
(
SR_presentState
=
PROCESSING_LOOP_1
)
else
'1'
when
(
SR_presentState
=
PROCESSING_LOOP_2
)
else
'0'
;
'1'
when
(
SR_presentState
=
PROCESSING_LOOP_2
)
else
'0'
;
-- O_initSum <= '1' when (SR_presentState = STORE) else
-- I_processingDone when (SR_presentState = PROCESSING_LOOP_1) else '0';
O_initSum
<=
'1'
when
(
SR_presentState
=
STORE
)
else
'0'
;
O_initSum
<=
'1'
when
(
SR_presentState
=
STORE
)
else
'0'
;
O_loadSum
<=
'1'
when
(
SR_presentState
=
PROCESSING_LOOP_1
)
else
O_loadSum
<=
'1'
when
(
SR_presentState
=
PROCESSING_LOOP_1
)
else
'1'
when
(
SR_presentState
=
PROCESSING_LOOP_2
)
else
'0'
;
'1'
when
(
SR_presentState
=
PROCESSING_LOOP_2
)
else
'0'
;
...
...
This diff is collapsed.
Click to expand it.
src/hdl/operativeUnit.vhd
+
8
−
26
View file @
af06ce34
...
@@ -3,10 +3,11 @@
...
@@ -3,10 +3,11 @@
-- Project :
-- Project :
-------------------------------------------------------------------------------
-------------------------------------------------------------------------------
-- File : operativeUnit.vhd
-- File : operativeUnit.vhd
-- Author : Jean-Noel BAZIN <jnbazin@pc-disi-026.enst-bretagne.fr>
-- Author : Davi SPERANDIO AGATTI <davi.sperandio-agatti@imt-atlantique.net>
-- Author : Marouen AIDOUDI <marouen.aidoudi@imt-atlantique.net>
-- Company :
-- Company :
-- Created : 20
18
-0
4
-11
-- Created : 20
25
-0
3
-11
-- Last update: 20
19-02-13
-- Last update: 20
25-03-25
-- Platform :
-- Platform :
-- Standard : VHDL'93/02
-- Standard : VHDL'93/02
-------------------------------------------------------------------------------
-------------------------------------------------------------------------------
...
@@ -14,15 +15,11 @@
...
@@ -14,15 +15,11 @@
-- register for samples, registers for coefficients, a MAC and a register to
-- register for samples, registers for coefficients, a MAC and a register to
-- store the result
-- store the result
-------------------------------------------------------------------------------
-------------------------------------------------------------------------------
-- Copyright (c) 201
8
-- Copyright (c) 201
9
-------------------------------------------------------------------------------
-------------------------------------------------------------------------------
-- Revisions :
-- Revisions :
-- Date Version Author Description
-- Date Version Author Description
-- 2019-02-13 1.1 marzel Update to provide a 16-tap filter and improve
-- the user experience ;)
-- 2018-04-11 1.0 jnbazin Created
-- 2018-04-18 1.0 marzel Modification of SR_Y assignment to a round
-- instead of a trunc
-------------------------------------------------------------------------------
-------------------------------------------------------------------------------
library
ieee
;
library
ieee
;
...
@@ -75,37 +72,22 @@ architecture arch_operativeUnit of operativeUnit is
...
@@ -75,37 +72,22 @@ architecture arch_operativeUnit of operativeUnit is
-- High-pass filter with Fc = 800Hz provided with octave command
-- High-pass filter with Fc = 800Hz provided with octave command
-- [b, a] = butter(3, 800 / (44100/2), 'high')
-- [b, a] = butter(3, 800 / (44100/2), 'high')
constant
SR_coefRegister_B_high
:
registerCoefFile
:
=
constant
SR_coefRegister_B_high
:
registerCoefFile
:
=
(
to_signed
(
914
,
nBitCoef
),
-- x[n]
(
to_signed
(
914
,
nBitCoef
),
-- x[n]
to_signed
(
-2741
,
nBitCoef
),
-- x[n-1]
to_signed
(
-2741
,
nBitCoef
),
-- x[n-1]
to_signed
(
2741
,
nBitCoef
),
-- x[n-2]
to_signed
(
2741
,
nBitCoef
),
-- x[n-2]
to_signed
(
-914
,
nBitCoef
)
-- x[n-3]
to_signed
(
-914
,
nBitCoef
)
-- x[n-3]
);
);
-- constant SR_coefRegister_B_high : registerCoefFile :=
-- (to_signed( 114,nBitCoef), -- x[n]
-- to_signed(-343,nBitCoef), -- x[n-1]
-- to_signed( 343,nBitCoef), -- x[n-2]
-- to_signed(-114,nBitCoef) -- x[n-3]
-- );
-- Store the NEGAVITE values of the A coeficients
-- Store the NEGAVITE values of the A coeficients
--
A coeficients are the same for both low pass and high pass filters in this case
--
[b, a] = butter(3, 800 / (44100/2), 'high')
constant
SR_coefRegister_A
:
registerCoefFile
:
=
constant
SR_coefRegister_A
:
registerCoefFile
:
=
(
to_signed
(
2839
,
nBitCoef
),
-- y[n-1]
(
to_signed
(
2839
,
nBitCoef
),
-- y[n-1]
to_signed
(
-2631
,
nBitCoef
),
-- y[n-2]
to_signed
(
-2631
,
nBitCoef
),
-- y[n-2]
to_signed
(
815
,
nBitCoef
),
-- y[n-3]
to_signed
(
815
,
nBitCoef
),
-- y[n-3]
to_signed
(
0
,
nBitCoef
)
-- y[n-4] -> NOT USED for order 3 filter
to_signed
(
0
,
nBitCoef
)
-- y[n-4] -> NOT USED for order 3 filter
);
);
-- constant SR_coefRegister_A : registerCoefFile :=
-- (to_signed( 355, nBitCoef), -- y[n-1]
-- to_signed(-329, nBitCoef), -- y[n-2]
-- to_signed( 102, nBitCoef), -- y[n-3]
-- to_signed( 0, nBitCoef) -- y[n-4] -> NOT USED for order 3 filter
-- );
signal
S_maxAddress
:
integer
:
=
3
;
signal
S_maxAddress
:
integer
:
=
3
;
...
...
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