Forums.Sureshkumar.net : A Perfect Place to Share Knowledge         Blogs     Games    Magazines    

"Sharing knowledge does not lessen your store, often it gets you more. Sharing plays a key role in relationships and bonding, happens in small steps and is assisted through community membership."

Go Back   SURESHKUMAR.NET FORUMS > TECHNICAL DISCUSSIONS > NETWORK ADMINISTRATION , HARDWARE & TROUBLESHOOTING > Networking Interview / Technical Questions
Register FAQ Members List Calendar Games Blogs Search Today's Posts Mark Forums Read

Networking Interview / Technical Questions Kindly solve an many as questions you can. It will sharpen your skills and those solutions will help others too.

   

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
Old 23-01-07, 08:54 PM   #1 (permalink)
Senior Member
 
Join Date: Jan 2007
Age: 25
Posts: 196
Thanks: 0
Thanked 1 Times in 1 Posts
Thanks: 0
Thanked 1 Time in 1 Post
Rep Power: 3 pooja.22 is on a distinguished road
Design a divide-by-3 sequential circuit with 50% duty circle.

Design a divide-by-3 sequential circuit with 50% duty circle.
pooja.22 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 09-01-08, 07:35 PM   #2 (permalink)
Junior Member
 
Join Date: Jan 2008
Age: 25
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 1 vikas_lakhanpal27 is on a distinguished road
Re: Design a divide-by-3 sequential circuit with 50% duty circle.

-----------------------------------------------------------------------
--Designer Vikas Lakhanpal; vikas_lakhanpal27@yahoo.com
--Module description : This modules is dividing the incoming clock by ODD value as assigned in genric CLK_DIV_BY generic with 50% duty cycle
-----------------------------------------------------------------------

library IEEE;
USE ieee.std_logic_1164.all;
USE ieee.std_logic_arith.all;
USE ieee.std_logic_unsigned.all;
entity FDIV is

generic(
CLK_DIV_BY : INTEGER :=15; --Give the odd value with which you want to divide the clock i.e. 3,5,7,9
COUNTVALUE : INTEGER :=4 --Give the bit count of division ratio value.Ex upto 3= 2 bits; 5 to 7 = 3; 9 to 15 = 4 and so on..
);
port(
CLK : in std_logic;
CLR : in std_logic;
DIV: out std_logic
);
end FDIV;
--------------------------------------------------
Architecture beh of FDIV is
signal DIV_pos, DIV_neg :std_logic;
signal posedgecounter :std_logic_vector((COUNTVALUE - 1) downto 0);
signal negedgecounter,test :std_logic_vector((COUNTVALUE - 1) downto 0);
begin
-----------------------------
PROCESS(CLK,CLR)
begin
IF ( CLR = '0') THEN
posedgecounter <= (others =>'0');
ELSIF RISING_EDGE(CLK) THEN
posedgecounter <= posedgecounter + 1;
if posedgecounter = conv_std_logic_vector((CLK_DIV_BY - 1),(COUNTVALUE)) then
posedgecounter <= (others =>'0');
end if;
if posedgecounter <= conv_std_logic_vector(((CLK_DIV_BY -1)/2),(COUNTVALUE)) then
DIV_pos <= '1';
else
DIV_pos <= '0';
end if;
END IF;
END PROCESS;
------------------------------
PROCESS(CLK,CLR)
begin
IF ( CLR = '0') THEN
negedgecounter <= (others =>'0');
ELSIF FALLING_EDGE(CLK) THEN
negedgecounter <= negedgecounter + 1;
if negedgecounter = conv_std_logic_vector((CLK_DIV_BY - 1),(COUNTVALUE)) then
negedgecounter <= (others =>'0');
end if;
if negedgecounter <= conv_std_logic_vector(((CLK_DIV_BY -1)/2),(COUNTVALUE)) then
DIV_neg <= '1';
else
DIV_neg <= '0';
end if;
END IF;
END PROCESS;
----------------------------------------
DIV<= DIV_pos and DIV_neg;
----------------------------------------
end beh;



lET ME KNOW IF U HAVE ANY DOUBTS.
vikas_lakhanpal27 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 09-01-08, 07:36 PM   #3 (permalink)
Junior Member
 
Join Date: Jan 2008
Age: 25
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 1 vikas_lakhanpal27 is on a distinguished road
Re: Design a divide-by-3 sequential circuit with 50% duty circle.

i THINK U CAN EASILY CHNGE IT TO CIRCUIT.is not it pooja?
vikas_lakhanpal27 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Mega Free Download S/W Links A-Z yathish OTHERS 513 30-09-08 02:49 PM
future in vlsi connectlogic Ask for Suggestion 1 31-07-08 03:14 AM
future in vlsi connectlogic EMBEDED SYSTEMS & VLSI 3 12-09-06 04:13 PM
Looking for job in embadedsystems shashishekhar EMBEDED SYSTEMS & VLSI 4 13-08-06 05:35 PM
companies list Tan Companies Info & Recruitment Process 7 17-03-06 05:11 AM


All times are GMT +6.5. The time now is 06:16 PM.





Search Engine Optimization by vBSEO 3.1.0