| 506 | } |
| 507 | |
| 508 | Device *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 | |
| 520 | void NetlistDeviceExtractor::define_terminal (Device *device, size_t terminal_id, size_t geometry_index, const db::Region ®ion) |
| 521 | { |