u/clbrriin r/FPGA • Recommends
Is it possible to pipeline a single instruction?
In the Nandland video at
[video
there is an example where a long sequence of combinational logic, i.e.
```verilog
o_Data <= ((r0_Data / 3) + 1) * 5;
```
is optimized to run faster by pipelining it to three stages:
```verilog
r1_Data <= r0_Data / 3;
r2_Data <= r1_Data + 1;
o_Data <= r2_Data * 5;
```
I am running into a performance situation where I just have a single addition, along the lines of:
```verilog
input reg 7:0 r0_Data;
output reg 7:0 o_Data;
...
o_Data <= r0_Data + 1;
```
Is it possible to pipeline this kind of code? I have tried to just write
```verilog
r1_Data <= r0_Data + 1;
o_Data <= r1_Data;
```
thinking that may…