0
如何在SystemC中实现模数12计数器?我对图书馆很陌生,对此没有多少经验。请帮忙。在SystemC中实现mod 12计数器
如何在SystemC中实现模数12计数器?我对图书馆很陌生,对此没有多少经验。请帮忙。在SystemC中实现mod 12计数器
好吧,你只需要编码它没有什么特别的帮助。像这样的东西...
sc_uint<4> counter;
sc_uint<4> increment(){
counter++;
if(counter >=12){
counter =0;
}
return (counter);
}
如果你可以避免没有2个东西的权力,事情会好很多。