patchSimulavr: an AVR simulator - Patches: patch #5736, Glue code to use simulavrxx from...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

patch #5736: Glue code to use simulavrxx from verilog

Submitter:  None
Submitted:  Sat 10 Feb 2007 10:42:15 PM UTC
   
 
Category:  feature add Priority:  5 - Normal
Status:  Done Privacy:  Public
Assigned to:  zfrdh Originator Email:  -email is unavailable-
Open/Closed:  Closed Component Version:  None

Tue 24 Feb 2009 02:28:21 PM UTC, comment #3: 

the patch was apllied but I could not test it. If there are some bugs, please report as new entry!

Klaus Rudolph <zfrdh>
Group administrator
Tue 17 Apr 2007 11:00:40 PM UTC, comment #2: 

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.

Onno Kortmann <ohno>
Tue 27 Feb 2007 09:05:14 AM UTC, comment #1: 

Actually the results from verilog seen in gtkWave are not what I expect. So I need more information for fixing the problem.

All other changes are OK to come in CVS head.

Thanks
 Klaus




Klaus Rudolph <zfrdh>
Group administrator
Sat 10 Feb 2007 10:42:15 PM UTC, original submission:  

Hi,

this implements the verilog interface as discussed on the mailing list. This should also solve the libbfd problem.

Greetings,

Onno

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attached Files
file #11958:  simulavrxx-vpi2.patch added by None (18KiB - text/x-diff - the verilog.tar.gz is an addition to the patch, with verilog-side glue code and examples. It is assumed to be put in the src/ directory.)
file #11959:  verilog.tar.gz added by None (2KiB - application/gzip - the verilog.tar.gz is an addition to the patch, with verilog-side glue code and examples. It is assumed to be put in the src/ directory.)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by ohno (Posted a comment)
  • -email is unavailable- added by zfrdh (Posted a comment)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 6 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2009-02-24 zfrdh Open/ClosedOpen Closed
    2009-02-24 zfrdh StatusNeed Info Done
    2007-02-27 zfrdh StatusNone Need Info
        Assigned toNone zfrdh
    2007-02-10 None Attached File- Added simulavrxx-vpi2.patch, #11958
        Attached File- Added verilog.tar.gz, #11959

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code