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.

How to connect a control signal to DFFs clock enable port?

Status
Not open for further replies.

nwu

Newbie level 1
Joined
Mar 31, 2004
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
54
gate clock problem!

hi all:
there has a signal to control a clock that will be used in a DFF.
so i want to make this control signal connected to DFF's clock enable port,
how do you deal with this problem?.
 

Re: gate clock problem!

If your using the clock enable your not really gating the clock.. as long as you can garrentee that the enable is clean before the clock edge then you should be ok..

always @(posedge clk)
if(rst)
x <= 1'b0;
else
if(enable)
x <= y;

jelydonut
 

Re: gate clock problem!

Hi

If your D flip flop use the rising edge of the clock signal, then sample the enable on the falling edge of the clock signal (through a DFF) before driving the enable input of your first DFF.
 

Re: gate clock problem!

I don't think there is any clocking enable at any dff.. that is data enable pin available at dff.. anyway depend i believe that depend on what kind of technology is avaialable for your synthesis. to perform gate u can do like this

wire gated_clock;

assign gated_clock = clk & en;

always @(posedge gated_clock or negedge rst)
begin
if (!rst)
q <= 0;
else
q <= d;
end

hope this help
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top