|
From: Florian B. <flo...@an...> - 2020-09-28 16:27:51
|
I guess the legacy (current) spice format will need to be supported anyway. Unfortunately the structure of the format is so loose that writing a grammar for parsing it with lex/bison would be a headache (at least in my opinion). Adding support for reading a standard format like verilog can be very useful, but that's another project in itself far beyond my current focus as a "spontaneous" contributor developer. it I was looking for a way to minimally extend the current syntax (and the parser !) just to allow more device types. My proposed syntax was "instname#devtyp" but we could use "devtype:instname" or "instname(devtype)" or whatever. It is not so different than using another letter prefix, we just need to be able to recognize the special syntax in the first word of the line while minimizing (or excluding) the risk of misinterpreting existing netlists (in case strange instance names was used). In this sense, ":devtype:instname" could be even better, as line starting with ":" could not have been used before. My small syntax extension already works but it would be easy at this stage to adopt another convention. Florian |