- removed 'ce'

git-svn-id: http://moon:8086/svn/vhdl/trunk@222 cc03376c-175c-47c8-b038-4cd826a8556b
This commit is contained in:
2009-01-11 12:57:06 +00:00
parent c403b3b22d
commit 748bd9e52a
+10 -15
View File
@@ -42,7 +42,6 @@ Port
(
rst : in std_logic;
clk : in std_logic;
ce : in std_logic;
shift_en : in std_logic;
delay : in natural range 0 to ntaps-1;
din : in sfixed;
@@ -74,13 +73,11 @@ counter:
if rising_edge(clk) then
if rst = '1' then
count <= 0;
elsif ce = '1' then
if shift_en = '1' then
if count /= ntaps-1 then
count <= count + 1;
else
count <= 0;
end if;
elsif shift_en = '1' then
if count /= ntaps-1 then
count <= count + 1;
else
count <= 0;
end if;
end if;
end if;
@@ -95,8 +92,8 @@ counter:
PORT MAP (
clka => clk,
clkb => clk,
en_a => ce,
en_b => ce,
en_a => '1',
en_b => '1',
we_a => shift_en,
addr_a => addr_w,
addr_b => addr_r,
@@ -121,11 +118,9 @@ shift_register:
variable delay_pipe : delay_pipe_t;
begin
if rising_edge(clk) then
if ce = '1' then
dout <= delay_pipe(delay);
if shift_en = '1' then
delay_pipe := delay_pipe(delay_pipe'left-1 downto 0) & din;
end if;
dout <= delay_pipe(delay);
if shift_en = '1' then
delay_pipe := delay_pipe(delay_pipe'left-1 downto 0) & din;
end if;
end if;
end process;