Forum Discussion
JBurt2
New Contributor
7 years agoI got the following warning 10240 inferred latch on a variable. Is this a problem? if so how do I fix it.
module SPI_OUTPUTS(input ReSet, input SPI_CLK,SPI_CS,SPI_DIN,output SPI_DOUT,output reg [24:1] Outputs = 0); reg [23:0] SPI_shift = 0; //SPI Shift Reg reg Start = 0; assign SPI_DOUT = (Start =...
AndyN
Occasional Contributor
7 years agoI would say the source of your problem is using SPI_CS in the sensitivity list. Are you really meaning to do that or can you sample it synchronously with the posedge of the clock?