[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Simulavr-devel] [patch #5736] Glue code to use simulavrxx from verilog
From: |
Onno Kortmann |
Subject: |
[Simulavr-devel] [patch #5736] Glue code to use simulavrxx from verilog |
Date: |
Tue, 17 Apr 2007 23:00:41 +0000 |
User-agent: |
Mozilla/5.0 (X11; U; Linux x86_64; de; rv:1.8.1.3) Gecko/20070310 Iceweasel/2.0.0.3 (Debian-2.0.0.3-1) |
Follow-up Comment #2, patch #5736 (project simulavr):
Hi,
I have now debugged this a bit further. It seems that it is not a problem of
the verilog interface but of the behaviour of input and output pins with the
mirrornet. SimulavrXX does not seem to update the input state of a pin
immediately after the output state has been set. Apparently, there is a delay
and the pin state gets lost. I connected the inputs to the outputs in my
verilog simulation, which then fed the values back into the simulavr in the
second "in" opcode. If I remove this, it does not work at all.
Apparently, you already have thought about this behavior, as I found this
line in hwport.cpp
unsigned char GetPin() { CalcPin(); return pin; }
with the call to "CalcPin()" commented out. If I use it again, the loop.v
file seems to be working properly.
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/patch/?5736>
_______________________________________________
Nachricht geschickt von/durch Savannah
http://savannah.nongnu.org/