Forum Discussion
Altera_Forum
Honored Contributor
14 years agoTry to do like this
input switch;
input clk;
output reg led;
always@(posedge clk)
begin
if(switch)
led <= 1;
else led <=0;
end
Try to do like this
input switch;
input clk;
output reg led;
always@(posedge clk)
begin
if(switch)
led <= 1;
else led <=0;
end