8000 GitHub - hdl-util/rand at 63a2f2e871a9a05c5ead28a10acc0ae31b830be8
[go: up one dir, main page]

Skip to content

hdl-util/rand

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rand

Build Status

SystemVerilog code for arbitrary width random number utilities.

Why?

I needed an efficient, easy way to generate gray codes for dual clock FIFOs. It's a pain to manually write out a gray code. Why not let a module do the heavy lifting for you?

Usage

LFSR

  1. Take files from src/ and add them to your own project. If you use hdlmake, you can add this repository itself as a remote module.
  2. Other helpful modules are also available in this GitHub organization.
  3. Consult the testbench in test/xorshift_tb.sv for example usage.
  4. Read through the parameter descriptions in xorshift.sv and tailor any instantiations to your situation.
  5. Please create an issue if you run into a problem or have any questions.

To-do List

  • Xorshift (LFSR)
  • CBRNG
    • Making Squares RNG arbitrary width seems non-trivial, unfortunately
  • More upon request

About

Random number generators such as LFSRs, LHCAs

Resources

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0