diff --git a/b_asic/schedule.py b/b_asic/schedule.py index 6d5a8364ca0f1df40b5e3e9459a97220d187c0ea..ef0a677274edd39ab8698ad5a4fa316865707448 100644 --- a/b_asic/schedule.py +++ b/b_asic/schedule.py @@ -760,12 +760,14 @@ class Schedule: delay_list = self._sfg.find_by_type_name(Delay.type_name()) def _reintroduce_delays(self) -> SFG: - """Reintroduce delay elements to each signal according to the ``_laps`` variable.""" - reconstructed_sfg = self._sfg() + """ + Reintroduce delay elements to each signal according to the ``_laps`` variable. + """ + new_sfg = self._sfg() for signal_id,lap in self._laps.items(): for delays in range(lap): - reconstructed_sfg = reconstructed_sfg.insert_operation_after(signal_id, Delay()) - return reconstructed_sfg() + new_sfg = new_sfg.insert_operation_after(signal_id, Delay()) + return new_sfg() def _schedule_alap(self) -> None: """Schedule the operations using as-late-as-possible scheduling."""