Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
tp-filtre-etudiant-h24daoua
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
UEEE
sar-signal-audio
gr-vhdl-h24daoua
tp-filtre-etudiant-h24daoua
Commits
42ed4313
Commit
42ed4313
authored
1 month ago
by
Houda DAOUAIRI
Browse files
Options
Downloads
Patches
Plain Diff
tp a continuer
parent
816e4bcb
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
docs/img/FSM.drawio
+3
-3
3 additions, 3 deletions
docs/img/FSM.drawio
docs/img/FSM.png
+0
-0
0 additions, 0 deletions
docs/img/FSM.png
src/hdl/controlUnit.vhd
+34
-15
34 additions, 15 deletions
src/hdl/controlUnit.vhd
with
37 additions
and
18 deletions
docs/img/FSM.drawio
+
3
−
3
View file @
42ed4313
...
@@ -64,7 +64,7 @@
...
@@ -64,7 +64,7 @@
<mxPoint x="340" y="140" as="targetPoint" />
<mxPoint x="340" y="140" as="targetPoint" />
</mxGeometry>
</mxGeometry>
</mxCell>
</mxCell>
<mxCell id="bw7OO0sNot4gaAuLXok9-17" value="<font
style="font-size: 15px;"
face="Ubuntu Mono">
Condition
1</font>" style="edgeLabel;html=1;align=left;verticalAlign=middle;resizable=0;points=[];labelBackgroundColor=none;labelBorderColor=none;fontStyle=2" parent="bw7OO0sNot4gaAuLXok9-14" vertex="1" connectable="0">
<mxCell id="bw7OO0sNot4gaAuLXok9-17" value="<font face="Ubuntu Mono">
VALID =
1</font>" style="edgeLabel;html=1;align=left;verticalAlign=middle;resizable=0;points=[];labelBackgroundColor=none;labelBorderColor=none;fontStyle=2" parent="bw7OO0sNot4gaAuLXok9-14" vertex="1" connectable="0">
<mxGeometry x="0.564" relative="1" as="geometry">
<mxGeometry x="0.564" relative="1" as="geometry">
<mxPoint x="10" as="offset" />
<mxPoint x="10" as="offset" />
</mxGeometry>
</mxGeometry>
...
@@ -81,10 +81,10 @@
...
@@ -81,10 +81,10 @@
<mxPoint x="340" y="620" as="targetPoint" />
<mxPoint x="340" y="620" as="targetPoint" />
</mxGeometry>
</mxGeometry>
</mxCell>
</mxCell>
<mxCell id="bw7OO0sNot4gaAuLXok9-18" value="<font
style="font-size: 15px;"
face="Ubuntu Mono">
Condition 2
</font>" style="edgeLabel;html=1;align=left;verticalAlign=middle;resizable=0;points=[];labelBackgroundColor=none;labelBorderColor=none;fontStyle=2" parent="1" vertex="1" connectable="0">
<mxCell id="bw7OO0sNot4gaAuLXok9-18" value="<font face="Ubuntu Mono">
ProcessingDone = 1
</font>" style="edgeLabel;html=1;align=left;verticalAlign=middle;resizable=0;points=[];labelBackgroundColor=none;labelBorderColor=none;fontStyle=2" parent="1" vertex="1" connectable="0">
<mxGeometry x="340.00279069767436" y="380" as="geometry" />
<mxGeometry x="340.00279069767436" y="380" as="geometry" />
</mxCell>
</mxCell>
<mxCell id="bw7OO0sNot4gaAuLXok9-19" value="<font
style="font-size: 15px;"
face="Ubuntu Mono">
Condition 3
</font>" style="edgeLabel;html=1;align=left;verticalAlign=middle;resizable=0;points=[];labelBackgroundColor=none;labelBorderColor=none;fontStyle=2" parent="1" vertex="1" connectable="0">
<mxCell id="bw7OO0sNot4gaAuLXok9-19" value="<font face="Ubuntu Mono">
VALID = 0 <br>
</font>" style="edgeLabel;html=1;align=left;verticalAlign=middle;resizable=0;points=[];labelBackgroundColor=none;labelBorderColor=none;fontStyle=2" parent="1" vertex="1" connectable="0">
<mxGeometry x="340.00279069767436" y="620" as="geometry" />
<mxGeometry x="340.00279069767436" y="620" as="geometry" />
</mxCell>
</mxCell>
<mxCell id="bw7OO0sNot4gaAuLXok9-20" value="" style="curved=1;endArrow=block;html=1;rounded=0;endFill=1;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" parent="1" target="bw7OO0sNot4gaAuLXok9-1" edge="1">
<mxCell id="bw7OO0sNot4gaAuLXok9-20" value="" style="curved=1;endArrow=block;html=1;rounded=0;endFill=1;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" parent="1" target="bw7OO0sNot4gaAuLXok9-1" edge="1">
...
...
This diff is collapsed.
Click to expand it.
docs/img/FSM.png
+
0
−
0
View replaced file @
816e4bcb
View file @
42ed4313
126 KiB
|
W:
|
H:
125 KiB
|
W:
|
H:
2-up
Swipe
Onion skin
This diff is collapsed.
Click to expand it.
src/hdl/controlUnit.vhd
+
34
−
15
View file @
42ed4313
...
@@ -54,23 +54,42 @@ begin
...
@@ -54,23 +54,42 @@ begin
-- Process to describe the state register
-- Process to describe the state register
-- Current state is provide at the output of the register
-- Current state is provide at the output of the register
-- and is updated with the next state at each rising edge of clock
-- and is updated with the next state at each rising edge of clock
process
(
_
BLANK_
)
is
process
(
I_clock
,
I_reset
)
is
begin
begin
if
I_reset
=
'1'
then
-- asynchronous reset (active high)
if
I_reset
=
'1'
then
-- asynchronous reset (active high)
SR_currentState
<=
_
BLANK_
SR_currentState
<=
WAIT_SAMPLE
;
elsif
rising_edge
(
I_clock
)
then
-- rising clock edge
elsif
rising_edge
(
I_clock
)
then
-- rising clock edge
_
BLANK_
SR_currentState
<=
SR_nextState
;
end
if
;
end
if
;
end
process
;
end
process
;
-- Combinatorial process computing the next state which depends on
-- Combinatorial process computing the next state which depends on
-- the current state and on the inputs
-- the current state and on the inputs
process
(
_
BLANK_
)
is
process
(
SR_currentState
,
I_inputSampleValid
,
I_processingDone
)
is
begin
begin
case
SR_currentState
is
case
SR_currentState
is
when
WAIT_SAMPLE
=>
when
WAIT_SAMPLE
=>
if
I_inputsampleValid
=
'1'
then
_
BLANK_
SR_nextState
<=
STORE
;
else
SR_nextState
<=
WAIT_SAMPLE
;
end
if
;
when
STORE
=>
SR_nextState
<=
PROCESSING_LOOP
;
when
PROCESSING_LOOP
=>
if
I_processingDone
=
'1'
then
SR_nextState
<=
OUTPUT
;
else
SR_nextState
<=
PROCESSING_LOOP
;
end
if
;
when
OUTPUT
=>
SR_nextState
<=
WAIT_END_SAMPLE
;
when
WAIT_END_SAMPLE
=>
if
I_inputSampleValid
=
'0'
then
SR_nextState
<=
WAIT_SAMPLE
;
else
SR_nextState
<=
WAIT_END_SAMPLE
;
end
if
;
when
others
=>
null
;
when
others
=>
null
;
end
case
;
end
case
;
...
@@ -78,13 +97,13 @@ begin
...
@@ -78,13 +97,13 @@ begin
-- Rules to compute the outputs depending on the current state
-- Rules to compute the outputs depending on the current state
-- (and on the inputs, if you want a Mealy machine).
-- (and on the inputs, if you want a Mealy machine).
O_loadShift
<=
'1'
when
_
BLANK_
else
'0'
;
O_loadShift
<=
'1'
when
SR_currentState
=
STORE
else
'0'
;
O_initAddress
<=
'1'
when
_
BLANK_
else
'0'
;
O_initAddress
<=
'1'
when
SR_currentState
=
STORE
else
'0'
;
O_incrAddress
<=
'1'
when
_
BLANK_
else
'0'
;
O_incrAddress
<=
'1'
when
SR_currentState
=
PROCESSING_LOOP
else
'0'
;
O_initSum
<=
'1'
when
_
BLANK_
else
'0'
;
O_initSum
<=
'1'
when
SR_currentState
=
STORE
else
'0'
;
O_loadSum
<=
'1'
when
_
BLANK_
else
'0'
;
O_loadSum
<=
'1'
when
SR_currentState
=
PROCESSING_LOOP
else
'0'
;
O_loadOutput
<=
'1'
when
_
BLANK_
else
'0'
;
O_loadOutput
<=
'1'
when
SR_currentState
=
OUTPUT
else
'0'
;
O_FilteredSampleValid
<=
'1'
when
_
BLANK_
else
'0'
;
O_FilteredSampleValid
<=
'1'
when
SR_currentState
=
OUTPUT
or
SR_currentState
=
WAIT_END_SAMPLE
else
'0'
;
...
...
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