simulavr-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Simulavr-devel] Help needed: Pin handling broken


From: Klaus Rudolph
Subject: Re: [Simulavr-devel] Help needed: Pin handling broken
Date: Sat, 26 Jan 2013 19:15:51 +0100
User-agent: Thunderbird 2.0.0.23 (X11/20090817)

Hi,

>> I create a net, add some pins and after simulating some steps a delete
>> the net and run in an endless loop. Unregister of a net will not work as
>> expected but the code is modified a lot so I have to start reading it
>> from start.
> 
> Could you give a example code. Or maybe, there are some python examples,
> which use Pin and Net. It's also possible, that something is missed in
> simulavr.i, because unmaintained. Look also to src/python/pysimulavr.i!
> If any questions, ask!


Please look at the testcase from today. You simply can run it with

make go

from
regress/gtest

 directory if you have gtest1.6.0 copied to the directory which
configured in the Makefile.

Again: No tcl or python needed. This is local to simulavr only!

you can simply run also ut in gdb/ddd an will see an endless loop in
Unregister... something. The code looks very "misterious" to mee,
because the net calls a delete from a pin which should unregister itself
to the net.... something like ping pong with unclear responsibility's to
the objects. The information which objects is registered where is hold
twice ( and maybe with to different and unrelated semantics ).

This part is new and maybe untested at all...

 Regards
 Klaus




reply via email to

[Prev in Thread] Current Thread [Next in Thread]