Hello,
I am working on a simple counter-led program on the MKR VIDOR 4000 FPGA board.
I was created and verified my hardware logic on Quartus Prime Lite 21.2.
I want to now learn the Pin Assignment. I am having difficulty to figure out what's the FPGA's CLK pin number from Arduino's Pinout for the this board. I believe I have the other Assignments correct.
Quartus Prime's Pin Assignment Program automatically assigns my clock pin as PIN_B14. How Do I verify that?
I have attached my code and screenshot of the Pin assignment below.
module StateMachine (
input logic clk,
input logic rst,
output logic [2:0] led
);
int count = 0;
int state = 0;
initial begin
logic count = 0;
led[0] <= 0;
led[1] <= 0;
led[2] <= 0;
end
always @(posedge clk) begin
count = (count + 1);
if (count == 900000000) begin
count = 0;
state = (state + 1);
end
if (state == 1000) begin
led[0] <= 1;
led[1] <= 0;
led[2] <= 0;
end
if (state == 2000) begin
led[0] <= 1;
led[1] <= 1;
led[2] <= 0;
end
if (state == 3000) begin
led[0] <= 1;
led[1] <= 1;
led[2] <= 1;
end
end
endmodule