Dear all,
I'm working on an assignment, and I'm stucked. Please help.
I'm asked to write a simple program.
Input: CLKIN. Output: CLKOUT.
The frequency of CLKIN is five times faster than CLKOUT. I came out with a couple solutions, such as, johnson counter, and regular counter. But I was told that the output can only happen at EITHER the rising edge OR the falling edge of the input CLKIN, but not both.
|--|__|--|__|--|__|--|__|--|__|
|____________|----------------|
^
|___how do I change the output at the falling edge when the process any happen at rising edge??
process(CLKIN)
if(CLKIN'EVENT and CLKIN = '1')
....
....
I'm working on an assignment, and I'm stucked. Please help.
I'm asked to write a simple program.
Input: CLKIN. Output: CLKOUT.
The frequency of CLKIN is five times faster than CLKOUT. I came out with a couple solutions, such as, johnson counter, and regular counter. But I was told that the output can only happen at EITHER the rising edge OR the falling edge of the input CLKIN, but not both.
|--|__|--|__|--|__|--|__|--|__|
|____________|----------------|
^
|___how do I change the output at the falling edge when the process any happen at rising edge??
process(CLKIN)
if(CLKIN'EVENT and CLKIN = '1')
....
....