private void GenerateSpiceCode(TestBench TestBench_obj) { var circuit = new Spice.Circuit() { name = TestBench_obj.Name }; var siginfo = new Spice.SignalContainer() { name = TestBench_obj.Name, objectToNetId = new Dictionary <CyPhy2SchematicInterpreter.IDs, string>() }; // now traverse the object network with Spice Visitor to build the spice and siginfo object network TestBench_obj.accept(new SpiceVisitor(Traceability, mgaIdToDomainIDs, this) { circuit_obj = circuit, siginfo_obj = siginfo, mode = this.mode }); String spiceTemplateFile = Path.Combine(this.mainParameters.OutputDirectory, "schema.cir.template"); circuit.Serialize(spiceTemplateFile); String siginfoFile = Path.Combine(this.mainParameters.OutputDirectory, "siginfo.json"); siginfo.Serialize(siginfoFile); }
private void GenerateSpiceCode(TestBench TestBench_obj) { var circuit = new Spice.Circuit() { name = TestBench_obj.Name }; var siginfo = new Spice.SignalContainer() { name = TestBench_obj.Name }; // now traverse the object network with Spice Visitor to build the spice and siginfo object network TestBench_obj.accept(new SpiceVisitor() { circuit_obj = circuit, siginfo_obj = siginfo, mode = this.mode }); String spiceFile = Path.Combine(this.mainParameters.OutputDirectory, "schema.cir"); circuit.Serialize(spiceFile); String siginfoFile = Path.Combine(this.mainParameters.OutputDirectory, "siginfo.json"); siginfo.Serialize(siginfoFile); }