Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Clock

Status
Not open for further replies.

lbh12456

Programmer
Mar 4, 2003
1
VN

How can I program a clock(2Mhz)component without any inputs ?


------
| |
| |-->CLK2Mhz
------
 
You can´t have a "clock" without one osclilator...
If you are using VHDL for Behavioral simulation

entity clk_2MHz is
Port (clk_2MHz : out std_logic
);
end clk_2Mz;

architecture Behavioral of clk_2k is

signal clk : std_logic := '0';

begin
clk <= not clk after 250 ns;

process(clk)
begin
clk_2MHz <= clk;
end process;

end Behavioral;

note that you can't implement because after :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top