|
From: Cary R. <cy...@ya...> - 2017-03-24 04:19:41
|
As I remember the issues are in the vlog95 code generator and more specifically each generate scope needs to be emitted as a new module to preserve the scope aspects of the generate block (probably not too hard) and then the instantiation and interface needs to be done in a sane manner (a bit harder). At the moment most of the generate code just gets dropped into the parent scope since the emitting code doesn't understand generate scopes. As I remember it also has similar issues with certain instantiations of actual modules, though it often produces code that works it just doesn't pass arguments exactly as you would expect.
I don't think there are fundamental issues preventing this from being implemented and doing so may actually improve the converter in other aspects. If/when I get some free time I will try to look at this again.
Cary
On Monday, March 20, 2017 4:51 PM, Stephen Williams <st...@ic...> wrote:
Generate elaborate DOES happen in the target-independent elaboration
phase, so the only thing about generate that the target sees is the
fully elaborate generate scope. For example, a generate-loop may
create N scopes. But the target does not have to understand anything
about generate, only that there is a named scope there.
On Sun, Mar 19, 2017 at 11:17 PM, Niels Möller <ni...@ly...> wrote:
"Cary R." <cy...@ya...> writes:
> The vlog95 target is currently the only mostly functional Verilog
> target and as the author of it I had intended to support the generate
> constructs. The problem is life, a new job etc. got in the way and I
> never have gotten around to finishing it.
Thanks for the info, and for your work on iverilog. I fully understand
that priorities change.
About generate, I was a bit surprised, I would (naively?) have expected
generate to be implemented in some target-independent elaboration phase.
But I guess there may be some target-specific processing too, like
producing valid and unique names for variables defined inside a generate
block.
Best regards,
/Niels
--
Niels Möller. PGP-encrypted email is preferred. Keyid 368C6677.
Internet email is subject to wholesale government surveillance.
------------------------------ ------------------------------ ------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
______________________________ _________________
Iverilog-devel mailing list
Iverilog-devel@lists. sourceforge.net
https://lists.sourceforge.net/ lists/listinfo/iverilog-devel
--
Steve Williams "The woods are lovely, dark and deep.
st...@ic... But I have promises to keep,
http://www.icarus.com and lines to code before I sleep,
http://www.picturel.com And lines to code before I sleep."------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot_______________________________________________
Iverilog-devel mailing list
Ive...@li...
https://lists.sourceforge.net/lists/listinfo/iverilog-devel
|