|author||Jeff DiCorpo <email@example.com>||Sat Jun 18 13:35:56 2022 -0700|
|committer||Jeff DiCorpo <firstname.lastname@example.org>||Sat Jun 18 13:35:56 2022 -0700|
final gds oasis
Resubmission of Steve Goldsmith's project.
PSRAM and integration: Steve Goldsmith, Lead Instructor, Aurifex Labs, https://aurifexlabs.com
PRNG: Zhenle Cao
Many thanks to Matt Venn!
For this project I built a PSRAM interface.
Designed from the IS66/67WVH16M8ALL/BLL datasheet: https://www.issi.com/WW/pdf/66-67WVH16M8ALL-BLL.pdf
Includes programmable latency and post-transaction delay. For read synchronization, selectable between programmable latency or rwds strobe.
Thanks to Zhenle Cao for providing the random number generator. See: https://github.com/ZhenleC/wrapped_acorn_prng
Summary (quoted from Zhenle's project): This project as a ACORN (Additive Congruential Random Number) generator made to fit in the group tapeout submission as part of the Zero to ASIC Course. This project was implemented according to the information here: http://acorn.wikramaratna.org/concept.html This ACORN generator is hardwired to have k = 16 and Modulus M = 2^12 (chosen due to the limitation on the number of GPIO output pins). However, it is highly scalable, and I was able to harden with at least k=16, M = 2^64. The area of the logic directly scales with k*M as the component that takes up the most space are the registers.
Instead of worrying about mucking up the tool with config and filenames, I just modified the example as little as possible.
Should be just these files (but diff to be sure):
And added for unit testing with SymbiYosys
But I had to manually modify the original System Verilog that I had written to get hardening to work by removing always_ff, etc.
Testing was done in two parts
Manual cover statements were visually inspected against the PSRAM datasheet.
Requires installing SymbiYosys: https://symbiyosys.readthedocs.io/en/latest/install.html
To run: cd verilog/rtl/unit_test
To run again: rm -r cover && sby cover.sby
Inspect: gtkwave cover/engine_0/trace*.png
This only tests that the PSRAM state machine advances to state 2.