Pyverilog icon indicating copy to clipboard operation
Pyverilog copied to clipboard

function integer

Open shtaxxx opened this issue 8 years ago • 3 comments

The current parser may not be able to parse the code as below.

function integer funcname;
  input invalue;
  // ...
  funcname = 0;
endfunction

shtaxxx avatar Mar 03 '17 01:03 shtaxxx

Can confirm that I just ran into this issue as well. Additionally, the following will fail:

function funcname;
  input integer invalue;
  // ...
  funcname = 0;
endfunction

It seems the parser only has a rule for width values in both of these positions, and not for real or integer type declarations here.

dmoore375 avatar Apr 19 '17 19:04 dmoore375

This still seems to be an open bug. What are the work arounds for this?

sjalloq avatar Jun 02 '20 21:06 sjalloq

I'm now working on the SystemVerilog support of Pyverilog parser. This issue will be resolved in this update.

shtaxxx avatar Jun 02 '20 22:06 shtaxxx