Programmable Devices
CPLDs, FPGAs, SoC FPGAs, Configuration, and Transceivers

system verilog

Altera_Forum
Honored Contributor II
1,299 Views

Hi, 

 

Trying to use the code below: 

 

module portlist_localparam# ( 

parameter aPARAM = 1, 

localparam aLOCAL = 2 

endmodule 

 

Get error: Error (10170): Verilog HDL syntax error at portlist_localparam.sv(4) near text "localparam"; expecting an identifier ("localparam" is a reserved keyword ) 

 

is that a valid error? how to solve for system verilog? 

 

Thanks in advance, 

Best regards 

Angel
0 Kudos
1 Reply
Altera_Forum
Honored Contributor II
489 Views

The parameter list of a Verilog or systemVerilog module only accept "parameter". 

 

So just replace "localparam" with "parameter"
0 Kudos
Reply