Add formattter for genus tcl#102
Add formattter for genus tcl#102parthkalgaonkar wants to merge 5 commits intopezy-computing:masterfrom
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #102 +/- ##
=======================================
Coverage 99.89% 99.89%
=======================================
Files 15 17 +2
Lines 1828 1857 +29
=======================================
+ Hits 1826 1855 +29
Misses 2 2 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
Thank you for your contribution! I request you two thins:
|
|
I had inherited from |
Yes. Put common functoins into the common tcl formatter. |
| io.puts('set flgen_defines {}') | ||
| end | ||
|
|
||
| def format_macro(macro, value) |
There was a problem hiding this comment.
This method is also defined in the base formatter class. Please remove it from the CommonTCLFormatter class.
| def format_macro(macro, value) | ||
| end | ||
|
|
||
| def post_macros(io) |
There was a problem hiding this comment.
same as format_macro method.
| "lappend flgen_include_directories \"#{directory}\"" | ||
| end | ||
|
|
||
| def post_include_directories(io) |
There was a problem hiding this comment.
same as format_macro method.
| "lappend flgen_source_files \"#{path}\"" | ||
| end | ||
|
|
||
| def post_source_files(io) |
There was a problem hiding this comment.
same as format_macro method.
| @@ -0,0 +1,26 @@ | |||
| # frozen_string_literal: true | |||
|
|
|||
| require_relative 'common_tcl_formatter' | |||
|
Thank you for adding the formatter for Genus. I'd like to confirm if Genus can load the generated tcl file but we don't have this tool. |
|
By the way, Design Compile can load *.f files directly like the command below. analyze -format sverilog -vcs "-f filelist.f"Does not Genus have such option? |
|
You can execute all unit tests by swapning |
|
Yeah you are right. the genus This pull request seems redundant. I can close it, or I can make the changes you asked for and push again anyways. |
|
We can't maintain Genus TCL formatter because we don't have the tool. |
Hi,
Adding this formatter for genus. Let me know if you need any additions / changes