Modelsim

Discussion in 'Programmer's Corner' started by Prodigy, Oct 25, 2004.

  1. Prodigy

    Thread Starter New Member

    Oct 25, 2004
    1
    0
    Hi,

    I am new to Modelsim and I have a problem using the Change command.
    I want to change the value of a memory block of 255 bytes at once using the change command.

    I can use for changing each byte individually, but i dont know how to use it for an array of values.

    Please help me asap.

    Thanx in advance.

    Regards...
     
  2. beenthere

    Retired Moderator

    Apr 20, 2004
    15,815
    282
    Hi,

    Does the language support loops? A DO-WHILE loop will get you there. Lacking that, you can set up an IF-THEN statement to Change one address at a time and exit after some varaible has incremented up to 255.
     
Loading...