MCPcopy Create free account
hub / github.com/KLayout/klayout / create_device

Method create_device

src/db/db/dbNetlistDeviceExtractor.cc:508–518  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

506}
507
508Device *NetlistDeviceExtractor::create_device ()
509{
510 if (mp_device_class.get () == 0) {
511 throw tl::Exception (tl::to_string (tr ("No device class registered")));
512 }
513
514 tl_assert (mp_circuit != 0);
515 Device *device = new Device (mp_device_class.get ());
516 mp_circuit->add_device (device);
517 return device;
518}
519
520void NetlistDeviceExtractor::define_terminal (Device *device, size_t terminal_id, size_t geometry_index, const db::Region &region)
521{

Callers 14

elementMethod · 0.80
test_1_BasicMethod · 0.80
test_4_DeviceMethod · 0.80
test_1_ResistorsMethod · 0.80
test_2_CapacitorsMethod · 0.80
test_3_InductorsMethod · 0.80
test_4_DiodesMethod · 0.80
test_5_MOS3Method · 0.80
test_6_MOS4Method · 0.80

Calls 5

to_stringFunction · 0.70
ExceptionFunction · 0.50
trFunction · 0.50
getMethod · 0.45
add_deviceMethod · 0.45

Tested by 14

elementMethod · 0.64
test_1_BasicMethod · 0.64
test_4_DeviceMethod · 0.64
test_1_ResistorsMethod · 0.64
test_2_CapacitorsMethod · 0.64
test_3_InductorsMethod · 0.64
test_4_DiodesMethod · 0.64
test_5_MOS3Method · 0.64
test_6_MOS4Method · 0.64