Skip to content

seabeam/yuu_register_productor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

UVM register utility generation by inputting xls table

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published