Fix incorrectly tripped assertion

Assertions should only be checked on clock edges