Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

proper brace resolution alg. (nice output for toVhdl/toVerilog) #51

Closed
Nic30 opened this issue Jun 8, 2019 · 3 comments
Closed

proper brace resolution alg. (nice output for toVhdl/toVerilog) #51

Nic30 opened this issue Jun 8, 2019 · 3 comments
Assignees

Comments

@Nic30
Copy link
Owner

Nic30 commented Jun 8, 2019

There is an algorithm which prints braces in expression only if they are truly required, based on operator precedence.
https://github.com/HardwareIR/netlistDB/blob/master/src/serializer/serializer.cpp#L56
Need an equivalent for toVhdl/toVerilog for output to look nice.

@Nic30 Nic30 self-assigned this Jun 15, 2019
@Nic30 Nic30 changed the title proper brace resolution alg. proper brace resolution alg. (nice output for toVhdl/toVerilog) Sep 22, 2019
@Nic30
Copy link
Owner Author

Nic30 commented Nov 13, 2019

implemented in https://github.com/Nic30/hwt/blob/master/hwt/serializer/generic/serializer.py#L272
Current plan is to extract everything related to VHDL/Verilog generating to independent library (from hdlConvertor and HWT).

This will brings:

  • reduction of code duplication
  • high quality VHDL/Verilog/SystemC/... code generators to hdlConvertor
  • analysis and visualization tools for HWT to VHDL/Verilog ecosystem
  • unified API for imports from HDL to HWT

This was referenced Nov 14, 2019
@rhinton
Copy link

rhinton commented Feb 21, 2020

Has this extraction to a separate library progressed?

@Nic30
Copy link
Owner Author

Nic30 commented Feb 21, 2020

Yes, I did finish it, however I did not pushed it yet.
The reason I did not pushed it yet is that it is dependent on new SV preprocessor code line-error handling logic which is not complete yet.

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

2 participants