Simple Register Model (srm) are system verilog classes that help to develop register model (aka regstore, register abstraction layer) for uvm testbenches.
It is open sourced and available under MIT license. I presented it in DVCon2018. Check a copy of the slides or the full paper
It is designed to be used in uvm testbenches instead of the uvm_reg package that is shipped with uvm distribution.
The intended users of the package are design verificatipn (DV) engineers involved in developing uvm testbneches and writing uvm sequences for verifying the design.
Easiest way to get started with srm is to download the tar file from the release area and follow the instructions.
-
Download tar file from release area. Say the name of file is svm-1.0.tar.gz
-
Unpack the tar file in the install directory.
cd <install_dir>
tar xvfz svm-1.0.tar.gz
- Setup the environment variable SRM_HOME to point to the install directory. For example in Bash shell.
export SRM_HOME=<install_dir>/srm-1.0
You must compile the file $SRM_HOME/src/srm.sv first. You will need to specify the location of $SRM_HOME/src as a include directory in your compilation command line using the +incdir+ command-line option.
You can then make the SRM library accessible to your SystemVerilog code by importing the package 'srm_pkg' in the appropriate scope.
Examples for different simulator can be found in the installation directory $SRM_HOME/examples/
A example uvm testbench can be downloaded from here.
Srm docuementation can be found here.