cocotb 1.9.0rc1__cp36-cp36m-macosx_10_9_x86_64.whl → 1.9.1__cp36-cp36m-macosx_10_9_x86_64.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.

cocotb/_version.py CHANGED
@@ -5,4 +5,4 @@
5
5
  # 1) we don't load dependencies by storing it in __init__.py
6
6
  # 2) we can import it in setup.py for the same reason
7
7
  # 3) we can import it into your module
8
- __version__ = "1.9.0rc1"
8
+ __version__ = "1.9.1"
cocotb/binary.py CHANGED
@@ -569,13 +569,16 @@ class BinaryValue:
569
569
  if isinstance(other, (BinaryValue, LogicArray)):
570
570
  return self.binstr == other.binstr
571
571
  elif isinstance(other, int):
572
- return self.integer == other
572
+ try:
573
+ return self.integer == other
574
+ except ValueError:
575
+ return False
573
576
  elif isinstance(other, str):
574
577
  return self.binstr == other
575
578
  elif isinstance(other, Logic):
576
579
  return self.binstr == str(other)
577
580
  else:
578
- return False
581
+ return NotImplemented
579
582
 
580
583
  def __int__(self):
581
584
  return self.integer
@@ -188,7 +188,8 @@ int main(int argc, char** argv) {
188
188
  // VM_COVERAGE is a define which is set if Verilator is
189
189
  // instructed to collect coverage (when compiling the simulation)
190
190
  #if VM_COVERAGE
191
- VerilatedCov::write("coverage.dat");
191
+ VerilatedCov::write(); // Uses +verilator+coverage+file+<filename>,
192
+ // defaults to coverage.dat
192
193
  #endif
193
194
 
194
195
  return 0;
@@ -48,10 +48,11 @@ ifeq ($(VERILATOR_SIM_DEBUG), 1)
48
48
  endif
49
49
 
50
50
  ifeq ($(VERILATOR_TRACE),1)
51
- EXTRA_ARGS += --trace --trace-structs
51
+ COMPILE_ARGS += --trace --trace-structs
52
+ SIM_ARGS += --trace
52
53
  endif
53
54
 
54
- EXTRA_ARGS += --timescale $(COCOTB_HDL_TIMEUNIT)/$(COCOTB_HDL_TIMEPRECISION)
55
+ COMPILE_ARGS += --timescale $(COCOTB_HDL_TIMEUNIT)/$(COCOTB_HDL_TIMEPRECISION)
55
56
 
56
57
  COMPILE_ARGS += --vpi --public-flat-rw --prefix Vtop -o Vtop -LDFLAGS "-Wl,-rpath,$(shell cocotb-config --lib-dir) -L$(shell cocotb-config --lib-dir) -lcocotbvpi_verilator"
57
58
 
@@ -70,7 +71,7 @@ $(COCOTB_RESULTS_FILE): $(SIM_BUILD)/Vtop $(CUSTOM_SIM_DEPS)
70
71
  $(RM) $(COCOTB_RESULTS_FILE)
71
72
 
72
73
  MODULE=$(MODULE) TESTCASE=$(TESTCASE) TOPLEVEL=$(TOPLEVEL) TOPLEVEL_LANG=$(TOPLEVEL_LANG) \
73
- $(SIM_CMD_PREFIX) $< $(PLUSARGS) $(SIM_CMD_SUFFIX)
74
+ $(SIM_CMD_PREFIX) $< $(SIM_ARGS) $(EXTRA_ARGS) $(PLUSARGS) $(SIM_CMD_SUFFIX)
74
75
 
75
76
  $(call check_for_results_file)
76
77
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: cocotb
3
- Version: 1.9.0rc1
3
+ Version: 1.9.1
4
4
  Summary: cocotb is a coroutine based cosimulation library for writing VHDL and Verilog testbenches in Python.
5
5
  Home-page: https://www.cocotb.org
6
6
  Author: Chris Higgs, Stuart Hodgson
@@ -3,8 +3,8 @@ cocotb/__init__.py,sha256=cYdZv0FU79Pt1nQv4ir5dzD21Fd3Dy2PtrLJ34qRHCo,11296
3
3
  cocotb/_deprecation.py,sha256=-yCa2_9m_6-NX4RZIKibpVKlIlb7eDdXnmINqoxeGcA,1153
4
4
  cocotb/_py_compat.py,sha256=XniZ0qjkAyYFxaCEZnny0ZM8yi7OIAJp9VE3V3OMHuo,2691
5
5
  cocotb/_sim_versions.py,sha256=nbUkauB7RKure0FrUz52sHkJzoAeErEKZQeUfhryrvY,3544
6
- cocotb/_version.py,sha256=PmjM1osjfD8Dmg8eyz3CID355E4wCHkSUokbR8TS0bA,298
7
- cocotb/binary.py,sha256=KWPVNrpaBmWbDz5mTwhzoSrvNBbEUyaYr4fojmU71qE,27153
6
+ cocotb/_version.py,sha256=1PXuTSbIr6EjjozOXzaNXz7uhBife3Lh6Giy3DVwJMU,295
7
+ cocotb/binary.py,sha256=pvlBIKIA1gQpauoJ4PP9FR01gQzv1aSQCNG3pl3uZl4,27243
8
8
  cocotb/clock.py,sha256=tYbDZ5K9mDmqLTMMWtvH_4t_8vVPWQGTMq96iV1NEa0,6560
9
9
  cocotb/config.py,sha256=Bt7zHgQTraNlNNH__jk05V1hr9Wd9TMSntax3OYASUA,9654
10
10
  cocotb/decorators.py,sha256=ZAvvXXYwJu1klH9Gd7G7_wANUqztCl74XboYkAkZryQ,11727
@@ -58,7 +58,7 @@ cocotb/share/include/gpi_logging.h,sha256=DHYms7LrdXD4O7QGjzDs5HQeQVwesaNH8RcUrb
58
58
  cocotb/share/include/py_gpi_logging.h,sha256=TvPV2PFArqIxDGu9xzdoijeArEKnuj2R54dRyq3IHHc,642
59
59
  cocotb/share/include/vhpi_user_ext.h,sha256=Pa8_2UZwEkv-eo4AHxd9LfwJ6fYaKF41X90hnYU5aYg,628
60
60
  cocotb/share/include/vpi_user_ext.h,sha256=ZOcMKuwvVLtJyPNN5k8Dp_2I11W3tk-Sk3aTnsxMYTI,2456
61
- cocotb/share/lib/verilator/verilator.cpp,sha256=P20wRTkxfigz-QYLZVRonuzSJopcZOVvwTZvnW7p79M,5646
61
+ cocotb/share/lib/verilator/verilator.cpp,sha256=O31U_LFTIRNsUHmbJjnFTib-82EPDcVQ3UR9yj2c0b8,5734
62
62
  cocotb/share/makefiles/Makefile.deprecations,sha256=W9TsO2YcoUDg-eSnmzy-qKoaMWDsbTBaThizTVDOHiI,416
63
63
  cocotb/share/makefiles/Makefile.inc,sha256=i_2F77QC8tCDmuDOyFaU8wuS5c6M2rT9RBSrMXls2hM,6710
64
64
  cocotb/share/makefiles/Makefile.sim,sha256=HozYCWwQU1Qe2eeEyeU4fQqnMHrytFLrQFgm-T8Ka64,5293
@@ -72,7 +72,7 @@ cocotb/share/makefiles/simulators/Makefile.nvc,sha256=qec9doM_JsPqnDFzfA7wRXd2c9
72
72
  cocotb/share/makefiles/simulators/Makefile.questa,sha256=ee8q0uN9cVsOtSd6cIQvIFo5ZqQFLf04Y1AruI0j-R8,6413
73
73
  cocotb/share/makefiles/simulators/Makefile.riviera,sha256=abfiA2sb8BYrMZn1VSnn-ipIEhIxHaERxhHTty9FilQ,6664
74
74
  cocotb/share/makefiles/simulators/Makefile.vcs,sha256=-qG38z_449aqygByZglkccLWbXpntAK1pgKC1IO3zqE,3745
75
- cocotb/share/makefiles/simulators/Makefile.verilator,sha256=dXVxfg4OngAICbCLB1tH9p0ulIuLCyhsLkbtA7dbLcs,2572
75
+ cocotb/share/makefiles/simulators/Makefile.verilator,sha256=B0je4MFhqIkJzR5y2lDc8sB4So7O6VH0VuQpwdT7Ko4,2624
76
76
  cocotb/share/makefiles/simulators/Makefile.xcelium,sha256=kw3AAYVJlWR-E6ti9DqsB36xu-6y0Vi3280F50nuvXA,5626
77
77
  cocotb/types/__init__.py,sha256=ypCqqSf7agV6XoJ6P0nVvRAw2m82G5kx6A2yiiVmrr0,1803
78
78
  cocotb/types/array.py,sha256=pI8OYL6WY6I9nZkwqyn9S98bWNBlEqwM8TueZA2OaWc,10899
@@ -81,9 +81,9 @@ cocotb/types/logic_array.py,sha256=C8gHjUmof4P9hYwVOnFMjBgH0xKz0XjmWjtVvCisBbU,9
81
81
  cocotb/types/range.py,sha256=MbO76LYIxR1r0eki-SSP3XOtypu4_etXUHWmNCi4gNw,6230
82
82
  pygpi/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
83
83
  pygpi/entry.py,sha256=DYNuWRXyh60vjyM95JFltJSF67XtGkiqBD73-O37iXc,946
84
- cocotb-1.9.0rc1.dist-info/LICENSE,sha256=8u54oq_hgh2uhGSCf5Fo3UpyB6DoAluUkPWp-ES7AFU,1542
85
- cocotb-1.9.0rc1.dist-info/METADATA,sha256=4YaiPezeSKbRNnk433cby06gzTSbDm1gXmPkIZd-YTY,6805
86
- cocotb-1.9.0rc1.dist-info/WHEEL,sha256=ye8A2lA8pjGNe7-ueOpggarJAhczq3EZGqnLZzzfQYQ,110
87
- cocotb-1.9.0rc1.dist-info/entry_points.txt,sha256=kFnPpuolM06cgf3C7fa5JZS4vzADkrxfr0dmBvgtaYg,54
88
- cocotb-1.9.0rc1.dist-info/top_level.txt,sha256=Fl4sx6K1RYh5oUwTHM1KkMz54rCexCBjdDi5QiC8McE,546
89
- cocotb-1.9.0rc1.dist-info/RECORD,,
84
+ cocotb-1.9.1.dist-info/LICENSE,sha256=8u54oq_hgh2uhGSCf5Fo3UpyB6DoAluUkPWp-ES7AFU,1542
85
+ cocotb-1.9.1.dist-info/METADATA,sha256=3Amc8HquVPAcvFXI92zrfVidUnPDPMtD_1F2KsA-R_0,6802
86
+ cocotb-1.9.1.dist-info/WHEEL,sha256=ye8A2lA8pjGNe7-ueOpggarJAhczq3EZGqnLZzzfQYQ,110
87
+ cocotb-1.9.1.dist-info/entry_points.txt,sha256=kFnPpuolM06cgf3C7fa5JZS4vzADkrxfr0dmBvgtaYg,54
88
+ cocotb-1.9.1.dist-info/top_level.txt,sha256=Fl4sx6K1RYh5oUwTHM1KkMz54rCexCBjdDi5QiC8McE,546
89
+ cocotb-1.9.1.dist-info/RECORD,,