Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
16 years ago

Declaring 2D Port in Verilog

Hi,

Anyone know, how to declare a 2-D port in Verilog.

regards,

freak

2 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    // help catch undeclared wires

    `default_nettype none

    module my (

    input wire [1:5][31:0] five_32_bit_data_busses;

    output reg [1:3][15:0] three_16bit_data_busses

    );

    endmodule

    And just like Jakob said, do NOT waste time with verilog, it's old and bad. Simply use SystemVerilog and be happy, it's almost as good as VHDL :)