我有一个这样的模块
module DE1_SoC (CLOCK_50, HEX0, HEX1, HEX2, HEX3, SW, GPIO, KEY);
input CLOCK_50; // 50MHz clock.
output reg [6:0] HEX0;
output reg [6:0] HEX1;
output reg [6:0] HEX2;
output reg [6:0] HEX3;
inout [35:0] GPIO;
input [9:0] SW;
input [4:0] KEY;
control_top U_control_top(
start(SW[0]),
reset(SW[1]),
clock(CLOCK_50),
controller(~KEY[0]),
GPIO(GPIO_0[35:0]),
out_1(HEX0),
out_2(HEX1),
out_3(HEX2),
out_4(HEX3)
);
我不断收到一个错误,称为:
错误 (10153):DE1_SoC.sv(17) 处的 Verilog HDL 函数调用或函数声明错误:标识符“GPIO”不是函数
而我的 control_top 模块是这样的
module control_top(
input start,
input reset,
input clock,
//=========connect to bird_controller=====
input controller,
//========connect to led_matrix=====
inout [35:0] GPIO_0,
//====connect to HEX================
output [6:0] out_1,
output [6:0] out_2,
output [6:0] out_3,
output [6:0] out_4
);