|
CDL Modules
|
Files | |
| file | led_seven_segment.cdl |
| Simple module to support 7-segment hex display. | |
| module led_seven_segment::led_seven_segment | ( | input bit | hex[4], |
| output bit | leds[7] | ||
| ) |
Simple module to map a hex value to the LEDs required to make the appropriate symbol in a 7-segment display.
The module combinatorially takes in a hex value, and drives out 7 LED values.
| [in] | hex | Hexadecimal to display on 7-segment LED |
| [out] | leds | 1 for LED on, 0 for LED off, for segments a-g in bits 0-7 |
1.8.11