This preview shows pages 1–3. Sign up to view the full content.
This preview has intentionally blurred sections. Sign up to view the full version.View Full Document
Unformatted text preview: Last updated: 10/18/2006 ECEn/CS 224 Chapter 12 Homework Solutions 12.1 Design a 4-bit shift register with the following functionality: shift-left, shift-right, clear, load-all-1’s. Use a 2-bit control input to select between these options (00=shift-left, 01=shift-right, 10=clear, 11=load-all-1’s). A schematic drawing of the circuit is shown below. The 1-bit shifters are implemented simply by changing the way the output of the flip flop is connected to the input of the mux, as shown below. Optional shiftIn inputs and shiftOut outputs are also shown. For this problem, it’s alright to assume that the value 0 is shifted in and the value that is shifted out is ignored. << in3 in1 in2 in0 out3 out1 out2 out0 leftShiftOut leftShiftIn 4 4 out in >> in3 in1 in2 in0 out3 out1 out2 out0 rightShiftIn rightShiftOut 4 4 out in 00 01 10 11 D Q >> << 0000 1111 4 4 4 4 4 4 4 4 ctrl clk 2 dout Last updated: 10/18/2006 12.2 Design a 3-bit up/down counter with the following functions: increment, decrement, no...
View Full Document
This note was uploaded on 09/02/2010 for the course ELECTRICAL 360 taught by Professor Schultz during the Spring '10 term at BYU.
- Spring '10