cocotb 1.9.2__cp36-cp36m-win32.whl → 2.0.0b1__cp36-cp36m-win32.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of cocotb might be problematic. Click here for more details.

Files changed (143) hide show
  1. cocotb/{ANSI.py → _ANSI.py} +5 -25
  2. cocotb/__init__.py +76 -332
  3. cocotb/_base_triggers.py +513 -0
  4. cocotb/_bridge.py +187 -0
  5. cocotb/_decorators.py +515 -0
  6. cocotb/_deprecation.py +3 -3
  7. cocotb/_exceptions.py +7 -0
  8. cocotb/_extended_awaitables.py +419 -0
  9. cocotb/_gpi_triggers.py +382 -0
  10. cocotb/_init.py +295 -0
  11. cocotb/_outcomes.py +54 -0
  12. cocotb/_profiling.py +46 -0
  13. cocotb/_py_compat.py +100 -29
  14. cocotb/_scheduler.py +454 -0
  15. cocotb/_test.py +245 -0
  16. cocotb/_test_factory.py +309 -0
  17. cocotb/_test_functions.py +42 -0
  18. cocotb/_typing.py +7 -0
  19. cocotb/_utils.py +296 -0
  20. cocotb/_version.py +3 -7
  21. cocotb/_xunit_reporter.py +66 -0
  22. cocotb/clock.py +271 -108
  23. cocotb/handle.py +1342 -795
  24. cocotb/libs/cocotb.dll +0 -0
  25. cocotb/libs/cocotb.exp +0 -0
  26. cocotb/libs/cocotb.lib +0 -0
  27. cocotb/libs/cocotbfli_modelsim.dll +0 -0
  28. cocotb/libs/cocotbfli_modelsim.exp +0 -0
  29. cocotb/libs/cocotbfli_modelsim.lib +0 -0
  30. cocotb/libs/cocotbutils.dll +0 -0
  31. cocotb/libs/cocotbutils.exp +0 -0
  32. cocotb/libs/cocotbutils.lib +0 -0
  33. cocotb/libs/cocotbvhpi_aldec.dll +0 -0
  34. cocotb/libs/cocotbvhpi_aldec.exp +0 -0
  35. cocotb/libs/cocotbvhpi_aldec.lib +0 -0
  36. cocotb/libs/cocotbvhpi_modelsim.dll +0 -0
  37. cocotb/libs/cocotbvhpi_modelsim.exp +0 -0
  38. cocotb/libs/cocotbvhpi_modelsim.lib +0 -0
  39. cocotb/libs/cocotbvpi_aldec.dll +0 -0
  40. cocotb/libs/cocotbvpi_aldec.exp +0 -0
  41. cocotb/libs/cocotbvpi_aldec.lib +0 -0
  42. cocotb/libs/cocotbvpi_ghdl.dll +0 -0
  43. cocotb/libs/cocotbvpi_ghdl.exp +0 -0
  44. cocotb/libs/cocotbvpi_ghdl.lib +0 -0
  45. cocotb/libs/cocotbvpi_icarus.exp +0 -0
  46. cocotb/libs/cocotbvpi_icarus.lib +0 -0
  47. cocotb/libs/cocotbvpi_icarus.vpl +0 -0
  48. cocotb/libs/cocotbvpi_modelsim.dll +0 -0
  49. cocotb/libs/cocotbvpi_modelsim.exp +0 -0
  50. cocotb/libs/cocotbvpi_modelsim.lib +0 -0
  51. cocotb/libs/embed.dll +0 -0
  52. cocotb/libs/embed.exp +0 -0
  53. cocotb/libs/embed.lib +0 -0
  54. cocotb/libs/gpi.dll +0 -0
  55. cocotb/libs/gpi.exp +0 -0
  56. cocotb/libs/gpi.lib +0 -0
  57. cocotb/libs/gpilog.dll +0 -0
  58. cocotb/libs/gpilog.exp +0 -0
  59. cocotb/libs/gpilog.lib +0 -0
  60. cocotb/libs/pygpilog.dll +0 -0
  61. cocotb/libs/pygpilog.exp +0 -0
  62. cocotb/libs/pygpilog.lib +0 -0
  63. cocotb/{log.py → logging.py} +105 -110
  64. cocotb/queue.py +103 -57
  65. cocotb/regression.py +667 -712
  66. cocotb/result.py +17 -188
  67. cocotb/share/def/modelsim.def +1 -0
  68. cocotb/share/include/cocotb_utils.h +6 -29
  69. cocotb/share/include/embed.h +5 -28
  70. cocotb/share/include/gpi.h +137 -92
  71. cocotb/share/include/gpi_logging.h +221 -142
  72. cocotb/share/include/py_gpi_logging.h +7 -4
  73. cocotb/share/include/vpi_user_ext.h +4 -26
  74. cocotb/share/lib/verilator/verilator.cpp +59 -54
  75. cocotb/simulator.cp36-win32.exp +0 -0
  76. cocotb/simulator.cp36-win32.lib +0 -0
  77. cocotb/simulator.cp36-win32.pyd +0 -0
  78. cocotb/task.py +434 -212
  79. cocotb/triggers.py +55 -1092
  80. cocotb/types/__init__.py +25 -47
  81. cocotb/types/_abstract_array.py +151 -0
  82. cocotb/types/_array.py +264 -0
  83. cocotb/types/_logic.py +296 -0
  84. cocotb/types/_logic_array.py +834 -0
  85. cocotb/types/{range.py → _range.py} +36 -44
  86. cocotb/types/_resolve.py +76 -0
  87. cocotb/utils.py +119 -587
  88. cocotb-2.0.0b1.dist-info/METADATA +48 -0
  89. cocotb-2.0.0b1.dist-info/RECORD +131 -0
  90. cocotb-2.0.0b1.dist-info/entry_points.txt +3 -0
  91. {cocotb-1.9.2.dist-info → cocotb-2.0.0b1.dist-info}/top_level.txt +1 -0
  92. cocotb_tools/_coverage.py +33 -0
  93. cocotb_tools/_vendor/__init__.py +3 -0
  94. cocotb_tools/check_results.py +65 -0
  95. cocotb_tools/combine_results.py +152 -0
  96. cocotb_tools/config.py +241 -0
  97. {cocotb → cocotb_tools}/ipython_support.py +29 -22
  98. cocotb_tools/makefiles/Makefile.deprecations +27 -0
  99. {cocotb/share → cocotb_tools}/makefiles/Makefile.inc +82 -54
  100. {cocotb/share → cocotb_tools}/makefiles/Makefile.sim +8 -33
  101. {cocotb/share → cocotb_tools}/makefiles/simulators/Makefile.activehdl +9 -16
  102. cocotb_tools/makefiles/simulators/Makefile.cvc +61 -0
  103. cocotb_tools/makefiles/simulators/Makefile.dsim +39 -0
  104. {cocotb/share → cocotb_tools}/makefiles/simulators/Makefile.ghdl +13 -42
  105. cocotb_tools/makefiles/simulators/Makefile.icarus +80 -0
  106. cocotb_tools/makefiles/simulators/Makefile.ius +93 -0
  107. cocotb_tools/makefiles/simulators/Makefile.modelsim +9 -0
  108. cocotb_tools/makefiles/simulators/Makefile.nvc +60 -0
  109. cocotb_tools/makefiles/simulators/Makefile.questa +29 -0
  110. cocotb/share/makefiles/simulators/Makefile.questa → cocotb_tools/makefiles/simulators/Makefile.questa-compat +26 -54
  111. cocotb_tools/makefiles/simulators/Makefile.questa-qisqrun +149 -0
  112. {cocotb/share → cocotb_tools}/makefiles/simulators/Makefile.riviera +17 -56
  113. cocotb_tools/makefiles/simulators/Makefile.vcs +65 -0
  114. {cocotb/share → cocotb_tools}/makefiles/simulators/Makefile.verilator +15 -22
  115. {cocotb/share → cocotb_tools}/makefiles/simulators/Makefile.xcelium +20 -52
  116. {cocotb → cocotb_tools}/runner.py +794 -361
  117. cocotb/_sim_versions.py → cocotb_tools/sim_versions.py +16 -21
  118. pygpi/entry.py +34 -17
  119. cocotb/binary.py +0 -858
  120. cocotb/config.py +0 -289
  121. cocotb/decorators.py +0 -332
  122. cocotb/memdebug.py +0 -35
  123. cocotb/outcomes.py +0 -56
  124. cocotb/scheduler.py +0 -1099
  125. cocotb/share/makefiles/Makefile.deprecations +0 -12
  126. cocotb/share/makefiles/simulators/Makefile.cvc +0 -94
  127. cocotb/share/makefiles/simulators/Makefile.icarus +0 -111
  128. cocotb/share/makefiles/simulators/Makefile.ius +0 -125
  129. cocotb/share/makefiles/simulators/Makefile.modelsim +0 -32
  130. cocotb/share/makefiles/simulators/Makefile.nvc +0 -64
  131. cocotb/share/makefiles/simulators/Makefile.vcs +0 -98
  132. cocotb/types/array.py +0 -309
  133. cocotb/types/logic.py +0 -292
  134. cocotb/types/logic_array.py +0 -298
  135. cocotb/wavedrom.py +0 -199
  136. cocotb/xunit_reporter.py +0 -80
  137. cocotb-1.9.2.dist-info/METADATA +0 -170
  138. cocotb-1.9.2.dist-info/RECORD +0 -113
  139. cocotb-1.9.2.dist-info/entry_points.txt +0 -3
  140. {cocotb-1.9.2.dist-info → cocotb-2.0.0b1.dist-info}/LICENSE +0 -0
  141. {cocotb-1.9.2.dist-info → cocotb-2.0.0b1.dist-info}/WHEEL +0 -0
  142. {cocotb/_vendor → cocotb_tools}/__init__.py +0 -0
  143. {cocotb → cocotb_tools}/_vendor/distutils_version.py +0 -0
