hw8soln.pdf

hw8soln.pdf - In computers we call it a shift left when...

• Homework Help
• 3
• 80% (5) 4 out of 5 people found this document helpful

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.

This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: In computers, we call it a “shift left” when data moves leftward in the binary number (i.e. the 1’s place goes to the 2’s place, the 2’s place to the 4’s place, and so on). A “shift right” moves rightward in the binary number. Shifts also differ on what the shift-in value is (on a shift left, what goes into the rightmost bit position? On a shift right, what goes into the leﬁmost bit position?). Computers have three major types of shifts, based on how they ﬁll that position: Logical shift (shift in a 0), Arithmetic shift (compute Val*2 for left shift, val/2 with sign extension for right), and Circular shift (the bit shifted out one side is shiﬁed back in the other side). Develop a single, 4-bit shift register that can implement all of these shiﬁs, as well as a parallel load. Use the following control line settings: C1 C0 Direction Operation 0 0 0 Hold 0 0 1 Load Parallel 0 1 0 Logical right 0 l 1 Logical left 1 0 0 Arithmetic right 1 0 l Arithmetic left 1 1 0 Circular right 1 1 1 Circular leﬁ é? o,— puo XV‘V‘U 53 II ‘ f Il|| ““3 I 0 _ p ulwix GO 0 w '0 ’ p a o I. IIII _ o-waqmﬁ‘ 5) F 0 a ”x... I ‘n 9 50 e Eli‘s) —Nwtmmq On slide 179 we showed how shift registers can transfer information between chips on a single wire. It requires the sender to do the operation sequence “Load, Shift, Shift, Shift” and repeat, while the receiver always shifts, but reads the values every 4 cycles (cycle 5, 9, 13, etc). Imagine the designers use the same exact hardware, but make the modiﬁcations listed below. What data will be seen on the receiving end? List exactly which source bits appear, in what bit positions, on the receiving side. a.) Sender does “Load, Shift, Shift” and repeat (missing one needed shift). Receiver reads the values every 3 cycles (cycles 4, 7, 10, 13, etc.). b.) Sender does “Load, Shift, Shift, Shift, Shift” and repeat (adding one needed shift). Receiver reads the values every 5 cycles (cycles 6, 11, 16, ...). Cyclc (644.01 o. Q o (D (W901 {20 . >4 X K >< 595149 )4 x x ><‘ >¢ >< (3 Low? P P l shsﬂe Po P, 2 ? 645M >_< >< 2 5mm x P, 1’1 P; 5mm 3 \< X Build a 4-bit counter that can do the followin_. Your dia; am can use an basic _ates, DFFs, and Muxes: C0 Action Reset ou ut = 0) 1 U - -count Down-count U -b -two +2 to current value. If value too lar_e to hold, value = value — 16) U-b -four +4 to current value. If value too 1ar_e to hold, value = value — 16 1 Set all outut bits to 1 Parallel Load D—| D-‘ r—t >—t O N I—t r—t D—‘ l—‘ O ._. 1 Parallel Load ...
View Full Document

• Winter '15
• andersen

{[ snackBarMessage ]}

What students are saying

• As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

Kiran Temple University Fox School of Business ‘17, Course Hero Intern

• I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

Dana University of Pennsylvania ‘17, Course Hero Intern

• The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

Jill Tulane University ‘16, Course Hero Intern