In this post, I want to explain how I estimate the execution time of a hardware architecture.
Let the total time between receiving the input and producing the complete output be . We can express it as:
Here, is the number of clock cycles, and is the clock period. Most people know how to count cycles and try to reduce . However, I think the clock period is often overlooked.
Optimizing cycle count versus clock period
Consider a circuit that receives 500 data samples and needs to output the sum of every consecutive group of 15 samples.
A straightforward implementation uses an adder structure to sum 15 values:

But what if we add a pipeline stage?

The pipelined version adds only one cycle of latency. Since the design already spends many cycles receiving its input data, that extra cycle has very little effect on the total cycle count.
On the other hand, pipelining can shorten the critical path and allow a smaller . As a result, the total execution time can improve considerably, even though the cycle count increases slightly.
The area trade-off
Pipelining is not free. We pay for it in at least two ways:
- We need additional registers.
- Registers split the combinational logic into stages, which may prevent synthesis from sharing or optimizing logic as efficiently for area.
This means the pipelined version is not automatically better when the scoring metric is area × time (AT).
That is why I think timing and area should be considered together during architecture design, rather than optimized independently.
In Estimating Hardware Area Before Synthesis, I will explain how I compare the approximate cost of different hardware components. I will also revisit the importance of the clock period in my 2022 IC Design Contest implementation.