Hi,

I think that you are using the "old simulation API".
So if you are using the latest Migen commit then your code could be incorrect.

Maybe you can have a look at the latest changes in the simulation API that Sebastien documented over there: https://ssl.serverraum.org/lists-archive/devel/2014-January/003660.html
I hope this will help you :)

Cheers,

Yann

Le 01/02/14 22:15, Brian McLaughlin a écrit :
Dev Team,

Question for you. I've tried implementing a couple examples with migen and I am running into two consistent problems. I am sure I am just missing something simple.

One module I am implementing is the Blinker module from your tutorial document and the other is a popular D Flipflop tutorial that is going around. Each have a call in the do_simulation method calling s.rd and s.wr respectivly. I get the following error (with the Blinker module specifically):

Traceback (most recent call last):
  File "Blinker.py", line 27, in <module>
    sim.run(200)
File "/usr/local/lib/python3.3/dist-packages/migen-unknown-py3.3.egg/migen/sim/generic.py", line 119, in run
    s(self)
File "/usr/local/lib/python3.3/dist-packages/migen-unknown-py3.3.egg/migen/sim/upper.py", line 101, in do_simulation
    simf(proxy)
  File "Blinker.py", line 17, in do_simulation
    v_led = s.rd(led) # read the current signal value
File "/usr/local/lib/python3.3/dist-packages/migen-unknown-py3.3.egg/migen/sim/upper.py", line 40, in __getattr__
    return self.__process_get(getattr(self._simproxy_obj, name))
File "/usr/local/lib/python3.3/dist-packages/migen-unknown-py3.3.egg/migen/fhdl/module.py", line 135, in __getattr__ raise AttributeError("'"+self.__class__.__name__+"' object has no attribute '"+name+"'")
AttributeError: 'Blinker' object has no attribute 'rd'

Any idea of what I could be doing wrong? I have attached the two source files I am using.

Thanks for any help you can provide!

Cheers!
Brian


--
Brian McLaughlin

Twitter <http://twitter.com/bjmclaughlin> | Google+ <https://plus.google.com/u/0/108481953499321887963/> | GeekDad <http://www.geekdad.com> | About Me <http://www.makersassemble.com/about-me/>


_______________________________________________
Devel mailing list
[email protected]
https://ssl.serverraum.org/lists/listinfo/devel

_______________________________________________
Devel mailing list
[email protected]
https://ssl.serverraum.org/lists/listinfo/devel

Reply via email to