vlsibank

Log in or Sign up.
Main EDA Embedded Systems ASIC FPGA VHDL Verilog CMOS Semiconductors DSP Mixed Signal Architecture Miscellaneous

<-- Previous Next -- > TOPIC: Frequency divider with 30% duty cycle
Posted by: pournimakada     11/23/2006 6:34:18 AM     Category: VHDL
Questions posted: 2         Comments Posted: 0
Hi,

Can anybody tell me how to design divide by 3 frequency divider with 30% duty cycle

Thanks,
Pournima

Posted by: lal87     3/10/2010 12:21:20 AM
Comments Posted:37       

request the code here :
http://vhdlguru.blogspot.com/p/contact-me.html


Posted by: bjyothi     11/28/2006 5:36:10 AM
Comments Posted:6       Questions Posted:2

follwing VHDL code gives  u freq divide by 3 with approx 33.333% duty cycle



library ieee;
use ieee.std_logic_1164.all;
use ieee.std_logic_arith.all;
use ieee.std_logic_unsigned.all;
entity text is
generic(n:integer:=3);
port(fin:in std_logic;
fout:out std_logic);
end text;

architecture text_arch of text is

begin
process(fin)
variable count:integer:=0;
begin
if rising_edge(fin) then



if  count = n-1  then
fout <= '1' ;
count := 0;
else
fout <= '0';
count := count + 1;
end if;

end if;
end process;
end text_arch;




You have to be logged in to be able to post a comment. To login click here. First time? Sign up. It just takes a few minutes to sign up.

Login to access the site

  Username:
  Password:
   Signup Forgot Password?    

Users with most replies

   User
 No. of Replies
100
86
77
76
70
66
61
57
54