Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
tp-filtre-etudiant-s24agoum
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-s24agoum
tp-filtre-etudiant-s24agoum
Commits
a0f3a451
Commit
a0f3a451
authored
1 month ago
by
Jean-Noël Bazin
Browse files
Options
Downloads
Patches
Plain Diff
correction utilisation switch dans fir.vhd
parent
55ab9ed8
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/fir.vhd
+2
-2
2 additions, 2 deletions
src/hdl/fir.vhd
with
2 additions
and
2 deletions
src/hdl/fir.vhd
+
2
−
2
View file @
a0f3a451
...
@@ -48,9 +48,9 @@ begin -- myarch
...
@@ -48,9 +48,9 @@ begin -- myarch
prc
:
process
(
config_sw
(
4
downto
0
),
din
)
is
prc
:
process
(
config_sw
(
4
downto
0
),
din
)
is
variable
w
:
integer
;
variable
w
:
integer
;
begin
-- process prc
begin
-- process prc
w
:
=
to_integer
(
unsigned
(
config_sw
(
4
downto
1
)));
-- number of removed bits
w
:
=
to_integer
(
unsigned
(
config_sw
(
3
downto
0
)));
-- number of removed bits
D_in
<=
(
others
=>
'0'
);
D_in
<=
(
others
=>
'0'
);
if
(
config_sw
(
0
)
=
'1'
)
then
if
(
config_sw
(
4
)
=
'1'
)
then
D_in
(
15
downto
w
)
<=
din
(
dwidth
-1
downto
dwidth
-16
+
w
);
-- truncate
D_in
(
15
downto
w
)
<=
din
(
dwidth
-1
downto
dwidth
-16
+
w
);
-- truncate
else
else
if
(
din
(
dwidth
-16
+
w
-1
)
=
'1'
)
then
if
(
din
(
dwidth
-16
+
w
-1
)
=
'1'
)
then
...
...
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