- removed 'ce'
git-svn-id: http://moon:8086/svn/vhdl/trunk@222 cc03376c-175c-47c8-b038-4cd826a8556b
This commit is contained in:
@@ -42,7 +42,6 @@ Port
|
|||||||
(
|
(
|
||||||
rst : in std_logic;
|
rst : in std_logic;
|
||||||
clk : in std_logic;
|
clk : in std_logic;
|
||||||
ce : in std_logic;
|
|
||||||
shift_en : in std_logic;
|
shift_en : in std_logic;
|
||||||
delay : in natural range 0 to ntaps-1;
|
delay : in natural range 0 to ntaps-1;
|
||||||
din : in sfixed;
|
din : in sfixed;
|
||||||
@@ -74,8 +73,7 @@ counter:
|
|||||||
if rising_edge(clk) then
|
if rising_edge(clk) then
|
||||||
if rst = '1' then
|
if rst = '1' then
|
||||||
count <= 0;
|
count <= 0;
|
||||||
elsif ce = '1' then
|
elsif shift_en = '1' then
|
||||||
if shift_en = '1' then
|
|
||||||
if count /= ntaps-1 then
|
if count /= ntaps-1 then
|
||||||
count <= count + 1;
|
count <= count + 1;
|
||||||
else
|
else
|
||||||
@@ -83,7 +81,6 @@ counter:
|
|||||||
end if;
|
end if;
|
||||||
end if;
|
end if;
|
||||||
end if;
|
end if;
|
||||||
end if;
|
|
||||||
end process;
|
end process;
|
||||||
|
|
||||||
inst_dpram_1w1r: entity work.dpram_1w1r
|
inst_dpram_1w1r: entity work.dpram_1w1r
|
||||||
@@ -95,8 +92,8 @@ counter:
|
|||||||
PORT MAP (
|
PORT MAP (
|
||||||
clka => clk,
|
clka => clk,
|
||||||
clkb => clk,
|
clkb => clk,
|
||||||
en_a => ce,
|
en_a => '1',
|
||||||
en_b => ce,
|
en_b => '1',
|
||||||
we_a => shift_en,
|
we_a => shift_en,
|
||||||
addr_a => addr_w,
|
addr_a => addr_w,
|
||||||
addr_b => addr_r,
|
addr_b => addr_r,
|
||||||
@@ -121,13 +118,11 @@ shift_register:
|
|||||||
variable delay_pipe : delay_pipe_t;
|
variable delay_pipe : delay_pipe_t;
|
||||||
begin
|
begin
|
||||||
if rising_edge(clk) then
|
if rising_edge(clk) then
|
||||||
if ce = '1' then
|
|
||||||
dout <= delay_pipe(delay);
|
dout <= delay_pipe(delay);
|
||||||
if shift_en = '1' then
|
if shift_en = '1' then
|
||||||
delay_pipe := delay_pipe(delay_pipe'left-1 downto 0) & din;
|
delay_pipe := delay_pipe(delay_pipe'left-1 downto 0) & din;
|
||||||
end if;
|
end if;
|
||||||
end if;
|
end if;
|
||||||
end if;
|
|
||||||
end process;
|
end process;
|
||||||
|
|
||||||
end reg_based;
|
end reg_based;
|
||||||
|
|||||||
Reference in New Issue
Block a user