Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
tp-filtre-etudiant-e24wolff
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
Admin message
La purge estivale des projets de gitlab-df sera réalisée jeudi 10 juillet vers 10h.
Show more breadcrumbs
UEEE
sar-signal-audio
gr-vhdl-e24wolff
tp-filtre-etudiant-e24wolff
Commits
71e06d5b
Commit
71e06d5b
authored
1 month ago
by
Emilien WOLFF
Browse files
Options
Downloads
Patches
Plain Diff
emilien2
parent
099bf65b
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/hdl/operativeUnit.vhd
+3
-3
3 additions, 3 deletions
src/hdl/operativeUnit.vhd
with
3 additions
and
3 deletions
src/hdl/operativeUnit.vhd
+
3
−
3
View file @
71e06d5b
...
@@ -45,7 +45,7 @@ entity operativeUnit is
...
@@ -45,7 +45,7 @@ entity operativeUnit is
I_incrAddress
:
in
std_logic
;
-- Control signal to increment register read address
I_incrAddress
:
in
std_logic
;
-- Control signal to increment register read address
I_initSum
:
in
std_logic
;
-- Control signal to initialize the MAC register
I_initSum
:
in
std_logic
;
-- Control signal to initialize the MAC register
I_loadSum
:
in
std_logic
;
-- Control signal to load the MAC register;
I_loadSum
:
in
std_logic
;
-- Control signal to load the MAC register;
I_load
Y
:
in
std_logic
;
-- Control signal to load Y register
I_load
Output
:
in
std_logic
;
-- Control signal to load Y register
O_processingDone
:
out
std_logic
;
-- Indicate that processing is done
O_processingDone
:
out
std_logic
;
-- Indicate that processing is done
O_filteredSample
:
out
std_logic_vector
(
15
downto
0
)
-- filtered sample
O_filteredSample
:
out
std_logic_vector
(
15
downto
0
)
-- filtered sample
);
);
...
@@ -143,7 +143,7 @@ begin
...
@@ -143,7 +143,7 @@ begin
-- Signal detecting that the next cycle will be the one
-- Signal detecting that the next cycle will be the one
-- providing the last product used to compute the convolution
-- providing the last product used to compute the convolution
O_processingDone
<=
'1'
when
SR_readAddress
=
1
5
else
'0'
;
O_processingDone
<=
'1'
when
SR_readAddress
=
1
4
else
'0'
;
-- Signals connected with multiplexers (SIMPLY inferred with table indices)
-- Signals connected with multiplexers (SIMPLY inferred with table indices)
SC_multOperand1
<=
SR_shiftRegister
(
SR_readAddress
);
-- 16 bits
SC_multOperand1
<=
SR_shiftRegister
(
SR_readAddress
);
-- 16 bits
...
@@ -177,7 +177,7 @@ begin
...
@@ -177,7 +177,7 @@ begin
if
I_reset
=
'1'
then
if
I_reset
=
'1'
then
SR_filteredSample
<=
(
others
=>
'0'
);
SR_filteredSample
<=
(
others
=>
'0'
);
elsif
rising_edge
(
I_clock
)
then
elsif
rising_edge
(
I_clock
)
then
if
I_load
Y
=
'1'
then
if
I_load
Output
=
'1'
then
if
SC_addResult
(
14
)
=
'1'
then
if
SC_addResult
(
14
)
=
'1'
then
SR_filteredSample
<=
SC_addResult
(
30
downto
15
)
+
1
;
SR_filteredSample
<=
SC_addResult
(
30
downto
15
)
+
1
;
else
else
...
...
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