Hardware looping