Skip to content
Snippets Groups Projects
Commit a0f3a451 authored by Jean-Noël Bazin's avatar Jean-Noël Bazin
Browse files

correction utilisation switch dans fir.vhd

parent 55ab9ed8
No related branches found
No related tags found
No related merge requests found
...@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment