• Techo

[IC驗證] Using countones to constraint 2'b01 in 20bits data on Systemverilog

class Pattern;

rand bit[19:0] data;

constraint c {

$countones(data[19:1]&(~data[18:0])) == 5;

}

function show();

$display("%b",data);

endfunction


endclass


39 次瀏覽

最新文章

查看全部
Logo2020.JPG
  • Instagram - White Circle
  • Google+ - White Circle
  • Facebook - White Circle

Contact Us

Techo私人程式家教

官方LINE ID : @tutortecho

zh-Hant.png

© Copyright 2018 by Sherry Wu and Techo Chao.

Proudly created with Wix.com,

but page loading is too slow,so I don't recommend it.