Assignment#9

.pdf

School

McGill University *

*We aren’t endorsed by this school

Course

222

Subject

Computer Science

Date

Apr 3, 2024

Type

pdf

Pages

2

Uploaded by DoctorFogTiger26

Report
Assignment #9: Memory Elements and Counters 1 Assignment #9: Memory Elements and Counters Available Due Date March 18, 2024 at 11:35am EST March 25, 2024 at 11:35am EST Instructions • Write your answers by hand, or typeset them using a software package. For typeset answers, don’t use a font size less than 10pt. • Write out your answers clearly and legibly on paper • Write your name and student ID at the top of the answer page • Submit your answers as a single PDF file through myCourses under the assignment tab before the deadline • A late penalty of 33.3% of the grade will be deducted per each day or part of day delay • Your answer may not be graded if you fail to abide by the instructions ————————————————————————————————————————————— ————————————————————————————————————————————— Question 1 [ 30 points ] : Flip-flops a. [ 15 points ] Show how a T flip-flop can be constructed using a D flip-flop and other logic gates. b. [ 15 points ] Show how a JK flip-flop can be constructed using a T flip-flop and other logic gates. ————————————————————————————————————————————— Question 2 [ 20 points ] : A four-bit barrel shifter is a combinational circuit with four data inputs, two control inputs, and two data outputs. It allows the data inputs to be shifted onto the outputs by 0, 1, 2, or 3 bit positions, with the rightmost bits wrapping around (rotating) to the leftmost bits. For example, if the data inputs are 1100 and the control input specifies a two-bit shift, then the output would be 0011. If the data input is 1110, a two-bit rotation produces 1011. Design a four-bit shift register using a barrel shifter that can shift to the right by 0, 1, 2, or 3 positions. McGill University ECSE 222 – Digital Logic (Winter 2024)
Assignment #9: Memory Elements and Counters 2 ————————————————————————————————————————————— Question 3 [ 25 points ] : Design a three-bit synchronous counter with parallel load using T flip- flops and other gates / building blocks. ————————————————————————————————————————————— Question 4 [ 25 points ] : Design a four-bit up / down counter using T flip-flops. It should include a control input called Up / D own . If Up / D own = 1, then the circuit should behave as an up- counter. If Up / D own = 0, then the circuit should behave as a down-counter. McGill University ECSE 222 – Digital Logic (Winter 2024)
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help