sv2v icon indicating copy to clipboard operation
sv2v copied to clipboard

Initial support for system tasks

Open sifferman opened this issue 1 year ago • 7 comments

Fixes https://github.com/zachjs/sv2v/issues/273

sifferman avatar Jan 24 '24 05:01 sifferman

I'm not currently sure how to include the filename, line number, and hierarchical scope, so I left it out. I can look into it later, but I may wait for guidance.

sifferman avatar Jan 25 '24 07:01 sifferman

Thanks for the code review!

  1. I added --exclude=SeverityTasks
  2. I've thought about the hierarchical scope more, and I'm not sure including it is important since it's not guaranteed the simulation will follow the same hierarchy as what was passed to sv2v. I think this could just be skipped.
  3. I'm not certain the best way to do this. Pointers would be helpful! 😃

sifferman avatar Jan 30 '24 10:01 sifferman

Just fixed the merge conflicts. Happy to make changes as needed!

sifferman avatar Mar 11 '24 18:03 sifferman

Scope and location information should be available via the Scoper module, the it's not super well documented, so I can take a stab at that if you'd like.

zachjs avatar Apr 30 '24 23:04 zachjs

Scope and location information should be available via the Scoper module, the it's not super well documented, so I can take a stab at that if you'd like.

Up to you. These were my further thoughts:

I'm not sure including it is important since it's not guaranteed the simulation will follow the same hierarchy as what was passed to sv2v. I think this could just be skipped.

Also, what if a module is called multiple times? It may be better just to have the module name and that's it

sifferman avatar May 01 '24 00:05 sifferman

I'm sorry for the continued delay in getting this PR in. I want to reiterate that I think this is a great contribution! I'm working on getting my IR changes merged now. Probably the AST should have used a representation like this for these tasks from the beginning. Then I'll iterate a bit on the items above: A) adding scope and location information if appropriate; and B) simplifying the $fatal elaboration.

zachjs avatar Jun 09 '24 22:06 zachjs

I think this is now pretty close to complete. @sifferman, what do you think of the current implementation? Please feel free to suggest any changes. I have no particular attachment to the current message format.

zachjs avatar Jun 16 '24 04:06 zachjs