23 constant bit[16]
led_seven_seg_hex_a = 16b_1101011111101101
"Which hex values require lighting of LED segment A";
24 constant bit[16]
led_seven_seg_hex_b = 16b_0010011110011111
"Which hex values require lighting of LED segment B";
25 constant bit[16]
led_seven_seg_hex_c = 16b_0010111111111011
"Which hex values require lighting of LED segment C";
26 constant bit[16]
led_seven_seg_hex_d = 16b_0111101101101101
"Which hex values require lighting of LED segment D";
27 constant bit[16]
led_seven_seg_hex_e = 16b_1111110101000101
"Which hex values require lighting of LED segment E";
28 constant bit[16]
led_seven_seg_hex_f = 16b_1101111101110001
"Which hex values require lighting of LED segment F";
29 constant bit[16]
led_seven_seg_hex_g = 16b_1110111101111100
"Which hex values require lighting of LED segment G";
39 bit valid
"Assert if the LED data supplied in this structure is valid";
40 bit last
"Assert if the LED data is for the last LED in the chain";
41 bit[8] red
"The 8 bit red component for the LED to display";
42 bit[8] green
"The 8 bit green component for the LED to display";
43 bit[8] blue
"The 8 bit blue component for the LED to display";
52 bit ready
"Active high signal indicating if LED data is required; ignore @a ready if the response has @a valid asserted";
53 bit first
"If requesting LED data, then the first LED of the stream should be provided; indicates @a led_number is 0";
54 bit[8] led_number
"Number of LED data required, so that a client can use a switch statement or register file or array, for example";
59 extern module
led_seven_segment( input bit[4] hex
"Hexadecimal to display on 7-segment LED",
60 output bit[7] leds
"1 for LED on, 0 for LED off, for segments a-g in bits 0-7" 63 timing comb input hex;
64 timing comb output leds;
69 input bit reset_n
"async reset",
70 input bit[8]
divider_400ns "clock divider value to provide for generating a pulse every 400ns based on clk",
73 output bit led_chain
"Data in pin for LED chain" 77 timing from rising clock clk led_request, led_chain;
constant bit[16] led_seven_seg_hex_b
Definition: leds.h:24
constant bit[16] led_seven_seg_hex_a
Definition: leds.h:23
constant bit[16] led_seven_seg_hex_d
Definition: leds.h:26
constant bit[16] led_seven_seg_hex_f
Definition: leds.h:28
constant bit[8] divider_400ns
Definition: bbc_micro_de1_cl_io.cdl:38
constant bit[16] led_seven_seg_hex_e
Definition: leds.h:27
module led_seven_segment(input bit[4] hex, output bit[7] leds)
Definition: leds.h:59
module led_ws2812_chain(clock clk, input bit reset_n, input bit[8] divider_400ns, output t_led_ws2812_request led_request, input t_led_ws2812_data led_data, output bit led_chain)
Definition: leds.h:68
constant bit[16] led_seven_seg_hex_g
Definition: leds.h:29
constant bit[16] led_seven_seg_hex_c
Definition: leds.h:25