|
|
|
@ -183,6 +183,7 @@ class FaultSet: |
|
|
|
def fault_site_str(circuit: Circuit, tlib: TechLib, fault: int) -> str: |
|
|
|
def fault_site_str(circuit: Circuit, tlib: TechLib, fault: int) -> str: |
|
|
|
site = circuit.lines[fault//2] |
|
|
|
site = circuit.lines[fault//2] |
|
|
|
if site.driver.kind == '__fork__': |
|
|
|
if site.driver.kind == '__fork__': |
|
|
|
|
|
|
|
if site.reader.kind == '__fork__': return f'{site.driver.name}' # edge-case: pass-through connection |
|
|
|
return f'{site.reader.name}/{tlib.pin_name(site.reader.kind, site.reader_pin)}' |
|
|
|
return f'{site.reader.name}/{tlib.pin_name(site.reader.kind, site.reader_pin)}' |
|
|
|
elif site.driver.kind == 'input': |
|
|
|
elif site.driver.kind == 'input': |
|
|
|
return f'{site.driver.name}' |
|
|
|
return f'{site.driver.name}' |
|
|
|
|