'systemc'에 해당되는 글 1건

  1. dont_initialize() 1 2012.01.09
Process and threads (not the cthreads) get executed automatically in Constructor even if event in sensitivity list does not occur. To prevent this unintensional execution, use dont_initialize() function as shown in example.

- 출처 : http://www.asic-world.com/systemc/process4.html

SystemC는 왜 저런 비직관적인 behavior가 있는걸까...
하여간 1시간 넘게 애먹고 있었는데, 우연히 문제를 발견했네... 
다음과 같은 식으로 사용하면 된다.

 18   SC_CTOR(tff_sync_reset) {
 19     SC_METHOD (tff);
 20       dont_initialize();
 21       sensitive << clk.pos();
 22   } 
,