2013-04-28 1 views

답변

0

음, 코드를 작성하면 도움이되는 특별한 방법이 없습니다. 이게 뭔가 ...

sc_uint<4> counter; 

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

2 개의 힘이 없으면 피할 수있는 방법이 훨씬 좋습니다.