- fixed bounds check error
git-svn-id: http://moon:8086/svn/vhdl/trunk@1472 cc03376c-175c-47c8-b038-4cd826a8556b
This commit is contained in:
@@ -64,7 +64,7 @@ begin
|
||||
addr_w <= to_unsigned(count, addr_w'length);
|
||||
addr_r <= addr_w + not to_unsigned(delay, addr_w'length);
|
||||
|
||||
ram_w <= unsigned(din);
|
||||
ram_w <= unsigned(to_signed(din));
|
||||
dout <= sfixed(ram_r);
|
||||
|
||||
counter:
|
||||
|
||||
@@ -145,7 +145,7 @@ coef_we_gen:
|
||||
i := to_integer(saddr);
|
||||
coef_we <= (others => '0');
|
||||
coef_we(i) <= '1';
|
||||
coef_din <= unsigned(h_in);
|
||||
coef_din <= unsigned(to_signed(h_in));
|
||||
coef_addr <= caddr;
|
||||
end if;
|
||||
end process;
|
||||
|
||||
Reference in New Issue
Block a user