V
valtih1978
Guest
I see this problem ubiquitous -- nobody can figure out what this
intelligent message means. I also cannot figure out the solutions in the
forums because everybody posts is whole project. I have localized the
error. Where is it?
module CPU (inout
//reg
//wire
[7:0] data_bus);
//assign data_bus = 1 ? 0 : 8'bzzzz_zzzz;
endmodule
module SIMULATE_CPU;
reg [7:0] data_bus;
CPU cpu (data_bus );
reg clk;
always @(posedge clk) begin
data_bus <= 1;
end
endmodule
# ** Error: (vsim-3053) tb.v(15): Illegal output or inout port
connection for "port 'data_bus'".
# Region: /SIMULATE_CPU/cpu
Did Verilog developers introduced wire/reg separation for fun?
intelligent message means. I also cannot figure out the solutions in the
forums because everybody posts is whole project. I have localized the
error. Where is it?
module CPU (inout
//reg
//wire
[7:0] data_bus);
//assign data_bus = 1 ? 0 : 8'bzzzz_zzzz;
endmodule
module SIMULATE_CPU;
reg [7:0] data_bus;
CPU cpu (data_bus );
reg clk;
always @(posedge clk) begin
data_bus <= 1;
end
endmodule
# ** Error: (vsim-3053) tb.v(15): Illegal output or inout port
connection for "port 'data_bus'".
# Region: /SIMULATE_CPU/cpu
Did Verilog developers introduced wire/reg separation for fun?