A
Amit
Guest
Hello group,
I'm working on a VHDL code that gets an input as voltage (a number)
and there are several conditions that I have to consider here.
For example: if voltage is equal or less than 4v the output will have
25 Hz sampling rate and if is more than 6v then sampling rate will be
50 Hz and some other conditions.
Now, what I'm trying to understand is about a specific condition. In
general, there is an input as STATUS (beside the input voltage) which
if it is high then the output will be generated and if not then no
output. However, there is an exception which in there:
If STATUS is on falling edge then the output signal must wait till end
of its clock cycle then it becomes zero. Please correct me if I'm
wrong since I'm new to this:
if clock'event = '0' AND clock = '0' --meaning if clock is on its
falling edge
wait till current clock cycle ends <<<<<<< (LINE A)
stop it
Question: how should I know the clock pulse is over? to set the output
to zero? (in line A)
Your help will be appreciated greatly,
Regards,
amit
I'm working on a VHDL code that gets an input as voltage (a number)
and there are several conditions that I have to consider here.
For example: if voltage is equal or less than 4v the output will have
25 Hz sampling rate and if is more than 6v then sampling rate will be
50 Hz and some other conditions.
Now, what I'm trying to understand is about a specific condition. In
general, there is an input as STATUS (beside the input voltage) which
if it is high then the output will be generated and if not then no
output. However, there is an exception which in there:
If STATUS is on falling edge then the output signal must wait till end
of its clock cycle then it becomes zero. Please correct me if I'm
wrong since I'm new to this:
if clock'event = '0' AND clock = '0' --meaning if clock is on its
falling edge
wait till current clock cycle ends <<<<<<< (LINE A)
stop it
Question: how should I know the clock pulse is over? to set the output
to zero? (in line A)
Your help will be appreciated greatly,
Regards,
amit