- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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 AngelLink Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The parameter list of a Verilog or systemVerilog module only accept "parameter".
So just replace "localparam" with "parameter"
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page