Added sphinx_build check for simulator import.
The simulator import is unnecessary for the module as far as I can tell,
but I'll leave it for posterity.
@@ -28,6 +28,10 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. '''
"""
A clock class
"""
+import os
+if "SPHINX_BUILD" in os.environ:
+ simulator = None
+else:
import simulator
import cocotb
from cocotb.log import SimLog
