Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Clock gated signals not synchronised if used as a logical input #662
Author Name: Charlie Brej
When a clock gated signal is used as a logical input it loses it's synchronization with the input clock. This is rarely a problem as the clock is only sensed with edge sensitive always statements, but if it is ever an input to logic it becomes unsynchronized again.
Test case attached. Removing the "$display("Clock is %d", clk2);" line makes the test pass again.