public static void setup() { var inst0 = new instr0(); var repa1l1 = new repeater(); var a1 = Scope.CreateBus <tdata>(); repa1l1.input = a1; inst0.a1l0 = a1; var a0l1 = Scope.CreateBus <tdata>(); inst0.a0l1 = a0l1; var a0 = a0l1; //Simulation for reduction var creater = new Creater(); var printer = new Printer(); var sink = new Sink(); creater.a1 = a1; printer.a3 = a0l1; repa1l1.output = Scope.CreateBus <tdata>(); sink.input = repa1l1.output; //Connect a1 to all l0 channels Simulation.Current.AddTopLevelInputs(a1); //Connect a0 to the highest level channels with the corresponding name Simulation.Current.AddTopLevelOutputs(a0); }
public static void setup() { var instr0 = new instr0(); var a1l1 = Scope.CreateBus <tdata>(); instr0.a1l1 = a1l1; var instr1 = new instr1(); var a0l2 = Scope.CreateBus <tdata>(); instr1.a0l2 = a0l2; var repeater = new repeater(); var output = Scope.CreateBus <tdata>(); repeater.output = output; instr0.a2l0 = a2l0; instr0.a3l0 = a3l0; instr1.a1l1 = a1l1; repeater.input = input; //Connect a2 to all l0 channels Simulation.Current.AddTopLevelInputs(a2); //Connect a0 to the highest level channels with the corresponding name Simulation.Current.AddTopLevelOutputs(a0); }