ucb-bar / chisel2-deprecated

chisel.eecs.berkeley.edu
387 stars 90 forks source link

New tester hangs with optimized C++ code. #580

Closed ucbjrl closed 8 years ago

ucbjrl commented 8 years ago

Stepping through optimized code, it looks like the following in channel_t::acquire()

while (channel[0] == 1 && channel[2] == 1);

caches the channel data. Indicate the memory mapped data area is volatile (in both the C++ and Scala code). Fixed by #579.