contents.gifindex.gif

Creating Bidirectional Signals Using ABEL

The following code shows how to implement bidirectional signals in ABEL:

out0:= out0.pin; `` clock data on pin into register
out0.clk = strobe0;
`` on rising edge of strobe0
out0.oe = read;
`` Read back when read is high
out1:= out0.q $ out0.pin;
`` out1 goes high when out0 register
out1.clk = strobe1;
`` and pin are different

The following drawing shows how this code is implemented in the device:

webpack00000018.gif