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.

Can we use DFFs that have no reset in a design ?

Status
Not open for further replies.

shnain

Member level 3
Member level 3
Joined
Jan 7, 2007
Messages
66
Helped
11
Reputation
22
Reaction score
9
Trophy points
1,288
Location
Morocco
Activity points
1,632
Hi all,

Can we use in a design DFFs that have no reset ? could this lead to an unknown value at DFF output ?

Regards,
Said.
 

subramanyam

Member level 3
Member level 3
Joined
Jul 29, 2006
Messages
56
Helped
9
Reputation
16
Reaction score
4
Trophy points
1,288
Location
bengaluru
Activity points
1,660
Re: DFF without reset ?

All the asynchronous signals like reset , preset , clear are used for the purpose of sending the system into a known state in the initial condition. If reset is not used then definately flipflop output will be in any unknown state in the initial condition.

subbu.
 

cheelgo

Member level 5
Member level 5
Joined
Nov 23, 2004
Messages
82
Helped
4
Reputation
8
Reaction score
1
Trophy points
1,288
Activity points
488
Re: DFF without reset ?

subramanyam said:
All the asynchronous signals like reset , preset , clear are used for the purpose of sending the system into a known state in the initial condition. If reset is not used then definately flipflop output will be in any unknown state in the initial condition.

If u don't use them the flipflop won't go into any metastable state. I think using an asynchronous signal itself may cause the system to go into this metastable state ???

subbu.

this depend on what kind of design style you prefer to?
 

sp3_kapil

Banned
Junior Member level 1
Joined
Jan 2, 2007
Messages
18
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
0
Re: DFF without reset ?

