A
Andy Luotto
Guest
I am compiling a module withj the following port declaration
module periph_sys (
// APB I/F
pclk_i,
presetn_i,
paddr_i[31:0],
prdata_o[31:0],
-> I should have used this:
-> paddr_i,
-> prdata_o, <<
->
);
// APB I/F
input pclk_i;
input presetn_i;
input [31:0] paddr_i;
output [31:0] prdata_o;
by mistake I put the vector length in the port list but I can
successfully compile. Which makes me puzzled: should not this be a
syntax error? Or it is just because verilog 2K allows vector notation
in the port list?
Thanks for your help
Cheers
module periph_sys (
// APB I/F
pclk_i,
presetn_i,
paddr_i[31:0],
prdata_o[31:0],
-> I should have used this:
-> paddr_i,
-> prdata_o, <<
->
);
// APB I/F
input pclk_i;
input presetn_i;
input [31:0] paddr_i;
output [31:0] prdata_o;
by mistake I put the vector length in the port list but I can
successfully compile. Which makes me puzzled: should not this be a
syntax error? Or it is just because verilog 2K allows vector notation
in the port list?
Thanks for your help
Cheers