dev: Added new LupIO-RNG device

This device is a random number generator that uses the Mersenne
Twister in order to provide the system with a set of random
numbers.  It is implemented as a BasicPioDevice, and has both
read and write capabilities.

The following are the specifications regarding the LupIO-RNG:
https://gitlab.com/luplab/lupio/lupio-specs/-/blob/main/lupio-rng.md

Change-Id: Ia6aeb610ebe5589ed1f1548b823c5165236b03e6
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/53029
Maintainer: Bobby Bruce <bbruce@ucdavis.edu>
Tested-by: kokoro <noreply+kokoro@google.com>
Reviewed-by: Jason Lowe-Power <power.jg@gmail.com>
This commit is contained in:
Melissa Jost
2021-08-16 12:29:22 -07:00
committed by melissa jost
parent be582b6c98
commit f432498c00
4 changed files with 270 additions and 0 deletions

View File

@@ -27,7 +27,10 @@
Import('*')
SimObject('LupioRTC.py', tags='riscv isa')
SimObject('LupioRNG.py', tags='riscv isa')
DebugFlag('LupioRNG')
DebugFlag('LupioRTC')
Source('lupio_rtc.cc', tags='riscv isa')
Source('lupio_rng.cc', tags='riscv isa')