hw04 - ECE420 Homework#4:7SegmentLEDControl...

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

View Full Document Right Arrow Icon
ECE420      Homework #4 :  7-Segment LED Control Write VHDL codes to show, on two 7-segment LEDs, the binary coded decimal (BCD)  equivalence of the binary representation of the state of eight switches.  Use a function  to  perform the specified task.  Assume that the 7-segment LEDs are turned on with logic “1”s (7- segment LEDs with common cathodes).  Examples For the state of the eight switches of 01001000, the two 7-segment LEDs will show 72.        01001000 2  = 72 10  .  72 10  will be shown on the two 7-segment LEDs. For the state of the eight switches of 01011101, the two 7-segment LEDs will show 93.        01011101 2  = 93 10  .  93 10  will be shown on the two 7-segment LEDs. For the state of the eight switches of 10001010, the two 7-segment LEDs will show 38.        10001010
Background image of page 1

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

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 02/27/2010 for the course ECE 420 taught by Professor Georgelaw during the Spring '10 term at CSU Northridge.

Page1 / 2

hw04 - ECE420 Homework#4:7SegmentLEDControl...

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