module led(
input sys_clk, // clk input
input sys_rst_n, // reset input
output reg [5:0] led //6 LEDs Pin
);
reg [23:0] counter;
always @(posedge sys_clk or negedge sys_rst_n) begin
if (!sys_rst_n)
counter <= 24'd0;
else if (counter < 24'd1349_9999)
counter <= counter + 1'b1;
else
counter <= 24'd0;
end
always @(posedge sys_clk or negedge sys_rst_n) begin // Toggle LED
if (!sys_rst_n)
led <= 6'b111110;
else if (counter == 24'd1349_9999) // 0.5s delay
led[5:0] <= {led[4:0], led[5]}; // ToggleLED
else
led <= led;
end
endmodule
Gowinの実行結果ウィンドウ(コンソール画面)には赤文字表記がずらずら現れる…。何これ??
ERROR (CT1136) : Bank 6 vccio(3.3) is locked by other constraint or embedded port, conflicting BANK_VCCIO set by 'led_5_obuf' : IO_TYPE = LVCMOS18 in the same bank
ERROR (CT1136) : Bank 6 vccio(3.3) is locked by other constraint or embedded port, conflicting BANK_VCCIO set by 'led_4_obuf' : IO_TYPE = LVCMOS18 in the same bank
ERROR (CT1136) : Bank 6 vccio(3.3) is locked by other constraint or embedded port, conflicting BANK_VCCIO set by 'led_3_obuf' : IO_TYPE = LVCMOS18 in the same bank
ERROR (CT1136) : Bank 6 vccio(3.3) is locked by other constraint or embedded port, conflicting BANK_VCCIO set by 'led_2_obuf' : IO_TYPE = LVCMOS18 in the same bank
ERROR (CT1136) : Bank 6 vccio(3.3) is locked by other constraint or embedded port, conflicting BANK_VCCIO set by 'led_1_obuf' : IO_TYPE = LVCMOS18 in the same bank
ERROR (CT1136) : Bank 6 vccio(3.3) is locked by other constraint or embedded port, conflicting BANK_VCCIO set by 'led_0_obuf' : IO_TYPE = LVCMOS18 in the same bank
ERROR (CT1136) : Bank 3 vccio(3.3) is locked by other constraint or embedded port, conflicting BANK_VCCIO set by 'sys_rst_n_ibuf' : IO_TYPE = LVCMOS18 in the same bank
ERROR (CT1136) : Bank 7 vccio(3.3) is locked by other constraint or embedded port, conflicting BANK_VCCIO set by 'sys_clk_ibuf' : IO_TYPE = LVCMOS18 in the same bank
Physical Constraint parsed completed with errors
ERROR (PR2028) : The constrained location is useless in current package
ERROR (PR2017) : 'sys_rst_n' cannot be placed according to constraint, for the location is a dedicated pin (SSPI)
5.2. Burn to SRAM# Normally this mode is used to verify biststream.
Because of its fast burning characteristics so the use of more, but of course the power will lose data, so if you want to power on the running program you can’t choose this mode.
Click the function box below Operation to open the device configuration interface, then select the SRAM Mode option in Access Mode to set to download to SRAM, and finally click the three dots box below to select our generated .fs bitstream file . Generally speaking, bitstream firmware file is in the impl -> pnr directory. https://wiki.sipeed.com/hardware/en/tang/tang-nano-20k/example/led.html