Skip to content

How to set up allowed maximum bus number

Changgang Li edited this page Feb 6, 2021 · 1 revision

To improve bus retrieving performance, the allowed maximum bus number must be set before loading buses. Any buses with bus number greater the allowed maximum bus number CANNOT be imported, and any devices connecting to thoses buses CANNOT be imported.

Default allowed maximum bus number

The default allowed maximum bus number is 1000.

You can get the allowed maximum bus number with codes like:

num_max = simulator.get_allowed_maximum_bus_number()
print(num_max)

Change allowed maximum bus number

If the default allowed maximum bus number is less than the bus number in your case, you can change the allowed maximum bus number with code like:

num_max = 10000
simulator.set_allowed_maximum_bus_number(num_max)