Components, digital

comparator

Every option, pin and variant of comparator, as release 1.3.1 of the compiler states them.

Pins

comparator specimen1 component and 0 connections.CMPU1in1in2gteqlt
comparator specimen
comparator with its default options, pins named.

Pin functions

PinSide
in1left
in2left
gtright
eqright
ltright

A wire names a pin as ID.pin. Rotating the part moves the pins with it; their names stay the same.

Options

Options go in square brackets after the colour, as name=value. Any option not listed here is an error.

Options

OptionAcceptsDefault
inputsWhole number from 1 to 32 2
outputsWhole number from 1 to 32 3
orientationOne of 4 values: right,down,left,upright
fitOnly wiresNone

fit and orientation cannot be written together.

Writing one

comparator:U1 at (120, 115) #purple