Question: - - Frequency control process for sine wave process ( clk ) begin if rising _ edge ( clk ) then if btn _ increase
Frequency control process for sine wave
processclk
begin
if risingedgeclk then
if btnincrease then
state increasefreq;
elsif btndecrease then
state decreasefreq;
elsif btnreset then
frequency ; Reset frequency to Hz
end if;
end if;
end process;
Frequency control process for PWM WAVE
begin
if risingedgeclk then
if btnincduty then
state increasefreq;
elsif btndecduty then
state decreasefreq;
elsif btnreset then
frequency ; Reset frequency to Hz
end if;
end if;
end process;
State machine process
processclk
begin
if risingedgeclk then
case state is
when idle
Do nothing in idle state
when increasefreq
if frequency then
frequency frequency ;
end if;
when decreasefreq
if frequency then
frequency frequency ;
end if;
end case;
end if;
end process;
above is the my code snippits to utilise buttons can you fix the errors that im getting please and provide a full code that will run in my programme
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
