r/tis100•
Finva

Interrupt handler help.

I've been looking at the requirements for this for hours and can't even figure out what the hell it even wants me to do. Looking at all the inputs and outputs I can't tell what it's supposed to accomplish.

Posted Dec 27, 2020, 2:30 AM UTC

22
PseudobrilliantGuy•

It is basically asking for a multi-channel rising-edge detector. That is, it's asking you to check if a channel that is currently outputting 1 was outputting 0 in the immediately preceding read value. If it is, then write that channel ID number to output. If there is no such change in any channel for the current line, write 0 to output.

I know that the data channels don't correspond to time in the same way as Shenzhen I/O or Exapunks, but it can be helpful to think of the channels as though they are synchronized.

3
Jackeea•

Whenever a signal changes from a 0 to a 1, send the name of that signal to the output. Otherwise, output a 0.

2