Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
15 years ago

Cleaning up latch warnings

I am trying to build an SPI interface on a Max II device. I want to latch the shift-register data into my control bits when CS is low, like this: reg shift = 0; always @(posedge sclk) if (...