electronics forum

Rules | Recent posts | topic RSS | Search | Register  | Log in

counter design with negative and positive edge


Post new topic  Reply to topic    EDAboard.com Forum Index -> ASIC Design Methodologies & Tools (Digital) -> counter design with negative and positive edge
Author Message
ASIC_intl



Joined: 18 Jan 2008
Posts: 199


Post08 Jul 2008 13:36   

counter design with negative and positive edge


HI

I want to know the way of designing a counter using both the positive and negative edgse of the clock to get output waveforms which are not of 50% duty cycle.

Regards
Back to top
gliss



Joined: 22 Apr 2005
Posts: 670
Helped: 61
Location: Boston


Post08 Jul 2008 20:10   

counter design with negative and positive edge


You can try inserting buffers to get the output data away from the clock.
Back to top
kumarghz



Joined: 25 Nov 2006
Posts: 48
Helped: 3
Location: Penang, malaysia


Post20 Jul 2008 16:32   

Re: counter design with negative and positive edge


can you further describe about wht design you want?
Back to top
sree205



Joined: 13 Mar 2006
Posts: 421
Helped: 30


Post21 Jul 2008 7:15   

counter design with negative and positive edge


how about this following code? does this meet ur spec. ?

`define width 2
`define delay 2

module example(clk,rst,counter);

input clk,rst;
output [`width:0] counter;

reg [`width:0] counter;

always@(clk)
gen_clk = #`delay clk;

always@(posedge clk or negedge gen_clk or negedge rst)
if(!rst)
counter <= 'b0;
else
counter <= counter+1'b1;

endmodule
Back to top
FvM



Joined: 22 Jan 2008
Posts: 5160
Helped: 767
Location: Bochum, Germany


Post21 Jul 2008 7:31   

Re: counter design with negative and positive edge


The suggested code isn't synthesizable cause it would require flip-flops that operate on both edges. They don't exist in FPGA or ASICs as far as I know. Also delay statements are usable in simulation only!

Various solutions for frequency dividers operating on both edges have been posted at EDAboard, I assume that you'll be able to find some of them, They are generally using positive and negative clocked flip-flops with combinational logic.
Back to top
sree205



Joined: 13 Mar 2006
Posts: 421
Helped: 30


Post21 Jul 2008 7:41   

counter design with negative and positive edge


yes, its not a synthesizable option. it can only be used in behavioural modelling.
Back to top
Google
AdSense
Google Adsense




Post21 Jul 2008 7:41   

Ads




Back to top
ASIC_intl



Joined: 18 Jan 2008
Posts: 199


Post21 Jul 2008 9:03   

Re: counter design with negative and positive edge


Hi FVM

Can u please let me know some websites in Edaboard or any other websites where I can find out solutions of frequency dividers operating in both the edges?
Back to top
Arabic versionBulgarian versionCatalan versionCzech versionDanish versionGerman versionGreek versionEnglish versionSpanish versionFinnish versionFrench versionHindi versionCroatian versionIndonesian versionItalian versionHebrew versionJapanese versionKorean versionLithuanian versionLatvian versionDutch versionNorwegian versionPolish versionPortuguese versionRomanian versionRussian versionSlovak versionSlovenian versionSerbian versionSwedish versionTagalog versionUkrainian versionVietnamese versionChinese version
Post new topic  Reply to topic    EDAboard.com Forum Index -> ASIC Design Methodologies & Tools (Digital) -> counter design with negative and positive edge
Page 1 of 1 All times are GMT + 1 Hour
Similar topics:
detectiong positive edge and negative edge of a waveform (22)
D Flip-Flop with Negative-Edge Clock or Positive-Edge Clock (5)
negative edge trigerring vs positive edge trigerring (7)
How to make a JK FF with positive-edge-triggered CLK input? (1)
Positive and negative (2)
Negative and Positive VDD (7)
positive and negative feedback ! (15)
Positive and negative planes (4)
positive and negative temperature coefficient? (2)
Positive and negative power supply (2)


Abuse || Administrator || Moderators || Support us || sitemap
topic RSS