HAL
test.py
Go to the documentation of this file.
1 from hal_plugins import boolean_influence
2 
3 # g = netlist.get_gate_by_id(4)
4 # inf = pl.get_boolean_influences_of_gate(g)
5 
6 n = netlist.get_net_by_id(67)
7 inf = boolean_influence.get_boolean_influences_of_subcircuit(netlist.get_gates(), n, 32000)
8 
9 print("Probabilistic: ")
10 for net in inf:
11  print(net.name, inf[net])
12 
13 # n = netlist.get_net_by_id(58)
14 # inf = boolean_influence.get_boolean_influences_of_subcircuit_deterministic(netlist.get_gates(), n)
15 
16 # print("Deterministic: ")
17 # for net in inf:
18 # print(net.name, inf[net])