cocotb 1.9.0rc1__cp37-cp37m-macosx_10_9_x86_64.whl → 1.9.1__cp37-cp37m-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
Binary file
@@ -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
@@ -1,20 +1,20 @@
1
1
  pygpi/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
2
  pygpi/entry.py,sha256=DYNuWRXyh60vjyM95JFltJSF67XtGkiqBD73-O37iXc,946
3
- cocotb-1.9.0rc1.dist-info/RECORD,,
4
- cocotb-1.9.0rc1.dist-info/LICENSE,sha256=8u54oq_hgh2uhGSCf5Fo3UpyB6DoAluUkPWp-ES7AFU,1542
5
- cocotb-1.9.0rc1.dist-info/WHEEL,sha256=HS_2vgrXyXO7N4Q-5VnuMAgG-fG_r8eemMgfU9Aw3Kk,110
6
- cocotb-1.9.0rc1.dist-info/entry_points.txt,sha256=Z2JL-ZgU-G5au6uYpkWZz9Pfk7qnh4fcoQJmBxnHSZQ,53
7
- cocotb-1.9.0rc1.dist-info/top_level.txt,sha256=Fl4sx6K1RYh5oUwTHM1KkMz54rCexCBjdDi5QiC8McE,546
8
- cocotb-1.9.0rc1.dist-info/METADATA,sha256=aSuq-4K4yrB2YgH_MipfdwwaujrDFizvJpJfXNCgK6g,6803
3
+ cocotb-1.9.1.dist-info/RECORD,,
4
+ cocotb-1.9.1.dist-info/LICENSE,sha256=8u54oq_hgh2uhGSCf5Fo3UpyB6DoAluUkPWp-ES7AFU,1542
5
+ cocotb-1.9.1.dist-info/WHEEL,sha256=HS_2vgrXyXO7N4Q-5VnuMAgG-fG_r8eemMgfU9Aw3Kk,110
6
+ cocotb-1.9.1.dist-info/entry_points.txt,sha256=Z2JL-ZgU-G5au6uYpkWZz9Pfk7qnh4fcoQJmBxnHSZQ,53
7
+ cocotb-1.9.1.dist-info/top_level.txt,sha256=Fl4sx6K1RYh5oUwTHM1KkMz54rCexCBjdDi5QiC8McE,546
8
+ cocotb-1.9.1.dist-info/METADATA,sha256=DxCmI9OY5EkS6U5VGgfIe9KoVsU0HJjESMol6G-QlSU,6800
9
9
  cocotb/queue.py,sha256=ZHaad7RMKla0NqC2k06DmVV7wXrtrteRVx19iE-0_5w,5159
10
10
  cocotb/_sim_versions.py,sha256=nbUkauB7RKure0FrUz52sHkJzoAeErEKZQeUfhryrvY,3544
11
- cocotb/binary.py,sha256=KWPVNrpaBmWbDz5mTwhzoSrvNBbEUyaYr4fojmU71qE,27153
11
+ cocotb/binary.py,sha256=pvlBIKIA1gQpauoJ4PP9FR01gQzv1aSQCNG3pl3uZl4,27243
12
12
  cocotb/task.py,sha256=4TvJ3YHjDV6-ZhTVe2xJHE1dLjcx8rAphCfDcpDOdLU,11035
13
13
  cocotb/runner.py,sha256=sP7YS7gs8mXvP9-sqoKdJE2Cm5t6-hAuDq3sFsnJiAs,50285
14
14
  cocotb/regression.py,sha256=6bY3dfnTWkH8iizMMRT3y6lOMBCkWuNUv8gcO_JujYQ,32968
15
15
  cocotb/config.py,sha256=Bt7zHgQTraNlNNH__jk05V1hr9Wd9TMSntax3OYASUA,9654
16
16
  cocotb/triggers.py,sha256=jGdbOEojYKoXmS2rrZAsPPeIIT0pPJAcdcGzGKY_854,34973
17
- cocotb/_version.py,sha256=PmjM1osjfD8Dmg8eyz3CID355E4wCHkSUokbR8TS0bA,298
17
+ cocotb/_version.py,sha256=1PXuTSbIr6EjjozOXzaNXz7uhBife3Lh6Giy3DVwJMU,295
18
18
  cocotb/log.py,sha256=ydt4ZFo1iuvFRp9uu05KBhN1-bK-gH0huCbE8xbG6PY,10443
