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 filter the noise whose width is less than one CLK?

Status
Not open for further replies.

packet

Junior Member level 1
Joined
Sep 25, 2002
Messages
19
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
76
One input signal whose width maybe less than one CLK,
If that happen, circuit should deal as invaild signal, I think sync. input signal use posedge and negedge CLK will be good idea?
How to implement the approach? also If I would like to filter noise whose width is less than 2 CLK?
 

you can add DFF between the input signal and input port!The DFF can "filter" the input signal whose width maybe less than one DFF's CLK
 

Re: How to filter the noise whose width is less than one CLK

always @(posedge clk or negedge rst_n) begin
if (~rst_n) begin
signal_d1 <= #1 1'b0;
signal_d2 <= #1 1'b0;
end else begin
signal_d1 <= #1 signal_in;
signal_d2 <= #1 signal_d1;
end
end

always @(posedge clk or negedge rst_n) begin
if (~rst_n)
filtered_signal <= #1 1'b0
else if (signal_d1 == signal_d2)
filtered_signal <= #1 signal_d2;
end

above code can eliminate noise with width less than one clock cycle.




packet said:
One input signal whose width maybe less than one CLK,
If that happen, circuit should deal as invaild signal, I think sync. input signal use posedge and negedge CLK will be good idea?
How to implement the approach? also If I would like to filter noise whose width is less than 2 CLK?
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top