Gast
#2198360
Hallo ich wollte
eigentlich
das irreversible Polynom:
x^8+x^6+x^5+x^3+1 darstellen:
das ist mein Code dazu:
P2: process(CLK, RESET)
begin
if RESET = '0' then -- low active reset am Spartan3E-Board!
D_OUT2 <= "00000001" after 5 ns;
elsif CLK = '1' and CLK'event then
if gen_PZGV2 = '1' then -- PZG_aktiviert
if D_OUT2 = "00000000" then
D_OUT2 <= "00000001" after 5 ns;
else
D_OUT2 <= (D_OUT2(6 downto 0) & SERIAL_IN2) after 5 ns;
end if;
else
if reset_PZGV2 = '1' then
D_OUT2 <= "00000000";
end if;
end if;
D_OUT2(2) <= D_OUT2(1) xor D_OUT2(7); --after 5 ns;
D_OUT2(4) <= D_OUT2(3) xor D_OUT2(7); --after 5 ns;
D_OUT2(5) <= D_OUT2(4) xor D_OUT2(7); --after 5 ns;
D_OUT2(7) <= D_OUT2(6) xor D_OUT2(7); --after 5 ns;
end if;
end process P2;
aber irgend wie schein das eingestellte Polynom nicht dem von mir
gewünscht zu entsprechen? was ist den falsch!=??
