<lkcl>
has anyone written any co-routine infrastructure for unit testing or simulations?
proteusguy has joined #m-labs
<lkcl>
i have a rather complex multi-input multiplexer with multiple STB/BSY signals, which would be flat-out impossible to understand if it was written as a single linear unit test
<lkcl>
i figured on doing something which took an array of functions and performed a "yield" on each, in turn, requiring that each yield a single clock (empty yield) before allowing the loop to proceed
<lkcl>
that way each co-routine will be clock-synchronised
<lkcl>
then it will be possible to have a co-routine for each input, looking for BUSY signals and acknowledging them, placing data on the input and setting STB accordingly.
<bb-m-labs>
build #2962 of artiq is complete: Failure [failed anaconda_upload] Build details are at http://buildbot.m-labs.hk/builders/artiq/builds/2962 blamelist: Chris Ballance <chris.ballance@physics.ox.ac.uk>
rohitksingh has joined #m-labs
m4ssi has quit [Quit: Leaving]
rohitksingh has quit [Remote host closed the connection]
cedric has quit [Ping timeout: 246 seconds]
cedric has joined #m-labs
cedric has quit [Changing host]
cedric has joined #m-labs
cr1901_modern1 has joined #m-labs
cr1901_modern has quit [Ping timeout: 246 seconds]