我是systemverilog的新手,我有這個錯誤,我似乎無法弄清楚。這是錯誤消息:不能隱式地連接實例錯誤的端口
錯誤(10897):在TopLevel.sv SystemVerilog的誤差(103):不能 隱含上 模塊的實例 「control_module」 連接端口 「ALU_SRC_B」 「對照」 - 沒有這樣的對象是在本範圍可見
這是真實失敗的一段代碼:
// Control module
Control control_module (
.Instruction(Instruction[8:5]),
.ALU_OP,
.ALU_SRC_B,
.REG_WRITE,
.BRANCH,
.MEM_WRITE,
.MEM_READ,
.REG_DST,
.MEM_TO_REG,
.HALT(HALT)
);
這是我的控制模塊:
module Control(
input [8:0] Instruction,
output logic [3:0] ALU_OP,
output logic [1:0] ALU_SRC_B,
output logic REG_WRITE,
output logic BRANCH,
output logic MEM_WRITE,
output logic MEM_READ,
output logic REG_DST,
output logic MEM_TO_REG,
output logic HALT
);
logic [3:0] OPCODE = Instruction[8:5];
always_comb begin
...
控制模塊在正確的目錄中,爲什麼我會得到這個錯誤?
你在哪裏實例Control control_module('你有一個wire calle d'ALU_SRC_B'?我們需要看到導線以及實例。 – Morgan
請粘貼您的所有tb代碼 – noobuntu