CDL Modules
Files
led_seven_segment

Files

file  led_seven_segment.cdl
 Simple module to support 7-segment hex display.
 

Detailed Description

Modules

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.

Parameters
[in]hexHexadecimal to display on 7-segment LED
[out]leds1 for LED on, 0 for LED off, for segments a-g in bits 0-7