N
Nevo
Guest
All,
I'm new to FPGA design and have run into a fundamental problem that I'm sure
has a cookbook answer that "everyone" knows. Unfortunately, I don't have a
formal education in digital electronics and am stumped.
To oversimplify, my design has two inputs: COUNT_UP and RESET_COUNTER. On
the rising edge of COUNT_UP, I increment a counter. On the rising edge of
RESET_COUNTER, I set the counter to zero. The two inputs are completely
asynchronous and have no relationship to each other.
When synthesizing the design, I get an error that my counter is
multi-source. I understand the error and what it means, but not how to solve
it.
I thought I'd use an internal register, RESET_NEEDED, and set that on the
rising edge of RESET_COUNTER, then do the actual clearing of the counter and
resetting RESET_NEEDED on the rising edge of COUNT_UP, but in that case
RESET_NEEDED is now a multi source signal and I'm chasing my tail.
Can anyone point me to the solution to this problem?
Thanks,
-Nevo
I'm new to FPGA design and have run into a fundamental problem that I'm sure
has a cookbook answer that "everyone" knows. Unfortunately, I don't have a
formal education in digital electronics and am stumped.
To oversimplify, my design has two inputs: COUNT_UP and RESET_COUNTER. On
the rising edge of COUNT_UP, I increment a counter. On the rising edge of
RESET_COUNTER, I set the counter to zero. The two inputs are completely
asynchronous and have no relationship to each other.
When synthesizing the design, I get an error that my counter is
multi-source. I understand the error and what it means, but not how to solve
it.
I thought I'd use an internal register, RESET_NEEDED, and set that on the
rising edge of RESET_COUNTER, then do the actual clearing of the counter and
resetting RESET_NEEDED on the rising edge of COUNT_UP, but in that case
RESET_NEEDED is now a multi source signal and I'm chasing my tail.
Can anyone point me to the solution to this problem?
Thanks,
-Nevo