A very warm welcome to the site. I'm pretty certain it's a 'no' but I'm afraid I don't have the time to write the decent and substantiated answer this needs.
– TonyMJan 21 '23 at 22:42
By latch, do you really mean latch or actually mean a flip-flop? (A latch lets its input flow to its output while its CLK/EN is at one level and holds its value while CLK/EN is at the opposite level. A flip-flop transfers input to output on a CLK edge,)
– TonyMJan 21 '23 at 23:38
1
Any logic block is ideal, and the behaviour how it works under various conditions depends on the implementation.
– JustmeJan 21 '23 at 23:43
I think OP means a latch, because the basic D-type flip flop does not have an enable.
– SteveShJan 22 '23 at 01:03
@SteveSh, I think so too, but FPGA registers as FFs (eg a DFFE) have CLK and EN. OP: please edit your question to clarify what technology you are considering here and why.
– TonyMJan 22 '23 at 10:47
Here I was referring really to D-latch and not D-FF. I'm asking this question because in the lib file of the technology we are using, the latch model is generating X at the output when there is a short pulse on the enable even though Q and D are the same
– ViktorinoxJan 22 '23 at 20:20
The model will complain of timing violations and signal this with an X, regardless of what the real one will do. Which I imagine you realised. Incidentally, please edit new information into your question rather than adding it in comments. Otherwise, readers have to piece together the full question.
– TonyMJan 23 '23 at 07:32