Search

Technical Discussion Group Forum

This forum is provided for user discussion. While Logic PD support staff and engineers participate, Logic PD does not guarantee the accuracy of all information within in the Technical Discussion Group (TDG).

The "Articles" forums provide brief Articles written by Logic PD engineers that address the most frequently asked technical questions.

To receive email notifications when updates are posted for a Logic PD product download, please subscribe to the TDG Forum of interest.

PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 23 Mar 2006 06:45 AM by  mikea@logicpd.com
Using the 'w' and 'x' commands in Logic Loader
 1 Replies
Sort:
You are not authorized to post a reply.
Author Messages

ryu2112



New Member


Posts:
New Member


--
23 Mar 2006 12:19 AM
    I am trying to write values in the memory space for the SDRAM. When I read I type the command: "x 0x200c000" and it shows values in four columns

    0x200c000 FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF
    0x200c010 FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF


    when I write using "w 0x200c000 0x00"

    0x200c000 00000000 FFFFFFFF FFFFFFFF FFFFFFFF
    0x200c010 FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF


    How do I write values to the 2nd, 3rd, and 4th columns? such as:

    0x200c000 00000000 00000000 00000000 00000000

    mikea@logicpd.com



    New Member


    Posts:
    New Member


    --
    23 Mar 2006 06:45 AM
    First thing is that the 'w' and 'x' commands default to 32 bit writes and reads if you don't specify what size you want.

    x /w 0x200c0000 = 32 bit read
    x 0x200c0000 = 32 bit read
    x /h 0x200c0000 = 16 bit read
    x /b 0x200c0000 = 8 bit read

    This memory area is a 32 bit interface. You may want to check the address you are using also, you only have 7 'hex' digits, should be 8.

    So, each address has 32 bits and counts like this:

    0x200c0000
    0x200c0004
    0x200c0008
    0x200c000C
    0x200c0010
    0x200c0014
    ....
    ....

    If you wanted to write to the two addresses, you can simply use:
    w /w 0x200c0000 0x00000000
    w /w 0x200c0004 0x00000000

    You can also do 16 and 8 bit reads and writes. For example:
    w /b 0x200c0004 0xA6

    In newer versions of LogicLoader (starting in 1.4) we included a 'mem-fill' command. I don't think this was in a release for the LH79520 though. We have not released newer versions of LogicLoader on the LH79520 since 1.2.6.
    This is how mem-fill operates:
    mem-fill 0x200c0000 0x8 0x00000000 /w
    (this would fill 8 addresses with 0x00000000)


    If you needed to write a bunch of stuff into RAM (like an application) you would want to create a .elf file for example and load it into your RAM memory space using the 'load elf' command.

    Regards,
    -Mike
    You are not authorized to post a reply.