PageRenderTime 5ms CodeModel.GetById 1ms app.highlight 1ms RepoModel.GetById 2ms app.codeStats 0ms

/1/Not16.hdl

http://github.com/happy4crazy/elements_of_computing_systems
Unknown | 32 lines | 28 code | 4 blank | 0 comment | 0 complexity | ac6f382c847a2313c7b7fd12a7b3c106 MD5 | raw file
 1// This file is part of the materials accompanying the book 
 2// "The Elements of Computing Systems" by Nisan and Schocken, 
 3// MIT Press. Book site: www.idc.ac.il/tecs
 4// File name: projects/01/Not16.hdl
 5
 6/**
 7 * 16-bit negation gate: for i=0..15 out[i] = not in[i]
 8 */
 9
10CHIP Not16 {
11
12    IN  in[16];
13    OUT out[16];
14
15    PARTS:
16    Not(in=in[0], out=out[0]);
17    Not(in=in[1], out=out[1]);
18    Not(in=in[2], out=out[2]);
19    Not(in=in[3], out=out[3]);
20    Not(in=in[4], out=out[4]);
21    Not(in=in[5], out=out[5]);
22    Not(in=in[6], out=out[6]);
23    Not(in=in[7], out=out[7]);
24    Not(in=in[8], out=out[8]);
25    Not(in=in[9], out=out[9]);
26    Not(in=in[10], out=out[10]);
27    Not(in=in[11], out=out[11]);
28    Not(in=in[12], out=out[12]);
29    Not(in=in[13], out=out[13]);
30    Not(in=in[14], out=out[14]);
31    Not(in=in[15], out=out[15]);
32}