Re: [myhdl-list] Module uses globals
Brought to you by:
jandecaluwe
From: Christopher F. <chr...@gm...> - 2015-04-15 17:24:12
|
On 4/11/2015 3:43 PM, Juan Pablo Caram wrote: > Hi, > > I'm starting to learn the internals of MyHDL and I see it's using global > variables everywhere. Those are fighting words ... > > This totally defeats the beauty of object orientation in Python. For > example you cannot have two instances of a Simulation() at the same time. What is the rationale for more than one simulation running at a time? Why have two simulators running? > > Would this qualify for a bug issue? No. > > Maybe there is a bigger architectural problem? Maybe it has to do with the > way it uses "inspect"? There are all kinds of issues, each simulator instance could not share generators, this would need to be enforced. Regards, Chris |