The truth table for full adder
B2 | B1 | B0 | S | C |
0 | 0 | 0 | 0 | 0 |
0 | 0 | 1 | 1 | 0 |
0 | 1 | 0 | 1 | 0 |
0 | 1 | 1 | 0 | 1 |
1 | 0 | 0 | 1 | 0 |
1 | 0 | 1 | 0 | 1 |
1 | 1 | 0 | 0 | 1 |
1 | 1 | 1 | 1 | 1 |
The 2bit result ( S C) has to be stored in the ROM which can be represented as follows using NAND logic.
A decoder should decode each line.
When R1 = 0 first word will be selected, R2 second word will be selected etc.
We have to design a decoder that selects these line depending on the input of the full adder
Truth Table for Decoder
B2 | B1 | B0 | R1 | R2 | R3 | R4 | R5 | R6 | R7 | R8 |
0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 |
0 | 0 | 1 | 1 | 0 | 1 | 1 | 1 | 1 | 1 | 1 |
0 | 1 | 0 | 1 | 1 | 0 | 1 | 1 | 1 | 1 | 1 |
0 | 1 | 1 | 1 | 1 | 1 | 0 | 1 | 1 | 1 | 1 |
1 | 0 | 0 | 1 | 1 | 1 | 1 | 0 | 1 | 1 | 1 |
1 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 1 | 1 |
1 | 1 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 1 |
1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 |
The final circuit
3. It is desired to design an 8x2 (8 words each 2 bit long) NAND-based ROM...
In this problem, you will design a 4-bit 2's complement sub tractor, implement it in Logic works, and test it. The 4-bit sub tractor works as follows: given two numbers X and Y in 2's complement binary representation on 4 bits, it outputs a 4-bit value representing X - Y in 2's complement. To obtain full marks, the following requirements must be met: You are only allowed to use basic gates, including NOT, AND, OR, NAND, NOR, XOR, XNOR. (You...
can you explain the solution step by step? I don't understand any.. 3. [Memory Design] Build a 2K*16 bit ROM using any number of lK*8 bit ROMs The block you use to represent 2K* 16 ROM should have a 11-bit wide address input, a chip-select (CS) input, and a 8-bit wide data output. (Hint: A[9:0]: 10-bit address input, CS: a 1-bit chip-select input, Dout[7:0]: 8-bit data output.) 10 A[9:0] 1K X8 8 Dout 7:0 ROM CS 1 Ans: A19:0 49이...
The assignment is build an 8 bit ALU in structural verilog NOT behavioral : Requirements are to design the ALU to implement NAND, AND, OR, NOT, XOR, XNOR, ADD, SUBTRACT, COMPARE, etc. WIll be executed on 2s complemented throughout. 15 Op codes necessary are the following: -Transfer A -Increment A -Addition -Subtraction -Decrement A -1s comp -A and B,A NAND B,A or B, A NOR B, A XOR B, A XNOR B, -A greater than B -A Les than B...
Q1) If R0 and R1 are both 16-bit serial shift registers, each with a single serial input (S_IN) and a single serial output (S_OUT), clock and reset. Design using R0 and R1 additional logic, a circuit that would store the output S_OUT of either R0 or R1 into a D-FF based on input CH. If CH is 0, S OUT of R0 will be stored in the D-FF (at the edge of the clock) and if CH is 1, S_OUT...
Finite state machine (FSM) counter design: Gray codes have a useful property in that consecutive numbers differ in only a single bit position. Table 1 lists a 3-bit modulo 8 Gray code representing the numbers 0 to 7. Design a 3-bit modulo 8 Gray code counter FSM. a) First design and sketch a 3-bit modulo 8 Gray code counter FSM with no inputs and three outputs, the 3-bit signal Q2:0. (A modulo N counter counts from 0 to N −...
Based on the following, answer the question at the bottom.. A[3] B[3] A[2] B[2] ? ? GT EQ LT Left-Most Bit Next Bit to the Right Let's take a moment to look at the behavior of this column in the tables above. If you look at the table carefully, you can see that each of the columns can be broken into two cases: 1. The case in which the EQ value in the circuit "column" to the left is false....