Open rtawade opened 4 years ago
You are using $monitor on a single bit. Assuming it is not driven by 'Z or 'X, the only values it can change to are 0 to 1 and vice versa. When you drive your shift register with 'b110001, $monitor() will only display the changes. This is why the 1st test only display 5 values, while the other one displays 7 values.