cocotb 1.9.2__cp36-cp36m-win_amd64.whl → 2.0.0b1__cp36-cp36m-win_amd64.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 (151) 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/aldec.exp +0 -0
  68. cocotb/share/def/aldec.lib +0 -0
  69. cocotb/share/def/ghdl.exp +0 -0
  70. cocotb/share/def/ghdl.lib +0 -0
  71. cocotb/share/def/icarus.exp +0 -0
  72. cocotb/share/def/icarus.lib +0 -0
  73. cocotb/share/def/modelsim.def +1 -0
  74. cocotb/share/def/modelsim.exp +0 -0
  75. cocotb/share/def/modelsim.lib +0 -0
  76. cocotb/share/include/cocotb_utils.h +6 -29
  77. cocotb/share/include/embed.h +5 -28
  78. cocotb/share/include/gpi.h +137 -92
  79. cocotb/share/include/gpi_logging.h +221 -142
  80. cocotb/share/include/py_gpi_logging.h +7 -4
  81. cocotb/share/include/vpi_user_ext.h +4 -26
  82. cocotb/share/lib/verilator/verilator.cpp +59 -54
  83. cocotb/simulator.cp36-win_amd64.exp +0 -0
  84. cocotb/simulator.cp36-win_amd64.lib +0 -0
  85. cocotb/simulator.cp36-win_amd64.pyd +0 -0
  86. cocotb/task.py +434 -212
  87. cocotb/triggers.py +55 -1092
  88. cocotb/types/__init__.py +25 -47
  89. cocotb/types/_abstract_array.py +151 -0
  90. cocotb/types/_array.py +264 -0
  91. cocotb/types/_logic.py +296 -0
  92. cocotb/types/_logic_array.py +834 -0
  93. cocotb/types/{range.py → _range.py} +36 -44
  94. cocotb/types/_resolve.py +76 -0
  95. cocotb/utils.py +119 -587
  96. cocotb-2.0.0b1.dist-info/METADATA +48 -0
  97. cocotb-2.0.0b1.dist-info/RECORD +139 -0
  98. cocotb-2.0.0b1.dist-info/entry_points.txt +3 -0
  99. {cocotb-1.9.2.dist-info → cocotb-2.0.0b1.dist-info}/top_level.txt +1 -0
  100. cocotb_tools/_coverage.py +33 -0
  101. cocotb_tools/_vendor/__init__.py +3 -0
  102. cocotb_tools/check_results.py +65 -0
  103. cocotb_tools/combine_results.py +152 -0
  104. cocotb_tools/config.py +241 -0
  105. {cocotb → cocotb_tools}/ipython_support.py +29 -22
  106. cocotb_tools/makefiles/Makefile.deprecations +27 -0
  107. {cocotb/share → cocotb_tools}/makefiles/Makefile.inc +82 -54
  108. {cocotb/share → cocotb_tools}/makefiles/Makefile.sim +8 -33
  109. {cocotb/share → cocotb_tools}/makefiles/simulators/Makefile.activehdl +9 -16
  110. cocotb_tools/makefiles/simulators/Makefile.cvc +61 -0
  111. cocotb_tools/makefiles/simulators/Makefile.dsim +39 -0
  112. {cocotb/share → cocotb_tools}/makefiles/simulators/Makefile.ghdl +13 -42
  113. cocotb_tools/makefiles/simulators/Makefile.icarus +80 -0
  114. cocotb_tools/makefiles/simulators/Makefile.ius +93 -0
  115. cocotb_tools/makefiles/simulators/Makefile.modelsim +9 -0
  116. cocotb_tools/makefiles/simulators/Makefile.nvc +60 -0
  117. cocotb_tools/makefiles/simulators/Makefile.questa +29 -0
  118. cocotb/share/makefiles/simulators/Makefile.questa → cocotb_tools/makefiles/simulators/Makefile.questa-compat +26 -54
  119. cocotb_tools/makefiles/simulators/Makefile.questa-qisqrun +149 -0
  120. {cocotb/share → cocotb_tools}/makefiles/simulators/Makefile.riviera +17 -56
  121. cocotb_tools/makefiles/simulators/Makefile.vcs +65 -0
  122. {cocotb/share → cocotb_tools}/makefiles/simulators/Makefile.verilator +15 -22
  123. {cocotb/share → cocotb_tools}/makefiles/simulators/Makefile.xcelium +20 -52
  124. {cocotb → cocotb_tools}/runner.py +794 -361
  125. cocotb/_sim_versions.py → cocotb_tools/sim_versions.py +16 -21
  126. pygpi/entry.py +34 -17
  127. cocotb/binary.py +0 -858
  128. cocotb/config.py +0 -289
  129. cocotb/decorators.py +0 -332
  130. cocotb/memdebug.py +0 -35
  131. cocotb/outcomes.py +0 -56
  132. cocotb/scheduler.py +0 -1099
  133. cocotb/share/makefiles/Makefile.deprecations +0 -12
  134. cocotb/share/makefiles/simulators/Makefile.cvc +0 -94
  135. cocotb/share/makefiles/simulators/Makefile.icarus +0 -111
  136. cocotb/share/makefiles/simulators/Makefile.ius +0 -125
  137. cocotb/share/makefiles/simulators/Makefile.modelsim +0 -32
  138. cocotb/share/makefiles/simulators/Makefile.nvc +0 -64
  139. cocotb/share/makefiles/simulators/Makefile.vcs +0 -98
  140. cocotb/types/array.py +0 -309
  141. cocotb/types/logic.py +0 -292
  142. cocotb/types/logic_array.py +0 -298
  143. cocotb/wavedrom.py +0 -199
  144. cocotb/xunit_reporter.py +0 -80
  145. cocotb-1.9.2.dist-info/METADATA +0 -170
  146. cocotb-1.9.2.dist-info/RECORD +0 -121
  147. cocotb-1.9.2.dist-info/entry_points.txt +0 -3
  148. {cocotb-1.9.2.dist-info → cocotb-2.0.0b1.dist-info}/LICENSE +0 -0
  149. {cocotb-1.9.2.dist-info → cocotb-2.0.0b1.dist-info}/WHEEL +0 -0
  150. {cocotb/_vendor → cocotb_tools}/__init__.py +0 -0
  151. {cocotb → cocotb_tools}/_vendor/distutils_version.py +0 -0
