system verilog - In systemverilog, is it possible to conditionalize a parameterized type? -


in systemverilog, can conditionalize parameterized type?

i want like:

parameter is_r = 0, parameter type id_t = is_r ? r_t : d_t 

my lint program not this, ideas? illegal?

no cannot this. systemverilog lrm allows 2 operations type parameters - assignment , equality. try using generate construct, code using conditional type has inside generated block.


Comments

Popular posts from this blog

cookies - Yii2 Advanced - Share session between frontend and mainsite (duplicate of frontend for www) -

angular - password and confirm password field validation angular2 reactive forms -

php - Permission denied. Laravel linux server -