AHDL



MAX+PLUS II I/O . BIDIR, TRI. TRI .

bus_reg2.tdf bus_reg3.tdf, , , , . . DFF TRI . Register

Instance, , Variable.

 

SUBDESIGN bus_reg2 SUBDESIGN bus_reg3

( (

clk : INPUT; clk : INPUT;

oe : INPUT; oe : INPUT;

io : BIDIR; io : BIDIR;

) )

VARIABLE VARIABLE

dff_out : NODE; my_dff : DFF;

my_tri : TRI;

BEGIN BEGIN

 

dff_out = DFF(io, clk, ,); my_dff.d = io;

io = TRI(dff_out, oe); my_dff.clk = clk;

my_tri.in = my_dff.q;

END; my_tri.oe = oe;

io = my_tri.out;

 

END;

 

io, TRI, d D (DFF).

 

TDF . . Function TDF RETURNS. bidir1.tdf, , bus_reg2, .

 

FUNCTION bus_reg2 (clk, oe)

RETURNS (io);

 

SUBDESIGN bidir1

(

clk, oe : INPUT;

io[3..0] : BIDIR;

)

BEGIN

io0 = bus_reg2(clk, oe);

io1 = bus_reg2(clk, oe);

io2 = bus_reg2(clk, oe);

io3 = bus_reg2(clk, oe);

END;