Forum Discussion
DE10 Lite setting pins from VErilog RTL
- 1 year ago
Just edit the top-level. And you need to give unique names to inputs vs. outputs (GPIO_IN vs. GPIO_OUT perhaps).
Could you share the design for the golden top?
You mentioned that the pin is assigned—could you check if it’s assigned through the .qsf file or the RTL? If it’s assigned in the RTL, what does it look like?
Also, what is the exact error message shown by the compiler?
Please paste the error message or provide a screenshot for reference
Regards,
Richard Tan
- YigalB11 year ago
New Contributor
When compiling this:
input [7:0] GPIO,input [15:8] GPIOThe error is:
Error (10134): Verilog HDL Module Declaration error at MAC_proj.v(37): port "GPIO" is declared more than once
About the pins assignment:
You have a good point. I assumed it was done due to naming, yet now I can see the QSF has these names inside.
Here is the golden top:
//=======================================================// This code is generated by Terasic System Builder//=======================================================module DE10_LITE_Golden_Top(//////////// CLOCK //////////input ADC_CLK_10,input MAX10_CLK1_50,input MAX10_CLK2_50,//////////// SDRAM //////////output [12:0] DRAM_ADDR,output [1:0] DRAM_BA,output DRAM_CAS_N,output DRAM_CKE,output DRAM_CLK,output DRAM_CS_N,inout [15:0] DRAM_DQ,output DRAM_LDQM,output DRAM_RAS_N,output DRAM_UDQM,output DRAM_WE_N,//////////// SEG7 //////////output [7:0] HEX0,output [7:0] HEX1,output [7:0] HEX2,output [7:0] HEX3,output [7:0] HEX4,output [7:0] HEX5,//////////// KEY //////////input [1:0] KEY,//////////// LED //////////output [9:0] LEDR,//////////// SW //////////input [9:0] SW,//////////// VGA //////////output [3:0] VGA_B,output [3:0] VGA_G,output VGA_HS,output [3:0] VGA_R,output VGA_VS,//////////// Accelerometer //////////output GSENSOR_CS_N,input [2:1] GSENSOR_INT,output GSENSOR_SCLK,inout GSENSOR_SDI,inout GSENSOR_SDO,//////////// Arduino //////////inout [15:0] ARDUINO_IO,inout ARDUINO_RESET_N,//////////// GPIO, GPIO connect to GPIO Default //////////inout [35:0] GPIO);//=======================================================// REG/WIRE declarations//=======================================================//=======================================================// Structural coding//=======================================================endmodule