[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gEDA: Verilog 19990529 snapshot



Hi Folks,

playing with vbpp 1.01 I found that I had to put a 

#define YYMAXDEPTH 1000000 

in line 2 of the vpp.y to make it work on one of our chip rtl's.
Otherwise it will die with a "parser stack overflow" message.

When I tried to run ivl on it, it failed with

1947: unmatched character (`)
/tmp/a:1947: parse error
I give up.

due to the remaining `timescale directives in the vbpp'ed code.
Should ivl read the `timescales now or should vbpp remove them ?

I found that any verilog based tool will have to be able to support
all the good (and the bad) constructs/includes/ifdefs/libdefs/incdir
statements of the verilog-xl, or it won't be used.

And so I'd really would like to see the preprocessor to be included 
in ivl to give the tool the acceptance and usability it deserves.

Stefan

Stephen Williams wrote:
> 
> stevew@home.com said:
> > There IS VBPP which should do this job I would think. It's GPL'd and
> > available from the same place I got VBS.
> 
> Ah hah! It is even an extended version. It is missing a few things that
> I would like to see, though:
> 
> - include search path.
> 
>         The -I switch would be nice.
> 
> - #line directives.
> 
>         ivl keeps track of what tokens/items show where in the source file
>         so that it can print meaningful error statements and parse dumps.
>         The preprocssor needs to write ``#line "file" <number>'' into the
>         output stream so that ivl can know that a preprocessor is changing
>         the file. (This is how the c preprocessor works.)
> 
> - predefines
> 
>         The -Dfoo=<value> would be nice.
> 
> Problem: It is not quite GPL.
> 
> Oh well. Now that I know that it exists and is a reasonable starting point,
> I can put the whole preprocessor issue aside for a while. In fact, people can
> use the program as is as a preprocessor. The only glitch will be that the
> file and line numbers from ivl will match the intermediate file, not the
> original source.
> --
> Steve Williams                "The woods are lovely, dark and deep.
> steve@icarus.com              But I have promises to keep,
> steve@picturel.com            and lines to code before I sleep,
> http://www.picturel.com       And lines to code before I sleep."

-- 
-------------------------------------------------------------------
Stefan Thiede              Tel:   +1 (650) 335-2544
Windows Systems Group      Fax:   +1 (650) 335-2514
Philips Semiconductors    
811 E. Arques Avenue
M/S 42, P.O. Box 340       email: Stefan.Thiede@sv.sc.philips.com
Sunnyvale, CA 940488-3409  seri :        thiede@usmtvsc1