I am trying to do some complex, pipelined computations in FPGA that involves storing partial results in block ram and retrieving them later. The problem is, the number of partial results that needs to be stored is very hard to reason about and depends heavily on implementation details. What I want to achieve instead is to divide the circuit into a producer and a consumer, and halt the producer when the system runs out of block ram by stopping its clock, as shown in the ascii drawing below.
input clock |-------| -----------------------------------------------
-------------| ????? | individually controllable clocks in same domain
|-------| -----------------------------------------------
Is this achievable? Thanks