hex - How to initialize parameter array in verilog? -



hex - How to initialize parameter array in verilog? -

how can 1 initialize parameter type array in verilog each of members 32 bit hexadecimal notation numbers? have tried next gives me syntax error.

parameter [31:0] k[0:63] = {32'habc132, 32'hba324f, ...};

i'm using latest version of iverilog compiling.

on eda plyground next illustration works using modelsim 10.1, file has .sv extension, causing interpreted systemverilog:

module test; parameter [31:0] k [0:1] = {32'habc132, 32'hba324f}; initial begin $displayh(k[0]); $displayh(k[1]); end endmodule

if setting systemverilog not work or not available simulator suggest including syntax error in question.

parameters hex verilog

Comments

Popular posts from this blog

php - How to pass multiple values from url -

xslt - DocBook 5 to PDF transform failing with error: "fo:flow" is missing child elements. Required content model: marker* -

database - php search bar when I press submit with nothing in the search bar it shows all the data -