- Joined
- Jun 3, 2008
- Messages
- 6
- Reaction score
- 0
Hi All,
could anyone suggest a code to create diffrent clock frequency from the main system clock? I wrote a code but it does not respond. Synthesizer does not implement "after" statement. (On the other hand In the simulation snapshot outputs are defined as U. Does It mean "undefined"?)
Waiting your valuable comments,
Thanks,
Oppenheimer
entity freqdiv is
Port ( clk : in STD_LOGIC;
freq1 : out STD_LOGIC;
freq2 : out STD_LOGIC;
freq3 : out STD_LOGIC);
end freqdiv;
architecture Behavioral of freqdiv is
signal div1,div2,div3: STD_LOGIC:= '0';
begin
freq1<= not clk after 25 us;
freq2<= not clk after 50 us;
freq3<= not clk after 75 us;
end Behavioral;
could anyone suggest a code to create diffrent clock frequency from the main system clock? I wrote a code but it does not respond. Synthesizer does not implement "after" statement. (On the other hand In the simulation snapshot outputs are defined as U. Does It mean "undefined"?)
Waiting your valuable comments,
Thanks,
Oppenheimer
entity freqdiv is
Port ( clk : in STD_LOGIC;
freq1 : out STD_LOGIC;
freq2 : out STD_LOGIC;
freq3 : out STD_LOGIC);
end freqdiv;
architecture Behavioral of freqdiv is
signal div1,div2,div3: STD_LOGIC:= '0';
begin
freq1<= not clk after 25 us;
freq2<= not clk after 50 us;
freq3<= not clk after 75 us;
end Behavioral;