Changing a variable when simulating??

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

  1. StanMan

    StanMan

    Joined:
    Jun 4, 2007
    Messages:
    1
    Likes Received:
    0
    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. Advertisements

  2. StanMan

    quantum_dot

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

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

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:
    621
  2. Samridhi Kumar Shukla
    Replies:
    1
    Views:
    645
    Alvin Bruney
    Nov 30, 2003
  3. mfglinux
    Replies:
    11
    Views:
    973
    Roberto Bonvallet
    Sep 12, 2007
  4. Aaron Beall
    Replies:
    2
    Views:
    2,250
    Aaron Beall
    Sep 14, 2007
  5. chikkubhai
    Replies:
    9
    Views:
    476
    James Kanze
    Sep 27, 2007
  6. David Filmer
    Replies:
    19
    Views:
    517
    Kevin Collins
    May 21, 2004
  7. Derek Basch
    Replies:
    8
    Views:
    284
    Ben Morrow
    Aug 12, 2006
  8. VK
    Replies:
    3
    Views:
    375
    Dr J R Stockton
    Mar 15, 2007
Loading...