eecs355_W08_hw02

eecs355_W08_hw02 - cycle L2 is lit. Draw a state diagram of...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
EECS 355 ASIC & FPGA Design Assignment 2 Due January 25 Note: Work on the assignments alone and create your individual original answers. For all problems provide the code including the testbench and the simulation waveforms of relevant signals. Problem 1. Exercise 3.3 (HDL Programming Fundamentals, Botros) Problem 2. Design a circuit capable of counting the number of clock events (number of rising edges + falling edges). Write a test bench for the model, and test it using a VHDL simulator. Problem 3 . FSM Design: Here you will design a Moore finite state machine that controls three LEDs. A simple block diagram of the design is shown in the figure below. The LEDs will be lit in different sequences depending on the Control input. Only one or zero LEDs are lit at the same time. When Reset is active, all LEDs will be off. The table below shows a functional description of the FSM.
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
For instance L1 Æ L2 means that in the first clock cycle L1 is lit and in the next clock
Background image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: cycle L2 is lit. Draw a state diagram of your Moore FSM and write a VHDL model of the FSM using the entity declaration below. Write a test bench for the model, and test it using a VHDL simulator. library ieee; use ieee.std_logic_1164.all; entity FSM is port ( Clk : in std_logic; -- Clock Reset : in std_logic; -- Active high asynch reset Control : in std_logic_vector(1 downto 0); L1, L2, L3 : out std_logic -- LED Outputs ); end FSM; Problem 4. Comparator: Construct a circuit capable of comparing two 8-bit vectors, a, and b. A selection bit (sel) should determine wether the comparison is signed (sel=1) or unsigned (sel=0). The circuit must have three outputs, x1, x2, and x3, corresponding to a>b, a=b, and a<b, respectively. Design a circuit in VHDL using only sequential (behavioral) code. Write a test bench for the model, and test it using a VHDL simulator....
View Full Document

This note was uploaded on 10/14/2009 for the course EECS 241 taught by Professor Gou during the Winter '09 term at Northwestern.

Page1 / 2

eecs355_W08_hw02 - cycle L2 is lit. Draw a state diagram of...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online