Home > Community > Forums > Hardware/Software Co-Development, Verification and Integration > Memory writes from separate execution thread

Email

* Required Fields

Recipients email * (separate multiple addresses with commas)

Your name *

Your email *

Message *

Contact Us

* Required Fields
First Name *

Last Name *

Email *

Company / Institution *

Comments: *

 Memory writes from separate execution thread 

Last post Mon, Oct 22 2007 3:30 PM by archive. 5 replies.
Started by archive 22 Oct 2007 03:30 PM. Topic has 5 replies and 10496 views
Page 1 of 1 (6 items)
Sort Posts:
  • Mon, Oct 22 2007 3:30 PM

    • archive
    • Top 75 Contributor
    • Joined on Fri, Jul 4 2008
    • Posts 88
    • Points 4,930
    Memory writes from separate execution thread Reply

    We have developed a set of scripts such that we source one on the Palladium and it waits for command files to be present, then from a remote machine we can copy a command file over to the server and have our commands executed. In the sourced script, I have something like the following:

    after 1000 check_command_files
    vwait stop

    and inside the check_command_files proc, I look for certain files and then source that file.

    The sourced file might contain other "source" lines.

    The problem I am running into is that writing to memory areas from those secondary sourced files. When I try and source them, the memory writes are not completing correctly, I get an error that it could not complete.

    Is there an issue with multiple sourcing like that? Is there anything I need to do in my TCL scripts to make the variables from higher level sourced scripts available? Is there something I need to do special to write to memory regions from those sourced scripts?

    Thanks

    Alex


    Originally posted in cdnusers.org by slide_o_mix
    • Post Points: 0
  • Mon, Oct 22 2007 11:51 PM

    • archive
    • Top 75 Contributor
    • Joined on Fri, Jul 4 2008
    • Posts 88
    • Points 4,930
    RE: Memory writes from separate execution thread Reply

    Hi Alex,

    there is nothing wrong with nesting various source commands like you described it. However, since you point to global/local variables: You can declare variables to be known locally, e.g.:

    proc my_mem_write {} {
        # memory instance and memory content come from elsewhere
        global memInst memCont
    ...
    }

    With that $memInst and $memCont are now also known within my_mem_write.

    Hope this helps. If not, please provide more informations, like the error message, and the procedures you're using.

    Best regards, Volker@Cadence.com


    Originally posted in cdnusers.org by volker.wegner
    • Post Points: 0
  • Tue, Oct 23 2007 7:06 AM

    • archive
    • Top 75 Contributor
    • Joined on Fri, Jul 4 2008
    • Posts 88
    • Points 4,930
    RE: Memory writes from separate execution thread Reply

    Thanks for the reply, I have one follow up question. If I am sourcing the secondary scripts which do memory writes inside a proc, does that mean they are executed within the scope of that proc and thus the "global" would be required in those scripts? I think that is what you are referring to, but I wanted to make sure. Thanks again!


    Originally posted in cdnusers.org by slide_o_mix
    • Post Points: 0
  • Tue, Oct 23 2007 7:12 AM

    • archive
    • Top 75 Contributor
    • Joined on Fri, Jul 4 2008
    • Posts 88
    • Points 4,930
    RE: Memory writes from separate execution thread Reply

    Hi Alex,

    based on your comments I believe that, yes, it is necessary to make the global variable visible within your proc.

    Let me know if this solves the issue. If not, please provide error msg and (skeleton) scripts.

    Best regards, Volker


    Originally posted in cdnusers.org by volker.wegner
    • Post Points: 0
  • Tue, Oct 23 2007 7:29 AM

    • archive
    • Top 75 Contributor
    • Joined on Fri, Jul 4 2008
    • Posts 88
    • Points 4,930
    RE: Memory writes from separate execution thread Reply

    That looks like it worked, I appreciate the help!


    Originally posted in cdnusers.org by slide_o_mix
    • Post Points: 0
  • Tue, Oct 23 2007 7:30 AM

    • archive
    • Top 75 Contributor
    • Joined on Fri, Jul 4 2008
    • Posts 88
    • Points 4,930
    RE: Memory writes from separate execution thread Reply

    You're welcome!


    Originally posted in cdnusers.org by volker.wegner
    • Post Points: 0
Page 1 of 1 (6 items)
Sort Posts:
Started by archive at 22 Oct 2007 03:30 PM. Topic has 5 replies.