Question: Software: Quartus Prime Lite Edition Hardware: Terasic DE1-SoC cyclone v 5CSEMA5F31C6 Here is the code. Were trying to program a VHDL 5- bit binary counter
Here is the code.
Were trying to program a VHDL 5- bit binary counter with prescaler where the leds suppose to light and count up or downwards if the switch is 0 or 1 respectively, but it doesnt switch lights. All 5 leds are just lit up simultneously. Why is the lights not functioning?
Here are the pin assignments.
Here the simulation library ieee; use ieee.std_logic_1164.all; use ieee.numeric std.all; entity lab612 is generic (prescaler_value: Integer:-5E7); port( clock_50: in std_logic; ledr: out std_logic_vector(4 downto 0); sw: in std_logic_vector(9 downto 0)); end lab612; -start of architectire design --architecture declaration architecture V1 of lab612 is signal result :integer range 0 to 31:0; signal prescaler:Integer range 0 to prescaler_value:0; begin --end of architecture declaration and start of architecture assignment process(clock_50,sw(0)) begin if(rising_edge(clock_50)) then - - updown counter logic if(prescaler
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
