Clock Process?

M

Moikel

Hey all,

I'm doing a project for college were I'm building a simple register
file. However, one part of the assignment has me confused. I need to
design a clock process which is high for 5ns and low for 25ns. I'm
using VHDL (of course).

Could somebody please help me with this?

Thanks a lot,

Moikel
 
A

ALuPin

You are talking about a Clock Process .
So what clock frequency are you using ?

Rgds
André
 
B

Brandon

Try this:
<SNIP>

clock_proc: process
begin
if (now = 0 ns) then
clk <= '0';
end if;
wait for 25 ns;
clk <= '1';
wait for 5 ns;
clk <= '0';

end process clock_proc;

</SNIP>

-Brandon
 
A

Andy

How about:

signal clock : std_logic := '0';

....

clock <= '1' after 25 ns when clock = '0'
else '0' after 5 ns when clock = '1';

Andy Jones
 
A

anupam

how about......

clock:process
clock<='1';
wait for 5 ns;
clock <='0';
wait for 25 ns;
end process clock;


regards,
Anupam Jain
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,774
Messages
2,569,599
Members
45,165
Latest member
JavierBrak
Top