modify the simulation's setting

main
ColsonZhang 2021-04-01 14:52:23 +08:00
parent cbf81107e7
commit ef058e2770
1 changed files with 5 additions and 2 deletions

View File

@ -11,7 +11,8 @@ import PySpice.Logging.Logging as Logging
logger = Logging.setup_logging() logger = Logging.setup_logging()
#----调用模型库---- #----调用模型库----
libraries_path = 'D:\\Project_2020\\SPICE\\Pyspice\\libraries' # libraries_path = 'D:\\Project_2020\\SPICE\\Pyspice\\libraries'
libraries_path = '/root/workspace/libraries'
#libraries_path = find_libraries() #libraries_path = find_libraries()
spice_library = SpiceLibrary(libraries_path) spice_library = SpiceLibrary(libraries_path)
@ -24,7 +25,9 @@ class Simulator_CZ :
def Get_Spice(self, spice ): def Get_Spice(self, spice ):
the_circuit = ".include D:\\Project_2020\\SPICE\\PySpice\\libraries\cmos\\180nm_cmos.mod \n" # the_circuit = ".include D:\\Project_2020\\SPICE\\PySpice\\libraries\cmos\\180nm_cmos.mod \n"
the_circuit = ".include /root/workspace/libraries/cmos/180nm_cmos.mod \n"
the_circuit += spice the_circuit += spice
self.circuit.raw_spice = the_circuit self.circuit.raw_spice = the_circuit