J
jjlindula@hotmail.com
Guest
Hello, I'm new to Verilog and this should be a simple question for
others. I'm confused with the following:
// Verilog 2k with notype in port list
module memory_ansi_notype (
input read,
input write,
input [7:0] data_in,
input [3:0] addr,
output [7:0] data_out
);
and this code:
// Verilog 2k with width and data type listed
module memory_ansi (
input wire read,
input wire write,
input wire [7:0] data_in,
input wire [3:0] addr,
output reg [7:0] data_out
);
I don't understand why 'wire' is used on the inputs, is there any
difference in the code.
Thanks,
joe
Thanks,
joe
others. I'm confused with the following:
// Verilog 2k with notype in port list
module memory_ansi_notype (
input read,
input write,
input [7:0] data_in,
input [3:0] addr,
output [7:0] data_out
);
and this code:
// Verilog 2k with width and data type listed
module memory_ansi (
input wire read,
input wire write,
input wire [7:0] data_in,
input wire [3:0] addr,
output reg [7:0] data_out
);
I don't understand why 'wire' is used on the inputs, is there any
difference in the code.
Thanks,
joe
Thanks,
joe