vhdl random numbers from a text

Discussion in 'VHDL' started by ziggi, Feb 14, 2011.

  1. ziggi

    ziggi

    Joined:
    Feb 14, 2011
    Messages:
    1
    Hi.

    Just curious to know if its all possible with vhdl to load a bunch of random numbers generated by some program into vhdl, and then produce a signal as output from these random numbers. Im trying to do this but I run into problems regarding the size of the array, and also the signal produced is not random at all....

    Does anyone have any ideas on this.?
     
    ziggi, Feb 14, 2011
    #1
    1. Advertising

  2. ziggi

    SystemVerilog

    Joined:
    Feb 15, 2011
    Messages:
    2
    You can use my LFSR package to produce pseudo random numbers. Note that in the LFSR the numbers do not repeat until the sequence is exhausted.
    See my site ( SystemVerilog dot us ) under LINKS VHDL_MODEL

    If you could use SystemVerilog in mixed mode, you would have more versatility because you can define random numbers with constraints.
    --------------------------------------------------------------------------
    Ben Cohen
    * SystemVerilog Assertions Handbook, 2nd Edition, 2010 ISBN 878-0-9705394-8-7
    * A Pragmatic Approach to VMM Adoption 2006 ISBN 0-9705394-9-5
    * Using PSL/SUGAR for Formal and Dynamic Verification 2nd Edition, 2004, ISBN 0-9705394-6-0
    * Real Chip Design and Verification Using Verilog and VHDL, 2002 isbn 0-9705394-2-8
    * Component Design by Example, 2001 ISBN 0-9705394-0-1
    * VHDL Coding Styles and Methodologies, 2nd Edition, 1999 ISBN 0-7923-8474-1
    * VHDL Answers to Frequently Asked Questions, 2nd Edition ISBN 0-7923-8115
    --------------------------------------------------------------------------
     
    SystemVerilog, Feb 15, 2011
    #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. globalrev
    Replies:
    4
    Views:
    797
    Gabriel Genellina
    Apr 20, 2008
  2. Alex Untitled
    Replies:
    11
    Views:
    679
    Giampiero Zanchi
    Nov 16, 2009
  3. PerlFAQ Server

    FAQ 4.10 Why aren't my random numbers random?

    PerlFAQ Server, Feb 12, 2011, in forum: Perl Misc
    Replies:
    0
    Views:
    229
    PerlFAQ Server
    Feb 12, 2011
  4. PerlFAQ Server

    FAQ 4.10 Why aren't my random numbers random?

    PerlFAQ Server, Apr 27, 2011, in forum: Perl Misc
    Replies:
    0
    Views:
    265
    PerlFAQ Server
    Apr 27, 2011
  5. VK
    Replies:
    15
    Views:
    1,286
    Dr J R Stockton
    May 2, 2010
Loading...

Share This Page