[All the asynchronous signals like reset , preset , clear are used for the purpose of sending the system into a known state in the initial condition. If reset is not used then definately flipflop output will be in any unknown state in the initial condition.

If u don't use them the flipflop won't go into any metastable state. I think using an asynchronous signal itself may cause the system to go into this metastable state

kapil

this depend on what kind of design style you prefer to?
 

kctang

Member level 1
Member level 1
Joined
Nov 4, 2004
Messages
39
Helped
2
Reputation
4
Reaction score
0
Trophy points
1,286
Activity points
451
Re: DFF without reset ?

Hi,

My experience is using DFFs with or without reset doesn't really matters. During
powerup, most FFs will have a know logic 0 or 1. But you have to know before hand
the uncontrollable output will cause any undesire effect or not.

For DFF with async reset, we can sure force them into know reset state. But for
DFF without reset, we can still use logic to control the output state(i.e. implement
sync reset using logic, which can be done using HDL & synthesis tools even if the
lib doesn't have any DFF with resets).

My concern is you have to make your reset signal a high fanout buffer tree or else
your design won't work in silicon.

Hope this can help!!
 

sumit_techkgp

Full Member level 2
Full Member level 2
Joined
Apr 1, 2007
Messages
133
Helped
8
Reputation
16
Reaction score
5
Trophy points
1,298
Activity points
1,866
DFF without reset ?

DFF which are used in data flops can be used without reset. If there is no need to initialize a register then there is no need to use reset.
Sumit
 

Arturi

Member level 2
Member level 2
Joined
Sep 13, 2006
Messages
52
Helped
7
Reputation
14
Reaction score
3
Trophy points
1,288
Activity points
1,617
Re: DFF without reset ?

Use reset Flip-Flops for the configuration signals of your design. This will ensure that your design goes into a known-state after system reset and will most likely save you lots debugging time in the gate level simulation.
 

wice

Member level 1
Member level 1
Joined
Dec 30, 2006
Messages
33
Helped
6
Reputation
12
Reaction score
2
Trophy points
1,288
Activity points
1,513
DFF without reset ?

i had looked through the xilinx fpga Libraries Guide
document files,and i find that there are mainly 3 kind of primitives for ffs in xilinx fpga library as following:
ff with asynchronous reset,ff with synchronous reset,
ff without reset.
why the third kind of ff exists?
cause some time we need ff without reset.
in fact,not all of the ffs need to goes into an known state value after power up.
 

shiv_emf

Advanced Member level 2
Advanced Member level 2
Joined
Aug 31, 2005
Messages
605
Helped
22
Reputation
44
Reaction score
6
Trophy points
1,298
Activity points
4,106
DFF without reset ?

what are we gaining by not having RESET in FF?
routing will be improved ... high fanout reset net length is reduced

is thr any power or speed gain ?
Area of FF mite be less
Shiv
 

clsfox

Junior Member level 2
Junior Member level 2
Joined
Apr 29, 2007
Messages
23
Helped
1
Reputation
2
Reaction score
0
Trophy points
1,281
Location
Greece
Activity points
1,447
Re: DFF without reset ?

shiv_emf said:
what are we gaining by not having RESET in FF?
routing will be improved ... high fanout reset net length is reduced

is thr any power or speed gain ?
Area of FF mite be less
Shiv

This is what I wanted to ask as well.

What would be the purpose for a DFF without a reset?

Are there any circuits that NEED a DFF without a reset?
 

eternal_nan

Full Member level 3
Full Member level 3
Joined
Mar 10, 2003
Messages
154
Helped
26
Reputation
52
Reaction score
11
Trophy points
1,298
Location
eternity
Activity points
1,412
DFF without reset ?

The answer is different for synchronous and asynchronous reset methodologies:

1. Synchronous: you save a gate delay so in case you are looking for ultra high speed this is an option. Often times high speed pipelines only implement reset on the first set of flops and rely on the reset to 'flush' through the pipeline over several clock cycles.

2. Asynchronous: async. reset flops are bigger than those without reset due to the extra transistors needed to force the flop state. Not having resets in places that you can do without it saves you area and leakage power.

In general, I would only trust fairly senior engineers to judge whether to reset a particular flop or no; for new and intermediate designers - enforce everything is reset rule since mistakes come easy when you play with reset.
 

rajsrikanth

Full Member level 2
Full Member level 2
Joined
Apr 19, 2006
Messages
130
Helped
12
Reputation
24
Reaction score
4
Trophy points
1,298
Location
Hyderabad
Activity points
1,947
Re: DFF without reset ?

i think there is no difference having reset or not having
 

dft_guy

Advanced Member level 4
Full Member level 1
Joined
Oct 19, 2006
Messages
111
Helped
24
Reputation
48
Reaction score
8
Trophy points
1,298
Location
USA
Activity points
2,009
Re: DFF without reset ?

OK, I'll put my $0.02 in: If there is no reason to leave out the reset for one or more flops, leave it in there. It's better for both simulation and test.

But that said, there are a legitimate reasons for not putting them in. Flops without resets are smaller, faster, and take less power. As long as you know that after a few clocks, the circuit will resolve itself, who needs the reset? Many times, especially in datapath situations, you can initialize a whole path by providing either stimulus or a reset at the beginning of the path, clocking the circuit a number of times, and the rest of the path has known values.

However, be careful, because, you would never want to hope for the same when design a state-machine. FSM's must always power up in a known state.

It depends upon the situation. But err on the side of putting resets in, unless other constraints dictate otherwise.

Hope that's helpful!
John
DFT Digest
 

kmrr02

Newbie level 1
Newbie level 1
Joined
Aug 3, 2009
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Location
Kor.
Activity points
1,283
DFF without reset ?

DFF with reset
 

shitansh

Full Member level 5
Full Member level 5
Joined
Jan 6, 2009
Messages
296
Helped
51
Reputation
100
Reaction score
29
Trophy points
1,308
Location
India-Gujarat
Activity points
3,017
Re: DFF without reset ?

dft_guy said:
However, be careful, because, you would never want to hope for the same when design a state-machine. FSM's must always power up in a known state.
DFT Digest

I am totally agree with you, for FSM design care should be taken, while designing sequential part of FSM, but while designing output logic of FSM there is no need ot use reset because on power up/reset action, FSM will be in Known (IDLE) stae and output logic is determind on basis of sate of FSM, so if state is known then output will also know at power up.

HTH
--
Shitansh Vaghela
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top