1、
警告如下: Warning (10240): Verilog HDL Always Construct warning at spi_wr.v(108): inferring latch(es) for variable "csn", which holds its previous value in one or more paths through the always construct……
原先的警告说明,你没有在所有状态赋值,在这些状态将保持参考网页:http://zhidao.baidu.com/link?url=BoZc_q3DigdvwHJUbs6KyCoFVahLNc49LwHbkb4G91HlOYaAr3UY2mpKyV4ubY8V0WyUtqHDbL_vXl0qC9hC8_