hw5 - Draw a block diagram of the circuit, showing the...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
- 1 - 1. (20 points) In this problem, you are to design a VHDL module called whichWay that implements a state machine that tracks an 8 bit input value, called dIn , and produces two single bit outputs, rising and falling . Output rising should be high if dIn has increased during at least one of the last two clock ticks and has not decreased during either of those clock ticks; otherwise, rising should be low. Similarly, output falling should be high if dIn has decreased during at least one of the last two clock ticks and has not increased during either of those clock ticks. Your circuit should also produce an eight bit output value called sharpTurns , which counts the number of times that dIn has gone from increasing to decreasing without first being stable for at least one clock tick, plus the number of times it has gone from decreasing to increasing without being stable for at least one clock tick.
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Draw a block diagram of the circuit, showing the controller as a block and any registers that your circuit uses. Show all inputs and outputs to the circuit, all connections among the components and label everything clearly. Define a set of states for your controller and give a one sentence description of the significance of each state. Draw a state transition diagram that shows clearly the conditions that trigger state transitions and any actions that are to be performed. Write a complete VHDL module based on your state transition diagram. Your VHDL module should include a reset input to initialize the circuit (setting rising , falling , and sharpTurns to zero). You are not required to simulate the circuit, although you might find it a useful way to check your work. CSE 260 Digital Computers: Organization and Logical Design Homework 5 Jon Turner Due 10/7/2010...
View Full Document

Ask a homework question - tutors are online