19
19
  cocotb/handle.py,sha256=Hh23PPe8uWwR3QtCMnMpCUu6YPPm0OkeKpAwI8-X7yY,41627
20
20
  cocotb/wavedrom.py,sha256=xWhefs5G5L79Wusw8poY1h8x_VFeSlsnXbRrfj3VNhg,5988
@@ -45,7 +45,7 @@ cocotb/libs/libgpi.so,sha256=sD02r9AfMsEFrz0tCdGmT7mQpJJCPc82MbtWf8XS4Po,74512
45
45
  cocotb/libs/libcocotbvpi_icarus.vpl,sha256=IZyISDZ7C5ej7FUdPJHfZV_-7l77a_UoLAhNvZJDFvk,126304
46
46
  cocotb/libs/libcocotbvpi_verilator.so,sha256=21vmMqr8jNaRLxSRzn-F_LN5FDsd_PkW90zJvEBYRqs,126304
47
47
  cocotb/libs/libcocotbutils.so,sha256=8Yke9EZbBtRBU3ctkKS1Q8mA_SduDberPrUoXEBSgCk,52576
48
- cocotb/libs/libcocotbvhpi_nvc.so,sha256=6IfvOGzTizJlz4AfLr3cMeokDopawutG5WINbNzWa-M,145856
48
+ cocotb/libs/libcocotbvhpi_nvc.so,sha256=y0GnuxdxQpa5vawJIXSfQbHClolgV3ki3fHMkhsM9_4,145888
49
49
  cocotb/libs/libcocotbvhpi_modelsim.so,sha256=SEx9WJl4tyFKCjTze4xYANuvbSr4iJMrQ0uqkcNCVOc,145856
50
50
  cocotb/libs/libcocotbvhpi_ius.so,sha256=9I0yienBPdkHj4RRiW8ohRzONNzhZ7PNKC5OHSHMaxo,145856
51
51
  cocotb/libs/libcocotbvpi_vcs.so,sha256=bap82twU6vhOfR3U3t2-u5zYVOb-70UzHG2S6nVOf8M,126288
@@ -81,9 +81,9 @@ cocotb/share/makefiles/simulators/Makefile.vcs,sha256=-qG38z_449aqygByZglkccLWbX
81
81
  cocotb/share/makefiles/simulators/Makefile.ghdl,sha256=USZfU8lHX7tt-f1WzOgTMQU7DUsv7zad7Cnuwvk3GOA,4736
82
82
  cocotb/share/makefiles/simulators/Makefile.xcelium,sha256=kw3AAYVJlWR-E6ti9DqsB36xu-6y0Vi3280F50nuvXA,5626
83
83
  cocotb/share/makefiles/simulators/Makefile.cvc,sha256=T29SoVjycTQZvCBVLrK1hAtNUBZcGUjuqVgSHgPPqZY,3919
84
- cocotb/share/makefiles/simulators/Makefile.verilator,sha256=dXVxfg4OngAICbCLB1tH9p0ulIuLCyhsLkbtA7dbLcs,2572
84
+ cocotb/share/makefiles/simulators/Makefile.verilator,sha256=B0je4MFhqIkJzR5y2lDc8sB4So7O6VH0VuQpwdT7Ko4,2624
85
85
  cocotb/share/makefiles/simulators/Makefile.riviera,sha256=abfiA2sb8BYrMZn1VSnn-ipIEhIxHaERxhHTty9FilQ,6664
86
86
  cocotb/share/makefiles/simulators/Makefile.nvc,sha256=qec9doM_JsPqnDFzfA7wRXd2c9p29XPC58mzl5n_Dqs,2123
87
87
  cocotb/share/makefiles/simulators/Makefile.icarus,sha256=4s1VVBtdkSDgdkDmmlrmWEXTf-BbohEB3sEEd63qM5Q,4367
88
88
  cocotb/share/makefiles/simulators/Makefile.questa,sha256=ee8q0uN9cVsOtSd6cIQvIFo5ZqQFLf04Y1AruI0j-R8,6413
89
- cocotb/share/lib/verilator/verilator.cpp,sha256=P20wRTkxfigz-QYLZVRonuzSJopcZOVvwTZvnW7p79M,5646
89
+ cocotb/share/lib/verilator/verilator.cpp,sha256=O31U_LFTIRNsUHmbJjnFTib-82EPDcVQ3UR9yj2c0b8,5734