Closed dinyar closed 8 years ago
Side comment: It would be good to figure out why this worked in the tests without cancel out before. In principle these also contain the empty bits so we should have seen a problem earlier..
The reason this was working before is due to https://github.com/dinyar/uGMTfirmware/blob/master/uGMT_algos/firmware/hdl/GhostBusting/WedgeCheckerUnit.vhd#L119. Here the empty bits are registered at the falling clock, so they were valid long enough for the stage 1 sorter to use them.
The disable bits from the Stage0 sorter need to be delayed by one BX before arriving at the Stage1 sorter.