Use a chain of flip-flop to implement a shifter register

Assignment Help Electrical Engineering
Reference no: EM132077

Intro:

In this design, you are going to use a chain of flip-flop to implement a shifter register.

Design requirement

When reset button is pressed, LED0 is on while LED1 to LED 7 are off. When reset button is released, the light keeps shifting from LED0 all the way to LED7 and back to LED0 at a frequency of 0.74Hz

Hints

There are different ways to design the system. Two block diagrams of the system that fulfills the need are shown as follows. You are always welcome to come up with your own design.

  1. Simple Shift Register 
  2. 2- Filp-Flop with Round Shifter

Sample Codes

Here are some sample codes that you can refer to:

Flip-flop with Asynchronous Reset

always@ (posedge(clk), posedge(rst))

begin

    if(rst == 1)

        Q <= 1'b0;   // Q is reset to 0

    else

        Q <= D;

end

  1. Flip-flop with Combinational Logic
  2. always@ (posedge(clk), posedge(rst))

    begin

        if(rst == 1)

            Q <= 1'b0;   // Q is reset to 0

        else

            Q <= (A & B);

    end

Now that you've completed this project, try these modifications:

  1. Will you add two switches to control how fast the LED shfits: Say, if switch[1:0] is 0, LED shift frequency is 0.745Hz; if switch[1:0] is 1, LED shift frequency is 1.49Hz; if switch[1:0] is 2, LED shift frequency is 2.98Hz; if switch[1:0] is 3, LED shift frequency is 5.96Hz.
  2. Instead of shifting the light on LEDs, will you create some fancy LED pattern using LEDs and/or seven segment display?

Reference no: EM132077

Questions Cloud

Describe the soviet rapid development model : Describe the Soviet Rapid Development Model
Problems on oops : Problems on OOPS
Briefly summarise the contents of this report : Briefly summarise the contents of this report
Writing an effective business letter : Prepare a letter in either block or modified block format, addressed to your employer or supervisor and copied to your marker.
Use a chain of flip-flop to implement a shifter register : Use a chain of flip-flop to implement a shifter register
Explain international monetary system : Explain International Monetary System
Develop the image manipulations : Develop the image manipulations
Write your own newspaper article : Write your own newspaper article for the study with at least one appropriate table or graph.
How will technology encourage collaboration : How will Technology Encourage collaboration and sharing information internally?

Reviews

Write a Review

 

Electrical Engineering Questions & Answers

  Analyzing the blink alive code

Analyzing the Blink Alive code - Embedded Systems Design

  Ac analysis gain at midband with bypass capacitor

AC Analysis Gain at Midband (with bypass capacitor in circuit) Connect the bypass capacitor using the switch.

  How a transformer works

How a transformer works and apply those rules to a transformer where the primary core cross-sectional area is twice.

  Electronics for recording

Transmit this data wirelessly to a base station for storage. How much bandwidth would you need.

  Model a discrete-time system

To understand di erent signal models To be able to model a discrete-time system and design simple signal processing algorithms.

  Pulse width modulator

A pulse width modulation (PWM) circuit works by varying the duty cycle of the square wave while keeping the period fixed.

  Rc circuits: capacitor is completely discharged

Assume that capacitor is completely discharged when t

  Electricity and circuit theory

Assessment on Electricity and Circuit Theory,  What part of a cable are insulators and conductors? Describe, in terms of charged particles, why some objects are electrically attracted to each other, while others repel each other?

  Power transformers and tariffs

Construction of different types of power transformer, significant energy savings

  Ziegler-nichols open loop tuning

Ziegler-Nichols Open Loop Tuning Often, when working with a faster loop, many people will opt only for a PI control philosophy

  Future generation telecommunication technology

Write a report on Future Generation Telecommunication Technology.

  Paper on orthogonal frequency-division multiplexing

This document is shown a paper on Orthogonal frequency-division multiplexing with advantages, disadvantages and uses.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd