AHDL


Defaults - 2


¨    Default X () .

¨    , NODE, , , VCC. (TDF) : a

GND bn

VCC:

 

 

BEGIN

DEFAULTS

a = GND;

bn = VCC;

END DEFAULTS;

 

IF c1 THEN

a = a1;

bn = b1n;

END IF;

 

IF c2 THEN

a = a2;

bn = b2n;

END IF;

END;

 

:

 

a = c1 & a1 # c2 & a2;

bn = (!c1 # b1n) & (!c2 # b2n);

 

¨    , , VCC. reg[].clrn VCC:

 

SUBDESIGN 5bcount

(

d[5..1] : INPUT;

clk : INPUT;

clr : INPUT;

sys_reset : INPUT;

enable : INPUT;

load : INPUT;

q[5..1] : OUTPUT;

)

VARIABLE

reg[5..1] : DFF;

BEGIN

DEFAULTS

reg[].clrn = VCC;

END DEFAULTS;

 

reg[].clk = clk;

q[] = reg[];

 

IF sys_reset # clr THEN

reg[].clrn = GND;

END IF;

 

!reg[].prn = (load & d[]) & !clr;

!reg[].clrn = load & !d[];

reg[] = reg[] + (0, enable);

END;