MultiBit AND gate

4 messages
Open this post in threaded view
|

MultiBit AND gate

 I'm having a problem on MultiBit AND gate. The description say it has 16 outputs, but If i connect the A input and the B input of the AND gate on the First and second input of the Multi bit AND (Like the left image), I can have only 8 outputs. Connecting it as the right way seems useless, I was thinking about the connections being made on the permutations of the inputs, but like this i'm going to have 224 outputs (i guess). I'm a little clueless on this. My name is Beuys von Telekraft, and I am a scientist. I work in my laboratory night and day.
Open this post in threaded view
|

Re: MultiBit AND gate

 Administrator The skeleton file for the And16 says: ```// This file is part of the materials accompanying the book // "The Elements of Computing Systems" by Nisan and Schocken, // MIT Press. Book site: www.idc.ac.il/tecs // File name: projects/01/And16.hdl /** * 16-bit and gate. For i=0..15 out[i] = a[i] and b[i] */ CHIP And16 { IN a[16], b[16]; OUT out[16]; ```This syntax means that a, b and out are 16 wire buses. Read appendix A.5.3 to learn more about buses. And16 is nothing more than a box that has 16 And gates in it: out wire 0 = a wire 0 AND b wire 0, etc. --Mark
Open this post in threaded view
|

Re: MultiBit AND gate

 Oh, I got it. I thought it should have a total of 16 "mono" inputs and 16 "mono" outputs, but there should be 32 "mono" inputs (or 16 "stereo" inputs) and 16 "mono" outputs. My name is Beuys von Telekraft, and I am a scientist. I work in my laboratory night and day.
Open this post in threaded view
|

Re: MultiBit AND gate

 Administrator You will do better to think of And16 as having two input buses and one output bus, each with 16 wires.  Don't think stereophonic, but rather 16-ophonic. That's a lot of speakers! --Mark