T-Core
User Manual
26
January 14, 2020
Figure 3-1 Block diagram of the Default demo
Below is the description for the block diagram:
1.
PLL100
: PLL module. Input 50MHz clock and output 100MHz clock.
2.
KEY1
: It is used to reset the system.
3.
Color_selection
: Provides four fixed colors Red/Green/Blue/White or the 0~360 degree
continuous color according to the Hue of the HSL Color Model. When the KEY0 is pressed, the
color of the four on-board RGB LEDs is depending on the SW[1:0] setting, they will display
Red/Green/Blue/White color respectively when the SW[1:0] is set as 00/01/10/11. If the KEY0
is not pressed, the four RGB LEDs will display 0~360 degree continuous color.
4.
LED_flicker
: It controls the four on-board green LEDs to all light on or blink with 1Hz
frequency. The four LEDs will all light on when KEY0 is pressed, or will blink with 1Hz if the
KEY0 is not pressed.
5.
WS2812
: It is the WS2812 IC control IP, it can control any WS2812 IC, it contains two main
parts:
TWO_PORT_RAM
: User can write in the R[7:0] G[7:0] B[7:0] data to control any one of RGB
LEDs to be light as any colors. For example, user can set ram_wraddress=2, ram_data = {R[7:0],
G[7:0], B[7:0]} = {8’h00,8’hff ,8’h00} to make the RGB LED3 light as Green, then set the
ram_wrclock to 0->1->0, the data will be written to the RAM.
ILED_CONTROLLER
: After the LED RGB data is written successfully, active the
update_request as “1” to inform the ILED_CONTROLLER read out the RGB data in sequence
through the TWO_PORT_RAM, and input to the corresponding LED. The update_request must
return to “0” after a short of delay (>0.02MHz). The DOUT is the bit string data, the “0”/“1”
Sequence chart of each bit is generated according to WS2812 datasheet page 4. The sequence chart
of each RGB bit is generated according to WS2812 datasheet page 5. After all the data is transferred
to WS2812 RGB LED, this module will return update_done =”1” to indicates the data transmission
is completed.