Changing a variable when simulating??

Discussion in 'VHDL' started by StanMan, Jun 4, 2007.

  1. StanMan

    StanMan

    Joined:
    Jun 4, 2007
    Messages:
    1
    How would one go about setting a variable when you are simulating. I want to have some variables set differently when I am simulating vs when I am using real hardware. The reason for this is that I am using a 16K serial EEPROM model that I got off the web, but my design really uses a 32K. I need to change my addressing scheme when I am simulating.

    Thanks in advance,
    Stan
    StanMan, Jun 4, 2007
    #1
    1. Advertising

  2. StanMan

    quantum_dot

    Joined:
    Nov 21, 2006
    Messages:
    31
    You can make use of generic statement and then you can change it during your simulation.

    :driver:
    quantum_dot, Jun 5, 2007
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. DG
    Replies:
    3
    Views:
    438
  2. Modukuri
    Replies:
    7
    Views:
    3,149
    Marcus Harnisch
    Jun 1, 2004
  3. Drew
    Replies:
    1
    Views:
    518
    wieli1
    Jul 26, 2004
  4. chikkubhai
    Replies:
    9
    Views:
    339
    James Kanze
    Sep 27, 2007
  5. Derek Basch
    Replies:
    8
    Views:
    127
    Ben Morrow
    Aug 12, 2006
Loading...

Share This Page