@@ -0,0 +1,48 @@
1
+ Metadata-Version: 2.1
2
+ Name: cocotb
3
+ Version: 2.0.0b1
4
+ Summary: cocotb is a coroutine based cosimulation library for writing VHDL and Verilog testbenches in Python.
5
+ Home-page: https://www.cocotb.org
6
+ Author: Chris Higgs, Stuart Hodgson
7
+ Maintainer: cocotb contributors
8
+ Maintainer-email: cocotb@lists.librecores.org
9
+ License: BSD-3-Clause
10
+ Project-URL: Bug Tracker, https://github.com/cocotb/cocotb/issues
11
+ Project-URL: Source Code, https://github.com/cocotb/cocotb
12
+ Project-URL: Documentation, https://docs.cocotb.org
13
+ Platform: any
14
+ Classifier: Programming Language :: Python :: 3
15
+ Classifier: Programming Language :: Python :: 3.6
16
+ Classifier: Programming Language :: Python :: 3.7
17
+ Classifier: Programming Language :: Python :: 3.8
18
+ Classifier: Programming Language :: Python :: 3.9
19
+ Classifier: Programming Language :: Python :: 3.10
20
+ Classifier: Programming Language :: Python :: 3.11
21
+ Classifier: Programming Language :: Python :: 3.12
22
+ Classifier: Programming Language :: Python :: 3.13
23
+ Classifier: Topic :: Scientific/Engineering :: Electronic Design Automation (EDA)
24
+ Classifier: Framework :: cocotb
25
+ Requires-Python: >=3.6.2
26
+ Description-Content-Type: text/markdown
27
+ License-File: LICENSE
28
+ Requires-Dist: find-libpython
29
+
30
+ **cocotb** is a framework empowering users to write VHDL and Verilog testbenches in Python.
31
+
32
+ [![Documentation Status](https://readthedocs.org/projects/cocotb/badge/?version=development)](https://docs.cocotb.org/en/stable/)
33
+ [![CI](https://github.com/cocotb/cocotb/actions/workflows/build-test-dev.yml/badge.svg?branch=master)](https://github.com/cocotb/cocotb/actions/workflows/build-test-dev.yml)
34
+ [![PyPI](https://img.shields.io/pypi/dm/cocotb.svg?label=PyPI%20downloads)](https://pypi.org/project/cocotb/)
35
+ [![Gitpod Ready-to-Code](https://img.shields.io/badge/Gitpod-ready--to--code-blue?logo=gitpod)](https://gitpod.io/#https://github.com/cocotb/cocotb)
36
+ [![codecov](https://codecov.io/gh/cocotb/cocotb/branch/master/graph/badge.svg)](https://codecov.io/gh/cocotb/cocotb)
37
+
38
+ * Check out the [tutorial](https://docs.cocotb.org/en/stable/quickstart.html)
39
+ * Read the [docs](https://docs.cocotb.org/en/stable/)
40
+ * Find more info in the [wiki](https://github.com/cocotb/cocotb/wiki)
41
+ * Discover [useful extensions](https://github.com/cocotb/cocotb/wiki/Further-Resources#utility-libraries-and-frameworks)
42
+ * Join the discussion in the [Gitter chat room](https://gitter.im/cocotb/Lobby)
43
+ * [Ask a question](https://github.com/cocotb/cocotb/discussions)
44
+ * [Raise a bug / request an enhancement](https://github.com/cocotb/cocotb/issues/new)
45
+
46
+ **Note: The current `master` branch of the cocotb repository is expected to be released as cocotb 2.0, which contains API-breaking changes from previous 1.x releases.**
47
+
48
+
@@ -0,0 +1,139 @@
1
+ cocotb/_ANSI.py,sha256=PvJYPrQzMSIFnC4ZKfEaHnWogrMjDkS5BwKPqIT0Rt8,2017
2
+ cocotb/__init__.py,sha256=7Qfo07pLI2Vjfog3OIgGm8pRGhbDnhSiy5lBQvZpjuE,3053
3
+ cocotb/_base_triggers.py,sha256=dQwG_jUY0QFP1bnzNKWjzRvY2vceSK33fWCfMyj73YM,15986
4
+ cocotb/_bridge.py,sha256=juvD7A4gwaGIn-FeqF5cawuLq47Dn0-3s7Y68AWkltE,6296
5
+ cocotb/_decorators.py,sha256=uBpX4LSj9zeIU7s3dWpQW92CJF94eNnZjKeoTZJLzc0,17916
6
+ cocotb/_deprecation.py,sha256=wgNE4GMapfvCzf4m6_dXg2FsOUGQnjpUU8erc5chRlo,1264
7
+ cocotb/_exceptions.py,sha256=FdlfgAG7yBT9l7mfhS_223fWtWei--3vMay1vsLhiOM,257
8
+ cocotb/_extended_awaitables.py,sha256=OVbhgx_RGE0mnl-2wyy5HjZ1bLNkJjd25SFfRP6IT94,13897
9
+ cocotb/_gpi_triggers.py,sha256=WnMG1rynfqsTiFcSy2jZGlER2WrWpCeY1obmAfmA8V4,13522
10
+ cocotb/_init.py,sha256=slvzktZG_yzV1eGacCuPsPf41qwNH4Cm4Gzkwy4UtkQ,10513
11
+ cocotb/_outcomes.py,sha256=r_PRvT2Yg3RQLwaFjOkCxo1G3h_DqPMljHc_eSe6cmo,1365
12
+ cocotb/_profiling.py,sha256=yk5aBDIVTIn6bxvW5a_EKpPwIt-dFU9ti7JbvBhOyuU,1152
13
+ cocotb/_py_compat.py,sha256=C_dkYXReswez2fk-rMUO7jDDW_gXcBAxictlwKuYm5k,3590
14
+ cocotb/_scheduler.py,sha256=oa0JhuYz2ZzMBNH1SiI8DTJHizJhYY1npqfkRzGpzl8,20368
15
+ cocotb/_test.py,sha256=em0geRUt_PxGU4VCooXORMXKof6fLyvOtVhcoGbyFHw,8343
16
+ cocotb/_test_factory.py,sha256=kAuyB9Ye41SxeaUnp9naIgYrW2kxXPPZV2WG-zli7FA,11882
17
+ cocotb/_test_functions.py,sha256=nAef7y_MSGnHPL9NWnGay0WNwhknDWq5v03W0dS1xJs,1164
18
+ cocotb/_typing.py,sha256=2VQIYOlzZR8F5bmi7WK_j_NdNl_Kl7g0DM_XpQo6zrY,337
19
+ cocotb/_utils.py,sha256=EXX861K87J_Jk4pnJEhmlTazd8pOiA-vTmFRYBcyLIs,9194
20
+ cocotb/_version.py,sha256=5CNQAu1nCp0CUgqcu33hgozmS4PCEHIkimHy0PR9D3Q,97
21
+ cocotb/_xunit_reporter.py,sha256=1Su41GFrI55Tz9GSuXQHpFjao8F_RVGTbNsTnEYa4BU,2516
22
+ cocotb/clock.py,sha256=sF_vishhVxF1DUvbGf1wcuKLuxvieveGA0ODfkgUuok,11262
23
+ cocotb/handle.py,sha256=vFfEMwUVSlWBdrenEQd0MC5atS4U65HTYhKrrffRq5U,61460
24
+ cocotb/logging.py,sha256=VO0AXFE1XgRl5wxEZx3F4GNzqsDgAtYrA90uZK9StCk,9817
25
+ cocotb/queue.py,sha256=i9jYA5r3ihpVF8LmZd-O7s7MMtOvJoZeNm5NzF6Ln8o,6698
26
+ cocotb/regression.py,sha256=NH6QjPBoveYxcVOq98bTXZbW-eBRcEtivv7zTLXtatU,29644
27
+ cocotb/result.py,sha256=-Np4hFX9qMJsZ8KtTAfMWOpBim_funkViV0oRc0xo3I,1203
28
+ cocotb/simulator.cp36-win_amd64.exp,sha256=_nhGZ8BQXKomSh4HV6Se_NiKZTrCzN55ur2aEo6QpVw,748
29
+ cocotb/simulator.cp36-win_amd64.lib,sha256=hc1KSuyqU6qYKNzUoGvx70IBCrMlEyDxZ7th2o0WjnE,2036
30
+ cocotb/simulator.cp36-win_amd64.pyd,sha256=tkk7B8Yte_imk7mznFOaCwU-KhqBhf6kftwkZ5AiYaM,43520
31
+ cocotb/simulator.cp36-win_amd64.pyd.2.config,sha256=JGoavZmGw71REMRGu8DrBlQezZSCkQx7E3GOzGIf9_o,263
32
+ cocotb/task.py,sha256=OoWkVKozlbJYO4u02i30InCh_ToJAxmbePzec01-1ZU,19732
33
+ cocotb/triggers.py,sha256=_AnYLLtlcwliRvqXu3qKmlSGgu-yercYwpOFZfrZd4w,1450
34
+ cocotb/utils.py,sha256=K45_k52Y8SMkXzBqH00q7glmjhkDvkCPltViQX6yo0U,7326
35
+ cocotb/libs/cocotb.dll,sha256=OnuxavhIpjLlVVu8MkFvJ5OW0D7J8KZkIq69OFMxuRc,21504
36
+ cocotb/libs/cocotb.exp,sha256=UwXJ5P0k1MAEnPBCL2UZcfSPKL-ylVhhqRJQvnCAg9M,1101
37
+ cocotb/libs/cocotb.lib,sha256=n6mDDx0Ji9TxvAnp47-4w-7qiJqvV-dkTPw0DSeOfUw,2358
38
+ cocotb/libs/cocotbfli_modelsim.dll,sha256=zlVVGwTfHPfjrrV4sPZlYoxwndmXjqHPqhfjYD9Ym1A,109568
39
+ cocotb/libs/cocotbfli_modelsim.exp,sha256=IucoTv3pL-l-Z56owrHjh9vutitC9YOM1UXwJS6OtkI,867
40
+ cocotb/libs/cocotbfli_modelsim.lib,sha256=SVq4Gs-HMgWkXrzUhnWQqAHCHXSRSqav3lOGVXhHrRw,2176
41
+ cocotb/libs/cocotbutils.dll,sha256=Mnl-TNAbMCvrYVm90eBgPmOQ8RTrgO66DB2sSpoAUQM,12288
42
+ cocotb/libs/cocotbutils.exp,sha256=46AZCMZl5waaXg10gOjtnMB9YG0ODTYuGXQKL90HgcA,966
43
+ cocotb/libs/cocotbutils.lib,sha256=_W_3R6N3t7dds_kk6JT7Ce8Bf1iijDtAm1UFF6D21QE,2146
44
+ cocotb/libs/cocotbvhpi_aldec.dll,sha256=V6E7z6JTKgP9_EDYWRc_J_U7G73ciO5lH8eYyraxi_0,109056
45
+ cocotb/libs/cocotbvhpi_aldec.exp,sha256=gnfdqF_fzUjQbCFG3LPeO7J3k5NTmBZo4JgMCrBHzhw,1065
46
+ cocotb/libs/cocotbvhpi_aldec.lib,sha256=ywrPv7hAbor3X5QSdLm4tF5Ndx3nq8FPDNfdOPq1xsk,2442
47
+ cocotb/libs/cocotbvhpi_modelsim.dll,sha256=fZQVV1FCulgO6XE_gTjxwzvF9XXBEXGoqt8_ygByGfQ,109568
48
+ cocotb/libs/cocotbvhpi_modelsim.exp,sha256=Tdn5DFg8pcPt2Wwgq7al-MQ7zyr2e1jzi_UKPPkawnE,1072
49
+ cocotb/libs/cocotbvhpi_modelsim.lib,sha256=c7vtFRnhn5fgb69saQdabsx7IIw0USgEHLk3pwBIWLg,2484
50
+ cocotb/libs/cocotbvpi_aldec.dll,sha256=4buwiPhF0BuLLZ_OTmTbG9P591-mhLjNxLDgO1TxqdM,94208
51
+ cocotb/libs/cocotbvpi_aldec.exp,sha256=yNQUT-atT381H_eS5qtrGIBfKXxNPM3SG8iyoLfn2Ro,1060
52
+ cocotb/libs/cocotbvpi_aldec.lib,sha256=8sj0-o8lmLikYD7itQe-WF-fTuwF430c4LM5qrUa7jA,2418
53
+ cocotb/libs/cocotbvpi_ghdl.dll,sha256=5sCEoBVtZwx_3FgPvSGUGMUPGHxYMG4MSbWgzsTJJC8,94208
54
+ cocotb/libs/cocotbvpi_ghdl.exp,sha256=ql1e6TMaXLdJXgoIu5LXM3aOtiHeBdIGS21aCZVqA94,1059
55
+ cocotb/libs/cocotbvpi_ghdl.lib,sha256=fZ2Q2NV_cektga4tpmhoe3Wlz3URrSdVsHU8gl29Tss,2408
56
+ cocotb/libs/cocotbvpi_icarus.exp,sha256=iy4wmAPOLALDwAveIawkz2NuKEF6nTBOBDJDFalHBkw,1063
57
+ cocotb/libs/cocotbvpi_icarus.lib,sha256=waDOGirobZMGsxJBY5HDS_qQ1u42q1jFcT1IepEbpIw,2438
58
+ cocotb/libs/cocotbvpi_icarus.vpl,sha256=LuYb2PRlhYvJKOTPz0stjJthy0z09m5IURyZWCZepoY,94208
59
+ cocotb/libs/cocotbvpi_modelsim.dll,sha256=kIC9kDojbG4Plz20Md2Q205wOzpdOwRhfPPIAupzrIw,94720
60
+ cocotb/libs/cocotbvpi_modelsim.exp,sha256=aGm247BamNlTkbNo0KBIFISG-8UDdZBpoP0P9Z0lxfM,1067
61
+ cocotb/libs/cocotbvpi_modelsim.lib,sha256=50qvi8lk0AfFFHExRkjPrHr-0dzG3nnVOK1POiDXG_A,2468
62
+ cocotb/libs/embed.dll,sha256=lXi12tFv5aOEQn1sxtnaoLtKcNK3MCI1EatBOBnmMUk,12288
63
+ cocotb/libs/embed.exp,sha256=7f2W785TuNp-1nTPpMpmdhWS9p_mhyyXOzwI7dKDOYY,1088
64
+ cocotb/libs/embed.lib,sha256=0ioxQYatt1FCp5YQmADCev_3CQnh6jGn-cCsZW1Aq_U,2322
65
+ cocotb/libs/gpi.dll,sha256=qvcOL2ATDsPruUROHYSikS6twxpK70_eouf3Gc-9Nik,61952
66
+ cocotb/libs/gpi.exp,sha256=IoYyN2BAwUhMwcK0OdkL55PbSLiZwlB_XBs7ZE4KwxE,18639
67
+ cocotb/libs/gpi.lib,sha256=5d8As9BLtguuFU5aKKx_Ff68Fggv28B2t6NLbMho8cw,30614
68
+ cocotb/libs/gpilog.dll,sha256=lbbziGBnblhKM_cLBz-a9gsAcdOaP-xATEih0MGhKnM,19456
69
+ cocotb/libs/gpilog.exp,sha256=ifl9yLd9P3v0eFDGuNTiaoWwtmGG5z80iYlpZy9ytvw,2188
70
+ cocotb/libs/gpilog.lib,sha256=dL3RdFlh8l_1wUKuIoGaJFSXoGiDQZUaHeSGDQQaiyA,4156
71
+ cocotb/libs/pygpilog.dll,sha256=DjO-OqsuRb7UjpDRTdOnPU2LKDfWJu2Hcu7nlz3MACI,22528
72
+ cocotb/libs/pygpilog.exp,sha256=AVJ4hkhl6dOumV1wCYg7buyWWy73L0e5fooXU9kSUrg,980
73
+ cocotb/libs/pygpilog.lib,sha256=js3bTJ8X-o1q0TcAIhgkAcHa6LKM2qSc6aNofACVmAI,2174
74
+ cocotb/share/def/.gitignore,sha256=JYPaHghbqtLFl-9QtOWaAHvoDOhVxEewSYwHgoYYgf8,46
75
+ cocotb/share/def/README.md,sha256=dptv3zHQGzMqLt3Zv4XOd5IZeGqQS7Lwcq1XCs3BcR0,380
76
+ cocotb/share/def/aldec.def,sha256=ItgxVlRaVuD20jGTN3JpkbHEO8jPfU5XjFlUqDUXzlU,991
77
+ cocotb/share/def/aldec.exp,sha256=kw3GAVZGRAMsEXd2A66SdhF76XbHP1Hc0SBaFvBsc-s,7946
78
+ cocotb/share/def/aldec.lib,sha256=wAhgco62d_mezBzSLQCY1CE13HfnYpSyf65YqVBL0K4,13498
79
+ cocotb/share/def/ghdl.def,sha256=ETQh5VI72dWSJi_ig5m163GfLrxScYUamt5BjHjoKsY,705
80
+ cocotb/share/def/ghdl.exp,sha256=NUWX9UEc8NNsY6-6V7FwKwuMOPDPWIgHvl6iv8ND6_I,5771
81
+ cocotb/share/def/ghdl.lib,sha256=O-H3w7L_CVnAmX3hNva-mxuPJPimYWsKqG6NUZri5Ns,9974
82
+ cocotb/share/def/icarus.def,sha256=VRqkgUyzR2sa916Ra56cZVIb4kzbqDlJVWIOc3389qY,698
83
+ cocotb/share/def/icarus.exp,sha256=pizhxUlFVrDHhY6rv_0ptK_HMZIOUlCrx1yjJcKx4a0,5761
84
+ cocotb/share/def/icarus.lib,sha256=1wvFgnkUaIuA9jF2h_Cpd2e0LQm90RjhJPMj1ObkjXI,9612
85
+ cocotb/share/def/modelsim.def,sha256=HncvdEzVllbzFR21Nqcbsr-oXMWIfx3YsVi-RK4sbpk,2402
86
+ cocotb/share/def/modelsim.exp,sha256=-sU7qtsxR8OOakwnJx-kmquTPa-p7aymIObJLSTY3mU,17032
87
+ cocotb/share/def/modelsim.lib,sha256=xxiqXp8yEeOqYwPebB6eiHCeanNwt3TReILhBs6HyPw,28378
88
+ cocotb/share/include/cocotb_utils.h,sha256=vmdd8RbtYRFayw13e43G21xCmtIfMXViv2Rlx5NGUTo,2477
89
+ cocotb/share/include/embed.h,sha256=zSY6XUUZbIzYH6m5i15ejot6utpsq5I2QMU_LYhbsag,894
90
+ cocotb/share/include/exports.h,sha256=RRDg9diMCUUJxdzKX0B6TGmQBNttcoVMBVCCLUUKsrA,677
91
+ cocotb/share/include/gpi.h,sha256=qLnSMOzPyR_TH_ByUY9fhacbiPKI9aLpdhL9-gR-eDw,9782
92
+ cocotb/share/include/gpi_logging.h,sha256=sBgvpiYjJfrFIKKLGh8oVMBHGGNz93rIILjA9N6VheQ,13560
93
+ cocotb/share/include/py_gpi_logging.h,sha256=kWhJemucpl6iADC63_r6HGqp3sUEZX2DD_IjO6KdLiA,722
94
+ cocotb/share/include/vhpi_user_ext.h,sha256=VLXbA-oeO83mL1vR0e4Ye0zMe5ijIaXnvT2FRFgsYDY,654
95
+ cocotb/share/include/vpi_user_ext.h,sha256=uJd-wKgKyVpoBVgagiPjND0WjciUNZaoqSa9Js_3UhU,970
96
+ cocotb/share/lib/verilator/verilator.cpp,sha256=tTTk-Fz_3r9ihrGjYCSZ0uSuwcxwsqXwhEQXvEc6kvA,6027
97
+ cocotb/types/__init__.py,sha256=fN-CRmQjQhoedzS_t3sW8Nt0q7vWRlIz04bmGh6nnU0,862
98
+ cocotb/types/_abstract_array.py,sha256=mP94zSDRKHxsZTb5nUAHEYjp43Klx-8RT3DS5r1Vm_4,4059
99
+ cocotb/types/_array.py,sha256=7Yh3-lJEEyfgbZDd8jI-akAed4y2BmDofit3O_G52ps,9975
100
+ cocotb/types/_logic.py,sha256=7mCSrgSrNxxe3oMMdyAAiodk-ujyZjIQpNGWQ8BacMI,10294
101
+ cocotb/types/_logic_array.py,sha256=AvFbRYFMxjZfdJrulFwWVbSY7_gjDdMoDc_CZVP6jgk,32266
102
+ cocotb/types/_range.py,sha256=Hed-cC9dZRHJgX9c-P3KWvGss-jyGMmot81ha0nyaZs,6170
103
+ cocotb/types/_resolve.py,sha256=bdxyDw1ViQbtjTalszemARE4s8-KQgJmvGhNrFYd448,2129
104
+ cocotb_tools/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
105
+ cocotb_tools/_coverage.py,sha256=cZBUbdVed99jcBA60t0U4XcLfq_8rkJVvk5Bdqlqhns,1265
106
+ cocotb_tools/check_results.py,sha256=nnn7k2jTTvDOzRmZ5Lk2fBbKvq_vEBw204FG61Rd-bw,1769
107
+ cocotb_tools/combine_results.py,sha256=_1vi7bglTlnWpsLr4IRrN779GpWN3wQDBXGLpicPbHE,5290
108
+ cocotb_tools/config.py,sha256=S86lbErlO3wsMCL34X1AZ-iLSypaLexcXwyJNLjeUDg,7924
109
+ cocotb_tools/ipython_support.py,sha256=xjEOUgRbP9vHgMDy53eA0rBbGzb4v7O-aT0_6TwKHmM,3444
110
+ cocotb_tools/runner.py,sha256=iyN0TJIE9cOw30FrwKsfWN2kOrEBTmd6rtzokDchy9M,69189
111
+ cocotb_tools/sim_versions.py,sha256=KwXJ93B2hARVtTwShQjdvcytNcMWle43FJ5sgtqfXyA,4007
112
+ cocotb_tools/_vendor/__init__.py,sha256=-fGisWAvaqm1aSSA9GAUNT44xDHmASVhSo1Lg46OB6I,142
113
+ cocotb_tools/_vendor/distutils_version.py,sha256=k4Zipnnw88hyoE5MLBbgcXh9iu7iYGK3K5s97wVpOFE,13185
114
+ cocotb_tools/makefiles/Makefile.deprecations,sha256=HbmEQOwkp8XiWO_-Q43KnkqGbFxmlx_aIs4DoYIls6A,886
115
+ cocotb_tools/makefiles/Makefile.inc,sha256=08dSS4N467Xcwu9rlie2qsSBn4BwIEuj9QOLuHDggOk,5677
116
+ cocotb_tools/makefiles/Makefile.sim,sha256=5AtfiB08_BPs2qn5kHJ_kILE6eyjcTq_w2V57xsstUU,3763
117
+ cocotb_tools/makefiles/simulators/Makefile.activehdl,sha256=u2_EuY-c6OH4_h9aw1TCUH04GyH9EblduUy1-xAKqSs,3068
118
+ cocotb_tools/makefiles/simulators/Makefile.cvc,sha256=B6LadqK-NUhhnh2bI3bt6zueKcmR5DFQZ7wAobpnpck,2968
119
+ cocotb_tools/makefiles/simulators/Makefile.dsim,sha256=iNwQ_9JlV8z7TaN6-mllA_PBjH4h-xltoNDBQodofg4,1519
120
+ cocotb_tools/makefiles/simulators/Makefile.ghdl,sha256=FIIOlC-4R0KNi_Xtj4gu71Blxs87VcGlmdxT0UGnHAU,3452
121
+ cocotb_tools/makefiles/simulators/Makefile.icarus,sha256=joxeAbIkzDVNCjlyHKnXMHWmyi25CitsIgeVXN0AsDo,3208
122
+ cocotb_tools/makefiles/simulators/Makefile.ius,sha256=koC6rhvuO5Lf2qET24TQIrAuFHP3CizXZJ8H6wTnz2k,3665
123
+ cocotb_tools/makefiles/simulators/Makefile.modelsim,sha256=JK9P_d1HsOO61O8Rm6qeLSPZdNQ_mQNe8nf-2f8nzk0,355
124
+ cocotb_tools/makefiles/simulators/Makefile.nvc,sha256=qJocV32rwFXTGwP6HKZjKClN0QrjfWMiUHW_ZNWV0Ac,2643
125
+ cocotb_tools/makefiles/simulators/Makefile.questa,sha256=iLdtpBOwSAdeuSBa-TCY-GtDXdEDPVgM5pgLgdKNXmY,1504
126
+ cocotb_tools/makefiles/simulators/Makefile.questa-compat,sha256=upoFF9NsQ_2bwP6_cvd66Zn3YnRYVrPLLO6FiVl6Jbw,5165
127
+ cocotb_tools/makefiles/simulators/Makefile.questa-qisqrun,sha256=aHSRmQny4EXvqH8SLD5HPAzs_NuN-CwurLlf27Rc5zo,5017
128
+ cocotb_tools/makefiles/simulators/Makefile.riviera,sha256=iqaoWq6-j_eQbL_eJY4m8tjayjMX_9L413jmUiUSiJM,5495
129
+ cocotb_tools/makefiles/simulators/Makefile.vcs,sha256=KtZL_m4OxBdm4Q93sFfmR1neW48IlAok9CBs8jwKfwI,2214
130
+ cocotb_tools/makefiles/simulators/Makefile.verilator,sha256=kgV50lZsGwrc_Fc1b5Gw9FcSYgZv0LLYa6rGO9DpyLI,2830
131
+ cocotb_tools/makefiles/simulators/Makefile.xcelium,sha256=vIKcGasyQv6wGH07MnOH3gXCZ_anC5c9azT_-5irDws,4354
132
+ pygpi/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
133
+ pygpi/entry.py,sha256=byPVFAe3A8dLlQGPvMf-wDtYUt81BGZmSOoiQLn_FnI,1735
134
+ cocotb-2.0.0b1.dist-info/LICENSE,sha256=oBp8aKF9rhLjG78uW4zxmiVsjA8Viwwdyj3nSbEXpmc,1570
135
+ cocotb-2.0.0b1.dist-info/METADATA,sha256=c-XrLhBpCRl_ssYT59vWRueUgdb-lyqytPDov_q1WxY,2707
136
+ cocotb-2.0.0b1.dist-info/WHEEL,sha256=zukbZftcRdNfJ55Q_RYV9JZ3uVyqWKyq-wDJbmszs_U,101
137
+ cocotb-2.0.0b1.dist-info/entry_points.txt,sha256=mqiEpToUUZAoy-1abS4LoRw92w1pMZeD7vPss9Xs2ZI,60
138
+ cocotb-2.0.0b1.dist-info/top_level.txt,sha256=1wga6LXtoeDGlL2GXjX4-w8Qt0y18HKevHn5PD7U2ZA,406
139
+ cocotb-2.0.0b1.dist-info/RECORD,,
@@ -0,0 +1,3 @@
1
+ [console_scripts]
2
+ cocotb-config = cocotb_tools.config:main
3
+
@@ -13,4 +13,5 @@ cocotb\libs\libgpi
13
13
  cocotb\libs\libgpilog
14
14
  cocotb\libs\libpygpilog
15
15
  cocotb\simulator
16
+ cocotb_tools
16
17
  pygpi
@@ -0,0 +1,33 @@
1
+ # Copyright cocotb contributors
2
+ # Licensed under the Revised BSD License, see LICENSE for details.
3
+ # SPDX-License-Identifier: BSD-3-Clause
4
+ import os
5
+
6
+
7
+ def start_cocotb_library_coverage(_: object) -> None: # pragma: no cover
8
+ if "COCOTB_LIBRARY_COVERAGE" not in os.environ:
9
+ return
10
+ try:
11
+ import coverage # noqa: PLC0415
12
+ except (ImportError, ModuleNotFoundError):
13
+ raise RuntimeError(
14
+ "cocotb library coverage collection requested but coverage package not available. Install it using `pip install coverage`."
15
+ ) from None
16
+ else:
17
+ library_coverage = coverage.coverage(
18
+ data_file=".coverage.cocotb",
19
+ config_file=False,
20
+ branch=True,
21
+ source=["cocotb"],
22
+ )
23
+ library_coverage.start()
24
+
25
+ def stop_library_coverage() -> None:
26
+ library_coverage.stop()
27
+ library_coverage.save() # pragma: no cover
28
+
29
+ # This must come after `library_coverage.start()` to ensure coverage is being
30
+ # collected on the cocotb library before importing from it.
31
+ from cocotb._init import _register_shutdown_callback # noqa: PLC0415
32
+
33
+ _register_shutdown_callback(stop_library_coverage)
@@ -0,0 +1,3 @@
1
+ # Copyright cocotb contributors
2
+ # Licensed under the Revised BSD License, see LICENSE for details.
3
+ # SPDX-License-Identifier: BSD-3-Clause
@@ -0,0 +1,65 @@
1
+ # Copyright cocotb contributors
2
+ # Licensed under the Revised BSD License, see LICENSE for details.
3
+ # SPDX-License-Identifier: BSD-3-Clause
4
+ """Checks if a JUnit results file exists and whether there was failing tests."""
5
+
6
+ import argparse
7
+ import sys
8
+ from pathlib import Path
9
+ from typing import Tuple
10
+ from xml.etree import ElementTree
11
+
12
+
13
+ def get_results(results_xml_file: Path) -> Tuple[int, int]:
14
+ """Return number of tests and fails in *results_xml_file*.
15
+
16
+ Returns:
17
+ Tuple of number of tests and number of fails.
18
+
19
+ Raises:
20
+ RuntimeError: If *results_xml_file* is non-existent.
21
+ """
22
+
23
+ __tracebackhide__ = True # Hide the traceback when using PyTest.
24
+
25
+ if not results_xml_file.is_file():
26
+ raise RuntimeError(
27
+ f"ERROR: Simulation terminated abnormally. Results file {results_xml_file} not found."
28
+ )
29
+
30
+ num_tests = 0
31
+ num_failed = 0
32
+
33
+ tree = ElementTree.parse(results_xml_file)
34
+ for ts in tree.iter("testsuite"):
35
+ for tc in ts.iter("testcase"):
36
+ num_tests += 1
37
+ for _ in tc.iter("failure"):
38
+ num_failed += 1
39
+
40
+ return (num_tests, num_failed)
41
+
42
+
43
+ def _get_parser() -> argparse.ArgumentParser:
44
+ """Return the cmdline parser"""
45
+ parser = argparse.ArgumentParser(description=__doc__)
46
+ parser.add_argument(
47
+ "results_file", help="Path to XML file holding JUnit test results.", type=Path
48
+ )
49
+ return parser
50
+
51
+
52
+ def main() -> int:
53
+ parser = _get_parser()
54
+ args = parser.parse_args()
55
+
56
+ try:
57
+ (_, num_failed) = get_results(args.results_file)
58
+ except RuntimeError:
59
+ return 1
60
+ return num_failed
61
+
62
+
63
+ if __name__ == "__main__":
64
+ rc = main()
65
+ sys.exit(rc)
@@ -0,0 +1,152 @@
1
+ # Copyright cocotb contributors
2
+ # Licensed under the Revised BSD License, see LICENSE for details.
3
+ # SPDX-License-Identifier: BSD-3-Clause
4
+ #!/usr/bin/env python
5
+ """
6
+ Simple script to combine JUnit test results into a single XML file.
7
+ """
8
+
9
+ import argparse
10
+ import os
11
+ import re
12
+ import sys
13
+ from pathlib import Path
14
+ from typing import Iterable, Pattern
15
+ from xml.etree import ElementTree as ET
16
+
17
+
18
+ def _find_all(name: Pattern, path: Path) -> Iterable[Path]:
19
+ for obj in path.iterdir():
20
+ if obj.is_file() and re.match(name, obj.name):
21
+ yield obj
22
+ elif obj.is_dir():
23
+ yield from _find_all(name, obj)
24
+
25
+
26
+ def _get_parser() -> argparse.ArgumentParser:
27
+ """Return the cmdline parser"""
28
+ parser = argparse.ArgumentParser(
29
+ description=__doc__, formatter_class=argparse.ArgumentDefaultsHelpFormatter
30
+ )
31
+ parser.add_argument(
32
+ "directories",
33
+ nargs="*",
34
+ type=lambda args: [Path(arg) for arg in args],
35
+ default=[Path()],
36
+ help="Directories to search for input files.",
37
+ )
38
+ parser.add_argument(
39
+ "-i",
40
+ "--input-filename",
41
+ default=r"results.*\.xml",
42
+ help="A regular expression to match input filenames.",
43
+ )
44
+ parser.add_argument(
45
+ "-o",
46
+ "--output-file",
47
+ default="combined_results.xml",
48
+ help="Path of output XML file.",
49
+ )
50
+ parser.add_argument(
51
+ "--output-testsuites-name",
52
+ default="results",
53
+ help="Name of 'testsuites' element in output XML file.",
54
+ )
55
+ parser.add_argument(
56
+ "--verbose",
57
+ action="store_true",
58
+ help="Enables verbose output.",
59
+ )
60
+ parser.add_argument(
61
+ "--repo-root",
62
+ type=Path,
63
+ help="Specify root of cocotb repo the regression is run from (CI only).",
64
+ )
65
+ return parser
66
+
67
+
68
+ def main() -> int:
69
+ parser = _get_parser()
70
+ args = parser.parse_args()
71
+ rc = 0
72
+
73
+ result = ET.Element("testsuites", name=args.output_testsuites_name)
74
+
75
+ input_pattern = re.compile(args.input_filename)
76
+
77
+ for directory in args.directories:
78
+ if args.verbose:
79
+ print(f"Searching in {directory} for results.xml files.")
80
+ for fname in _find_all(input_pattern, directory):
81
+ if args.verbose:
82
+ print(f"Reading file {fname}.")
83
+ tree = ET.parse(fname)
84
+ for ts in tree.iter("testsuite"):
85
+ if args.verbose:
86
+ print(
87
+ "Testsuite name: {!r}, package: {!r}".format(
88
+ ts.get("name"), ts.get("package")
89
+ )
90
+ )
91
+ for existing in result:
92
+ if (existing.get("name") == ts.get("name")) and (
93
+ existing.get("package") == ts.get("package")
94
+ ):
95
+ if args.verbose:
96
+ print(
97
+ "Testsuite already exists in combined results. Extending it."
98
+ )
99
+ existing.extend(list(ts))
100
+ break
101
+ else:
102
+ if args.verbose:
103
+ print(
104
+ "Testsuite does not already exist in combined results. Adding it."
105
+ )
106
+ result.append(ts)
107
+
108
+ testsuite_count = 0
109
+ testcase_count = 0
110
+ for testsuite in result.iter("testsuite"):
111
+ testsuite_count += 1
112
+ for testcase in testsuite.iter("testcase"):
113
+ testcase_count += 1
114
+ for _ in testcase.iter("failure"):
115
+ rc = 1
116
+ print(
117
+ "Failure in testsuite: '{}' classname: '{}' testcase: '{}' with parameters '{}'".format(
118
+ testsuite.get("name"),
119
+ testcase.get("classname"),
120
+ testcase.get("name"),
121
+ testsuite.get("package"),
122
+ )
123
+ )
124
+ if (
125
+ os.getenv("GITHUB_ACTIONS") is not None
126
+ and args.repo_root is not None
127
+ ):
128
+ # Get test file relative to root of repo
129
+ file = testcase.get("file")
130
+ # if this file was output by cocotb, it has this attribute
131
+ assert file is not None
132
+ relative_file = Path(file).relative_to(args.repo_root)
133
+ print(
134
+ "::error file={},line={}::Test {}:{} failed".format(
135
+ relative_file,
136
+ testcase.get("lineno"),
137
+ testcase.get("classname"),
138
+ testcase.get("name"),
139
+ )
140
+ )
141
+
142
+ print(f"Ran a total of {testsuite_count} TestSuites and {testcase_count} TestCases")
143
+
144
+ if args.verbose:
145
+ print(f"Writing combined results to {args.output_file}")
146
+ ET.ElementTree(result).write(args.output_file, encoding="UTF-8")
147
+ return rc
148
+
149
+
150
+ if __name__ == "__main__":
151
+ rc = main()
152
+ sys.exit(rc)