Creating Latches in ABEL
The following code shows how to create registered and combinatorial latches using ABEL.
// Registered Latches
out0 node istype ‘reg’;
Equations
out0 := data0;
out0.lh = latch_enable; `` transparent high
// Combinatorial Latches
out0 node istype ‘com, retain’;
`` retain attribute turns off Boolean minimization in
`` ABEL compiler and CPLD fitter to retain redundant
`` product terms
out = data & latch `` latch is transparent high
# out & !latch `` latch data on falling edge
# out & data; `` redundant product term