[an error occurred while processing this directive]
|
SUBDESIGN div2
(
in :INPUT;
osc :INPUT;
out :OUTPUT;
outrise :OUTPUT;
)
VARIABLE
tr :MACHINE WITH STATES (s0,s1,s2,s3);
BEGIN
tr.clk=osc;
TABLE
tr, in => tr, out, outrise;
s0, 0 => s0, 0, 0;
s0, 1 => s1, 1, 1;s1, 1 => s1, 1, 0;
s1, 0 => s2, 1, 0;s2, 0 => s2, 1, 0;
s2, 1 => s3, 0, 0;s3, 1 => s3, 0, 0;
s3, 0 => s0, 0, 0;END TABLE;
END;
E-mail: info@telesys.ru