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 it good to connect signal to the clock pin of flip-flop ?

Status
Not open for further replies.

ftian

Newbie level 5
Joined
Oct 13, 2004
Messages
10
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
95
Is it good or not?

Is it good or not if I directly connect a normal signal, not clock signal, to the clock pin of flip-flop?

That happenes if I want to monitor an input pin's falling edge, or I should use system clock and two flip-flops to do that...
 

Re: Is it good or not?

Is it good or not if I directly connect a normal signal, not clock signal, to the clock pin of flip-flop?
No asynchronous design methodologies are generally not recommended. as its not friendly with STA and DFT

That happenes if I want to monitor an input pin's falling edge, or I should use system clock and two flip-flops to do that...

do u want to detect the edge or the signal value.. explain the situation in detail
 

Re: Is it good or not?

do u want to detect the edge or the signal value.. explain the situation in detail

I want to detect edge.
 

Re: Is it good or not?

ftian said:
do u want to detect the edge or the signal value.. explain the situation in detail

I want to detect edge.


So, you can use a edge detect circuit which can use level to replace edge.
Like this:
// detect the posedge of q
always @(posedge clk)
q_dly1 <= q;

assign q_posedge = q & !q_dly1;
 

Is it good or not?

it is not better as u do STA and DFT ....
it is hard to do above work 0...
 

Re: Is it good or not?

You need to consider the driving, glitch, test and synthesis issue. If they are all ok to you, you can use it.
 

Re: Is it good or not?

I think that's a bad idea. because it is not good for synthesis, it not good for DFT,

it's not good for timing analysis. but if you want to lower power consumption

through this method, that's good.







ftian said:
Is it good or not if I directly connect a normal signal, not clock signal, to the clock pin of flip-flop?

That happenes if I want to monitor an input pin's falling edge, or I should use system clock and two flip-flops to do that...
 

Re: Is it good or not?

yuzhicai
So, you can use a edge detect circuit which can use level to replace edge.
Like this:
// detect the posedge of q
always @(posedge clk)
q_dly1 <= q;

assign q_posedge = q & !q_dly1;

this works only when the clk is high ...wht happens if input changes when clk is low
how to do a synchronous design for this???
 

Is it good or not?

instead of posedge use negedge and then use the same code,this is for verilog,for vhdl u can do it like:

process("sensitivity list")
if (clk'event and clk=='0')then


regards
amarnath
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top