cocotb/outcomes.py DELETED
@@ -1,56 +0,0 @@
1
- """
2
- Inspired by https://github.com/python-trio/outcome
3
-
4
- An outcome is similar to the builtin `concurrent.futures.Future`
5
- or `asyncio.Future`, but without being tied to a particular task model.
6
- """
7
- import abc
8
-
9
- from cocotb.utils import remove_traceback_frames
10
-
11
-
12
- def capture(fn, *args, **kwargs):
13
- """Obtain an `Outcome` representing the result of a function call"""
14
- try:
15
- return Value(fn(*args, **kwargs))
16
- except BaseException as e:
17
- e = remove_traceback_frames(e, ["capture"])
18
- return Error(e)
19
-
20
-
21
- class Outcome(metaclass=abc.ABCMeta):
22
- @abc.abstractmethod
23
- def send(self, gen):
24
- """Send or throw this outcome into a generator"""
25
-
26
- @abc.abstractmethod
27
- def get(self, gen):
28
- """Get the value of this outcome, or throw its exception"""
29
-
30
-
31
- class Value(Outcome):
32
- def __init__(self, value):
33
- self.value = value
34
-
35
- def send(self, gen):
36
- return gen.send(self.value)
37
-
38
- def get(self):
39
- return self.value
40
-
41
- def __repr__(self):
42
- return f"Value({self.value!r})"
43
-
44
-
45
- class Error(Outcome):
46
- def __init__(self, error):
47
- self.error = error
48
-
49
- def send(self, gen):
50
- return gen.throw(self.error)
51
-
52
- def get(self):
53
- raise self.error
54
-
55
- def __repr__(self):
56
- return f"Error({self.error!r})"