+/TECS

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

P1n3appl3Remove headers5e97a3a

master
761 B27 linesraw
1/**
2 * 16-bit bitwise Nand:
3 * for i = 0..15 out[i] = (a[i] nand b[i])
4 */
5
6CHIP Nand16 {
7    IN a[16], b[16];
8    OUT out[16];
9
10    PARTS:
11    Nand(a=a[0],b=b[0],out=out[0]);
12    Nand(a=a[1],b=b[1],out=out[1]);
13    Nand(a=a[2],b=b[2],out=out[2]);
14    Nand(a=a[3],b=b[3],out=out[3]);
15    Nand(a=a[4],b=b[4],out=out[4]);
16    Nand(a=a[5],b=b[5],out=out[5]);
17    Nand(a=a[6],b=b[6],out=out[6]);
18    Nand(a=a[7],b=b[7],out=out[7]);
19    Nand(a=a[8],b=b[8],out=out[8]);
20    Nand(a=a[9],b=b[9],out=out[9]);
21    Nand(a=a[10],b=b[10],out=out[10]);
22    Nand(a=a[11],b=b[11],out=out[11]);
23    Nand(a=a[12],b=b[12],out=out[12]);
24    Nand(a=a[13],b=b[13],out=out[13]);
25    Nand(a=a[14],b=b[14],out=out[14]);
26    Nand(a=a[15],b=b[15],out=out[15]);
27}