R
raullim7
i have 3 processes in my code, all running with a shared counter.
counter counts from 0 to 99.
process1(rising edge)
take in a sample at the rising edge, so in total i will have 100
samples.
process2(falling edge)
take in a sample at the falling edge, so in total i will have another
100 samples.
process3(rising edge)
add up the samples for the previous 2 processes.
i have a problem here. how can i add the samples in dual edge form as
i am only able to add them during the rising edge in process3. my
output will be 1,3,5,7,9..etc.. my desired output is 1,2,3,4,5...etc..
i cant use a process4 to since it will only give me 2,4,6,8.. etc..
is there anyways that i do to get my output as 1,2,3,4,5,6... pls
help.. thanks
counter counts from 0 to 99.
process1(rising edge)
take in a sample at the rising edge, so in total i will have 100
samples.
process2(falling edge)
take in a sample at the falling edge, so in total i will have another
100 samples.
process3(rising edge)
add up the samples for the previous 2 processes.
i have a problem here. how can i add the samples in dual edge form as
i am only able to add them during the rising edge in process3. my
output will be 1,3,5,7,9..etc.. my desired output is 1,2,3,4,5...etc..
i cant use a process4 to since it will only give me 2,4,6,8.. etc..
is there anyways that i do to get my output as 1,2,3,4,5,6... pls
help.. thanks