Oh nice so HI means HIGH.HI, True, and 1 are all pretty much synonyms. When talking about pure logic, True/False (or T/F) are probably the best terms to use. When talking about actual logic circuits, HI/LO are probably the best (and refer to the two possible voltage values of the circuit, namely the HIgher of the two and the LOwer of the two). When talking about arithmetic circuits, 1/0 are probably best.
Thanks, and not a problem. That's why I'm leading you along but letting you struggle to actually get there. That's how you learn the best because you learn in a way that makes sense to you.
Your last circuit did have the sign extender done correctly. The idea you want to have is the notion that you bring a 4-bit two's complement value into a box and take out from that box an 8-bit two's complement value that you then take to your adder. What goes on inside that box? Not that you don't need any components in that box; it can be done just with how you wire the inputs to the outputs.
Now, think of what is different between your A+B and A-B circuits. It would appeat that you need a circuit that uses a control input in order to either pass a value through unchanged or to invert the value, based on the state of the control input. So draw a truth table for all of the possible combinations of the control input and the value (a 1-bit value) and what the 1-bit value should be for each case. Does this logic table look familiar to you?
For the multiplier, walk through the steps you would use to multiply two 4-bit values together. Now see if you can determine the associated logic functions that happen at each step. Note that there are lots of ways to implement an adder, but your goal is to come up an just one way that works -- you can worry about efficiency and elegance later.
yes, I am familiar with the six logic gates and the values that they produce. the thing is the 1 bit value you mention for the truth table depends on the type of gate used.
If my circuit was finished in its entirety, it supposed to use a 2 bit control to perform various calculation on the 4 bit 2's complement numbers.
If the 2 bit control = 00 my output is suppose to be a 8 bit 2's complement number with all 0's
if the control = 01 the circuit is suppose to output the sum from the addition circuit
if the control = 10 the circuit is suppose to output the difference from the subtraction circuit
if the control = 11 the circuit is suppose to output the product from the multiplication circuit.
this is what I came up for multiplication circuit after going through my lecture notes. it's not pretty at the moment but it gives the correct result.
Is wiring 4 rightmost location of the 4 ALUs(which is the control) supposed to be wired to the control on the right since they are all controls?
Last edited: