2013-04-28 108 views

回答

0

好吧,你只需要编码它没有什么特别的帮助。像这样的东西...

sc_uint<4> counter; 

sc_uint<4> increment(){ 
    counter++; 
    if(counter >=12){ 
    counter =0; 
    } 
    return (counter); 
} 

如果你可以避免没有2个东西的权力,事情会好很多。