Minres / SystemC-Components

A SystemC productivity library: https://minres.github.io/SystemC-Components/
https://www.minres.com/#opensource
Apache License 2.0
81 stars 21 forks source link

snp #48

Open hliu71 opened 9 months ago

hliu71 commented 9 months ago

in process_snoop_resp of simple_initiator_b, the following check

if ( snp.trywait() <0 ) ...

blocks simualiton. Instead , snp semaphore should be checked with

if (snp.get_value ()== 0) ...

then use snp.wait() to take the semaphore. then simulation can continue