What the PIN number for the MKR VIDOR 4000 FPGA Clock

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

Generally consult with the board schematic. The FPGA pin E2 receives the clock from the SAMD21.

Another easy way is to check with the template projects provided by the Ardunio, look into .qsf files that store the assignments, search for the set_location_assignment line that references the clock signal name as defined in the toplevel module of the template project.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.