IsaacQuebec
New Contributor
2 years agoConfusion about RTL viewer of Verilog Code: DATAIN of a latch has no connection
I'm a newbie to FPGA design and Quartus ii. I am quite puzzled about the synthesis results of the following code.
Here is the code:
module sram(Din, CS, WR, Dout); input CS, WR; // CS: chip select, active low input Din; output Dout; reg Dout; always @(CS or WR or Din) if (!CS) if (WR) Dout=Din; else Dout=Dout; else Dout=1'bz; endmodule
The synthesis result (viewed with RTL viewer, Quartus ii 18.0) is:
I don't understand why the DATAIN input port of latch Dout_14 is not connected to anything. In this case, what should be the output of Dout_14 when CS = 0? I wonder if it is really a normal latch that I know. Is there any way to get detailed description of a node in RTL viewer including its input/output ports, its behavioural in Quartus ii?