- added generic for initial value
Committed on the Free edition of March Hare Software CVSNT Server. Upgrade to CVS Suite for more features and support: http://march-hare.com/cvsnt/ git-svn-id: http://moon:8086/svn/vhdl/trunk@892 cc03376c-175c-47c8-b038-4cd826a8556b
This commit is contained in:
@@ -6,6 +6,10 @@ use std.textio.all; -- Imports the standard textio package.
|
||||
use work.utils_pkg.all; -- Imports the standard textio package.
|
||||
|
||||
ENTITY crc32 IS
|
||||
Generic
|
||||
(
|
||||
crc32_init : unsigned(31 downto 0) := X"00000000"
|
||||
);
|
||||
Port
|
||||
(
|
||||
rst : in STD_LOGIC;
|
||||
@@ -48,7 +52,7 @@ begin
|
||||
if rising_edge(clk) then
|
||||
crc32_vld <= not rst and din_vld;
|
||||
if rst = '1' then
|
||||
crc0 <= (others => '0');
|
||||
crc0 <= crc32_init;
|
||||
elsif din_vld = '1' then
|
||||
crc0 <= crc2;
|
||||
end if;
|
||||
|
||||
Reference in New Issue
Block a user