/yuu_register_productor

UVM register utility generation by inputting xls table

Primary LanguageJavaScriptMIT LicenseMIT

yuu_register_productor

Register utility by inputting xls table. It has a full template to generate uvm register, register HTML. You can implement your own template for register FW code, RTL etc.

Dependency

openpyxl jinja2

License

Under MIT License

NOTICE

For HTML5 code exist in HTML template, only new version of browser supported(Bug have exclude Chrome)

More

Feel free to contact via email: seabeam@qq.com

Usage

Note:
Please add the path of yrp bin folder to your PATH Environment variable like set path = (/tools/yuu_register_productor/bin $path) in csh before first time.

usage: yrp [-h] -n MODULE_NAME -t TEMPLATE_NAME -i INPUT_XLSX
[-o OUTPUT_PATH] [-f] [-c]

Register utils generator for DFV

optional arguments:
-h, --help show this help message and exit
-n MODULE_NAME, --name MODULE_NAME
[Required] Expected module name
-t TEMPLATE_NAME, --template TEMPLATE_NAME
[Required] Template name, file extension should be .j2
-i INPUT_XLSX, --input INPUT_XLSX
[Required] xlsx file for generator input
-o OUTPUT_PATH, --output OUTPUT_PATH
[Optional] Output path, 'reg_out' in current path by default
-f, --factory
[Optional] Use UVM factory
-c, --coverage
[Optional] Use functional coverage

Example:
cd ./test
yrp -n SLAVE -t uvm_reg_model.j2 -i reg.xlsx -o test -f
yrp -n SLAVE -t html.j2 -i reg.xlsx -o test