代写 Homework 2 Logisim

Homework 2 Logisim
For each of the following problems you are only allowed to use AND, OR, NOT, and XOR, unless otherwise specified. You may use all components under Wiring
1. (50 points) File name: shift3.circ. Create a circuit that is capable of performing logical left and right shifts on a 3 bit number. We will be shifting in 0’s as the filler bits. See here for a description on logical shifting. You may use muxes on this problem. Hint: Use muxes on this problem.
Pin
Type
Description
Num
Input
The 3 bit number to be shifted
Shift_amount
Input
The 2 bit number specifying how much to shift num
Do_Right_Shift
Input
When 1 a right shift is to be preformed. When 0 a left shift is to be preformed
Shifted_Num
Output
The shifted number
2. (50 points) File name: 4bitAdder.circ. Create a 4 bit prefix adder.
Pin
Type
Description
A
Input
The first 4 bit number to be added
B
Input
The second 4 bit number to be added
Cin
Input
The incoming carry
Sum
Output
The result of adding A and B together
Cout
Output
1 if a carry occurred out of the 4th bit when adding A and B together