Components, digital

flipflop

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

Pins

flipflop specimen1 component and 0 connections.DU1dqnqclockpresetclear
flipflop specimen
flipflop with its default options, pins named.

Pin functions

PinSide
dleft
qright
nqright
clockbottom
presettop
cleartop

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
typeOne of 5 values: sr-latch,d-latch,d,jk,td
inputsWhole number from 1 to 32 3
outputsWhole number from 1 to 32 2
orientationOne of 4 values: right,down,left,upright
fitOnly wiresNone

fit and orientation cannot be written together.

Variants

Pin names depend on the selected variant. Each drawing labels its own pins.

flipflop specimen1 component and 0 connections.SR-LATCHU1srqnqenablepreset
flipflop specimen
type=sr-latch

s (left),r (left),q (right),nq (right),enable (bottom),preset (top)

flipflop specimen1 component and 0 connections.D-LATCHU1dqnqclockpreset
flipflop specimen
type=d-latch

d (left),q (right),nq (right),clock (bottom),preset (top)

flipflop specimen1 component and 0 connections.DU1dqnqclockpresetclear
flipflop specimen
type=d

d (left),q (right),nq (right),clock (bottom),preset (top),clear (top)

flipflop specimen1 component and 0 connections.JKU1jkqnqclockpreset
flipflop specimen
type=jk

j (left),k (left),q (right),nq (right),clock (bottom),preset (top)

flipflop specimen1 component and 0 connections.TU1tqnqclockpresetclear
flipflop specimen
type=t

t (left),q (right),nq (right),clock (bottom),preset (top),clear (top)

Writing one

flipflop:U1 at (120, 131) #purple