+/TECS

git clone https://git.julia.blue/+/TECS

P1n3appl3Remove headers5e97a3a

master
269 B14 linesraw
1/**
2 * 1-bit register:
3 * If load[t] == 1 then out[t+1] = in[t]
4 *                 else out does not change (out[t+1] = out[t])
5 */
6
7CHIP Bit {
8    IN in, load;
9    OUT out;
10
11    PARTS:
12	Mux(a=w1, b=in, sel=load, out=w2);
13 	DFF(in=w2, out=w1, out=out);
14}