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.

which of the follow circuits can generate glitch free gated_

Status
Not open for further replies.

littlefield

Junior Member level 3
Joined
Jul 7, 2007
Messages
27
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,472
which of the follow circuits can generate glitch free gated_clk?

A.always@(posedge clk) gated <=en;
assign gated_clk=gated&~clk;

B.always@(negedge clk) gated <=en;
assign gated_clk=gated&~clk;

C.always@(posedge clk) gated <=en;
assign gated_clk=gated|~clk;

D.always@(negedge clk) gated <=en;
assign gated_clk=gated|~clk;

this is an interview question, but I don't think any of above answer is corect, Am I wrong?
 

Re: which of the follow circuits can generate glitch free ga

Hi littlefield,

I think B answer is correct.

This will make sure 'en' always changes in inactive duration of the clock :D
 

Re: which of the follow circuits can generate glitch free ga

____------____------____------____------____clk

------____------____------____------____------~clk

------------------------_____________________en

-----____------____X____________________gate_clk

if choose B
I think it will have the glitch at the point X,
at this time, (~clk) change from low to high, en change from high to low.
if we do RTL simulation, it haven't glitch
but we do the post-layout simulation, it probably have glitch
 

Re: which of the follow circuits can generate glitch free ga

A is the answert
 

Re: which of the follow circuits can generate glitch free ga

____------____------____------____------____clk

------____------____------____------____------~clk

___________________-----------------------en

___________________x___------____------gate_clk

if choose A
I think it will have the glitch at the point X,
at this time, (~clk) change from high to low, en change from low to high.
if we do RTL simulation, it haven't glitch
but we do the post-layout simulation, it probably have glitch
 

Re: which of the follow circuits can generate glitch free ga

Your interview question must have a precondition.
en is synchronous with clk and have a little phase shift.
If no this precondition, this design must have clock domain crossing mechanism.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top