Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

is latch with registered enable is equivalent to flipflop?

Status
Not open for further replies.

manojkhandelwal

Member level 2
Joined
Feb 27, 2012
Messages
50
Helped
5
Reputation
10
Reaction score
5
Trophy points
1,288
Activity points
1,590
Hi all,
I just want to know whether the two circuits are equivalent (1 and 2). By equivalent i mean exactly same timing characteristics

1. A latch with its enable signal (en) and input "in". But, this enable signal is the output of a flip flop (clock signal of this flop is "clk").

2. A flipflop with clock signal "clk" and input(in) is ANDed with enable (en).

Note: the latch output equals input when en=1

Thanks in advance,
manoj
 

no, because the latch is not clocked, and when enable is high, it will have minimal delay.

general rule for fpgas - dont use latches.
 

Hi tricky,

Iam sorry, but i didnt get what your saying..
Can u please elaborate a little bit more..

Thanks,
Manoj
 

the latch is transparent when enable is asserted. so any glitches are also passed through
you wont get glitches with the FF.
 

ok,
i heard from a lot of people that dont use latches in fpga's.......then why there are dedicated latches present (like registers) in some fpga devices.......?
Anyways, i was just asking because my RTL contained a latch and a register was inferred by the tool........strange right?
 

there are very few (if any) latches in fpga, they are all d type flip flops.
can you post somwe code>?
why do you want a latch?
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top