Intel® Quartus® Prime Software
Intel® Quartus® Prime Design Software, Design Entry, Synthesis, Simulation, Verification, Timing Analysis, System Design (Platform Designer, formerly Qsys)
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
17267 Discussions

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

Altera_Forum
Honored Contributor II
3,009 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,523 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,523 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,523 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,523 Views

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

0 Kudos
Altera_Forum
Honored Contributor II
1,523 Views

interesting. I thought only PIC can do this.

0 Kudos
Reply