[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [ethmac] lfsr code
Hi,
Well of course you need to add :
always @(posedge clk or negedge rstn)
if (~rstn)
polinom_num <= #1 10'b1010101010;
else
polinom_num <= #1 polinom_num_d;
have a nice day
Illan
-----Original Message-----
From: Andras Ferencz [mailto:aferencz@usa.net]
Sent: Saturday, July 14, 2001 3:07 AM
To: ethmac@opencores.org
Subject: RE: [ethmac] lfsr code
At 07:15 PM 13-07-01 -0700, you wrote:
>Hi,
>
> lsfr for 10 bit is as followed :
>
>assign polinom_num_d[0] = polinom_num[2] ^ polinom_num[9];
>assign polinom_num_d[1] = polinom_num[0];
>assign polinom_num_d[2] = polinom_num[1];
>assign polinom_num_d[3] = polinom_num[2];
>assign polinom_num_d[4] = polinom_num[3];
>assign polinom_num_d[5] = polinom_num[4];
>assign polinom_num_d[6] = polinom_num[5];
>assign polinom_num_d[7] = polinom_num[6];
>assign polinom_num_d[8] = polinom_num[7];
>assign polinom_num_d[9] = polinom_num[8];
>
>have a nice day
>
> Illan
Hi,
plain continuous assignment ? are you sure there are no FF's ? :-)
_________________________ __________________________
Andras FERENCZ | 30, Hermitage House
phone: +44-1279-647189 | Bentfield Rd, CM24 8JL
mail : aferencz@usa.net | Stansted, Essex, UK
_________________________|__________________________
--
To unsubscribe from ethmac mailing list please visit
http://www.opencores.org/mailinglists.shtml
--
To unsubscribe from ethmac mailing list please visit http://www.opencores.org/mailinglists.shtml