Have valid crc when valid signal is present

Previously the crc would be reset after 1 clock cycle while the valid
signal was still high. Now the data is preserved in the valid state
until the load signal is asserted.
This commit is contained in:
Byron Lathi
2022-04-08 12:25:17 -05:00
parent 3e69109474
commit 552fe8b6f8

View File

@@ -95,6 +95,7 @@ always_comb begin
VALID: begin
valid = ~load;
next_data = data;
crc_out = data[6:0];
end