[an error occurred while processing this directive]
[an error occurred while processing this directive]
|
parameters (width = 8);
SUBDESIGN rand
(
clk,
clr,
Set[width-1..0] : INPUT;
code[width-1..0] : OUTPUT;
)
VARIABLEd[width-1..0] : dff;
BEGIN
d[].clk = clk;
d[width-1..1] = d[width-2..0];
--
d[].prn = clr or Set[];
d[].clrn = clr or !Set[];
--
d0 = d7 xor d6 xor d4 xor d2;
--
code[] = d[];
END;
E-mail: info@telesys.ru