Comments (4)
So, big caveat here: The AST is not a nice piece of work. I'm not proud of it.
Unfortunately, I did not build in functions for freeing the AST. You have to manually walk to each leaf and very carefully free everything on the way back up.
It was always my intention to go back and re-do the AST, but I never got the time to do it properly. What is it you are using the parser for? If there is only a small section of the AST you are interested in, my advice would probably be to nuke all of my AST code and only write the bits you need yourself. It will probably be easier than trying to de-mangle my code!
Sorry this isn't the answer you were looking for. Let me know if I can help any more!
from verilog-parser.
So, I'am working on an opensource eda librarie called ophidian.
The way we used your library to construct our Verilog object was king of messy and I am trying to refactor it, if you want to take a look at VerilogParser.h and VerilogParser.cpp.
I would be happy to help you with anything although I've never coded a parser. This layer is crucial for working on eda argorithims.
I need the verilog for in order to build the netlist graph topology btw. To later use it by placement and routing and everything else.
from verilog-parser.
So, I'am working on an opensource eda librarie called ophidian.
Wow, that looks like a fantastic project!
I would be happy to help you with anything although I've never coded a parser. This layer is crucial for working on eda argorithims.
Indeed. This is exactly why I wrote the parser, I wanted to enable projects like yours. Unfortunately, though I am happy with the actual parser, the AST component is not so good. I wrote this when I had substantially more free time, and have been wanting to revisit it for a while now to tidy it up.
Given you seem to be making good use of the parser so far, I might look at trying to re-write the AST in a more sensible / best practice kind of way. It won't happen very quickly, but I can take a look. Once I know what is involved, I am more than happy to parcel the work out into something we can share?
I need the verilog for in order to build the netlist graph topology btw.
I see. Does that mean you are only using it to parse netlist level verilog, or do you need the entire behavioral syntax as well?
from verilog-parser.
I see. Does that mean you are only using it to parse netlist level verilog, or do you need the entire behavioral syntax as well?
Only the netlist level. We supose that our user already have the verilog generated by the logic synthesis together with some standard cells library.
from verilog-parser.
Related Issues (18)
- Segfault when running with multiple files as input.
- Enumerating Module Ports Causes Segfault
- Representation of always and initial blocks/statements
- file name changed libbison-dev_3.0.4.dfsg-1_amd64.deb to libbison-dev_3.0.4.dfsg-1+b1_amd64.deb on remote server HOT 5
- ../../tests/dff_udp1.v line 11 - ERROR: syntax error, unexpected CLOSE_BRACKET - ')' - Parse failed HOT 2
- Typo causing compile error HOT 1
- Improve Coverage HOT 3
- Global Variable Defined in Header HOT 9
- Inbalanced `yy_preproc -> current_file` Stack HOT 4
- Support for BISON 3.3.1 (or above) HOT 4
- Build Warnigns/Errors HOT 2
- Parse failed HOT 2
- Bug in parsing primitive with delay
- Pre-Processor Support HOT 4
- Inadequate Hash Table Structure
- `undef at end of file causes segfault in some cases.
- Memory Leaking
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from verilog-parser.