Automatic scheduling with custom IO timesΒΆ

It is possible to specify the IO times and provide those to the scheduling.

from b_asic.core_operations import ConstantMultiplication
from b_asic.fft_operations import R2Butterfly
from b_asic.list_schedulers import HybridScheduler
from b_asic.schedule import Schedule
from b_asic.scheduler import ALAPScheduler, ASAPScheduler
from b_asic.sfg_generators import radix_2_dif_fft

points = 8
sfg = radix_2_dif_fft(points=points)

The SFG is:

auto scheduling with custom io times

Set latencies and execution times.

Generate an ASAP schedule for reference with custom IO times.

input_times = {f"in{i}": i for i in range(points)}
output_delta_times = {f"out{i}": i for i in range(points)}
schedule1 = Schedule(sfg, scheduler=ASAPScheduler(input_times, output_delta_times))
schedule1
auto scheduling with custom io times

Generate an ALAP schedule for reference with custom IO times..

auto scheduling with custom io times

Generate a non-cyclic Schedule from HybridScheduler with custom IO times, one input and output per time unit and one butterfly/multiplication per time unit.

auto scheduling with custom io times

Generate a new Schedule with cyclic scheduling enabled.

auto scheduling with custom io times

Generate a new Schedule with even less scheduling time.

auto scheduling with custom io times

Try scheduling for 12 cycles, which gives full butterfly usage.

auto scheduling with custom io times

Total running time of the script: (0 minutes 1.286 seconds)

Gallery generated by Sphinx-Gallery