[an error occurred while processing this directive]
[an error occurred while processing this directive]
|
Имеем на выходе dout значение din[i] для соответствующего oe[i]
SUBDESIGN hiz_emu
(
din[3..0] :INPUT;
dout :OUTPUT;
oe[3..0] :INPUT;
)
VARIABLE
tri_out :TRI_STATE_NODE;
BEGIN
FOR i IN 0 TO 3 GENERATE
tri_out = TRI(din[i], oe[i]);
END GENERATE;
dout = tri_out;
END;
E-mail: info@telesys.ru