make sure stage 2 boolean ports marked as inputs
fix build.sbt
make sure to clean everything in make clean
now that Reverse if fixed, get rid of custom priority encoder implementation