HW objective: Before this assignment, we were to design an incrementer/decrementer circuit. One input (ud), decides if the circuit will increment or decrement the input value. The input X would be from 0 to 5.
Now we are to use 2x4 and/or 3x8 BCD decoders and 3-input NAND gates to implement the same incrementer/decrementer circuit as described above.
Steps I've taken: To design the first circuit, I created a truth table with inputs X2, X1, X0, and ud. When ud is 0, the circuit increments. When it is 1, it decrements. When the circuit decrements, 000 outputs 101. When it increments, 101 outputs 000. 110 and 111 outputs dont cares. Using this truth table, I created K-maps, and was able to design a successful circuit. The first image that I've uploaded is this circuit.
Now for this new assignment, where I am lost, I've decided to use four 2x4 decoders. 'ud' and my MSB, X2, is inputted into the first decoder. Each output is then connected from this decoder to the enablers of the other four decoders. X1 and X0 are inputted into all four of these decoders.
From here, I figured that if I could use OR gates, I could just OR all of the corresponding minterms to the appropriate output F0, F1, or F2. Because I am only able to use 3-input NAND gates, I decided to use the equivalent of an OR with NAND gates. The second image that I've attached to this post is what I have so far...
I've simulated my circuit on Cedar Logic, and it does not work.
Any help would be appreciated!
Now we are to use 2x4 and/or 3x8 BCD decoders and 3-input NAND gates to implement the same incrementer/decrementer circuit as described above.
Steps I've taken: To design the first circuit, I created a truth table with inputs X2, X1, X0, and ud. When ud is 0, the circuit increments. When it is 1, it decrements. When the circuit decrements, 000 outputs 101. When it increments, 101 outputs 000. 110 and 111 outputs dont cares. Using this truth table, I created K-maps, and was able to design a successful circuit. The first image that I've uploaded is this circuit.
Now for this new assignment, where I am lost, I've decided to use four 2x4 decoders. 'ud' and my MSB, X2, is inputted into the first decoder. Each output is then connected from this decoder to the enablers of the other four decoders. X1 and X0 are inputted into all four of these decoders.
From here, I figured that if I could use OR gates, I could just OR all of the corresponding minterms to the appropriate output F0, F1, or F2. Because I am only able to use 3-input NAND gates, I decided to use the equivalent of an OR with NAND gates. The second image that I've attached to this post is what I have so far...
I've simulated my circuit on Cedar Logic, and it does not work.
Any help would be appreciated!
Attachments
-
349.6 KB Views: 142
-
186.5 KB Views: 120