Intel® Quartus® Prime Software
Intel® Quartus® Prime Design Software, Design Entry, Synthesis, Simulation, Verification, Timing Analysis, System Design (Platform Designer, formerly Qsys)
17261 Discussions

How to use VHDL to write a kind of LED light program?

Altera_Forum
Honored Contributor II
2,987 Views

How to make an LED light by writing VHDL code program? i am just leanning VHDL.thank you !

0 Kudos
5 Replies
Altera_Forum
Honored Contributor II
1,501 Views

It is very easy. Refer to below:  

 

library IEEE; 

use IEEE.std_logic_1164.all; 

 

Entity LED_light is  

port ( LED_out : out std_logic); 

end LED_light;  

 

Architechture RTL of LED_light is  

 

begin  

 

LED <= '1'; 

 

end RTL;
0 Kudos
Altera_Forum
Honored Contributor II
1,501 Views

library IEEE; 

use IEEE.std_logic_1164.all; 

Entity LED_light is  

port ( LED_out : out std_logic); 

end LED_light;  

architecture RTL of LED_light is  

begin  

LED_out<= '1'; 

end RTL;
0 Kudos
Altera_Forum
Honored Contributor II
1,501 Views

 

--- Quote Start ---  

It is very easy. Refer to below:  

 

library IEEE; 

use IEEE.std_logic_1164.all; 

 

Entity LED_light is  

port ( LED_out : out std_logic); 

end LED_light;  

 

Architechture RTL of LED_light is  

 

begin  

 

LED <= '1'; 

 

end RTL; 

--- Quote End ---  

 

 

Hi, 

 

Do u know how to control the brightness of the output LED in Quartus 2?. 

Ex. OFF (Stage1)>Dim (Stage2)>Full brightness (Stage3). I just need the logic, no need to type the full code here. Any help would be appreciated. 

 

Thanks, 

Anish
0 Kudos
Altera_Forum
Honored Contributor II
1,501 Views

Yes it is easy, just google for PWM verilog, or PWM VHDL.

0 Kudos
Altera_Forum
Honored Contributor II
1,501 Views

interesting. I thought only PIC can do this.

0 Kudos
Reply