MiSTer-devel / C64_MiSTer

111 stars 57 forks source link

SID - small bug in sid_envelope.sv #138

Closed LMN128 closed 1 year ago

LMN128 commented 1 year ago

'hold_zero' is written by both blocking and non-blocking assignments. I think there (line 96) should be this:

if(state != ST_ATTACK && envelope == 1) hold_zero <= 1;

sorgelig commented 1 year ago

thanks for spotting it! Functionally it has no difference, but may help the compiler. I've corrected it.