darthvader1
Newbie level 5
- Joined
- May 20, 2011
- Messages
- 8
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1,281
- Activity points
- 1,348
Is there any general form of code or way to generate X Hz clock from Y Mhz clock in fpga by using VHDL?
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
process(clock)
begin
if rising_edge(clock) then
if reset = '1' then
cnt <= (others => '0');
else
cnt <= cnt + 1;
end if;
end if;
if cnt = "your divide number" then
temp1Hz <= '1';
reset <= '1';
else
temp1Hz <= '0';
reset <= '0';
end if;
end process;
something like this, try to simulate this
if it is your universe work thats all right
Why not?You could use counter to get your wish. But it is not a good practice.