chisel: Eliminate a few trivial loops.
Merge branch 'master' of github.com:t-crest/patmos