A macrocell connected between a logic circuit and an input/output (I/O) pad means, said logic circuit including inputs and an output producing a logic signal from an AND array and two OR arrays receiving logic signals from the AND array, said I/O pad means for outputting said logic signals or inputting external signals, the macrocell comprising:
- a) feedback means, responsive to said logic circuit output, for feeding said logic signals back to said logic circuit inputs;
- b) external input means, coupled to said pad, for routing said external signals into said macrocell;
- c) a connecting means, coupled to said external input means and said feedback means, for connecting the logic circuit inputs to either said feedback means or said external input means;
- d) gating means, coupled to said connecting means, for gating said connecting means between, coupling said external input means or coupling said feedback means, to said logic circuit inputs;
- and
- e) said gating means further comprises:
- e1) a first input, coupled to the AND array;
- and
- e2) a second input, coupled to the AND array.