{ "info": { "author": "Tomasz Hemperek", "author_email": "hemperek@uni-bonn.de", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: BSD License", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Topic :: Scientific/Engineering :: Electronic Design Automation (EDA)" ], "description": "# cocotb-test\n[![Build Status](https://dev.azure.com/themperek/themperek/_apis/build/status/themperek.cocotb-test?branchName=master)](https://dev.azure.com/themperek/themperek/_build/latest?definitionId=2&branchName=master)\n[![PyPI version](https://badge.fury.io/py/cocotb-test.svg)](https://badge.fury.io/py/cocotb-test)\n\n``cocotb-test`` provides standard python unit testing capabilities for [cocotb](https://github.com/cocotb/cocotb)\n- allow the look and feel of Python unit testing\n- remove the need for Makefiles (includes Makefile compatibility mode)\n- allow easy customization of simulation flow\n- easy installation (especially on Windows)\n- allow to use [pytest-xdist](https://pypi.org/project/pytest-xdist/) or [pytest-parallel](https://github.com/browsertron/pytest-parallel) for parallel runs\n\n# **!Proof of Concept!**\n\n# Usage:\n\n- Install and use [conda](https://conda.io/miniconda.html) for Python (can be installed in user/local folder).\n\n- Install development tools for conda (Windows only):\n```bash\nconda install m2w64-gcc libpython\n```\n- Install simulator (for Icarus Verilog):\n```bash\nconda install -c conda-forge iverilog\n```\n- Install the package via [pip](https://pip.pypa.io/en/stable/user_guide/):\n```bash\npip install -v https://github.com/themperek/cocotb-test/archive/master.zip\n```\n or\n```bash\ngit clone https://github.com/themperek/cocotb-test.git\npip install -v -e cocotb-test\n```\n\n- Create a `test_dff.py` file (check [test folder](https://github.com/themperek/cocotb-test/tree/master/tests) for more examples):\n```python\nfrom cocotb_test.run import run\ndef test_dff():\n run(\n verilog_sources=[\"dff.v\"], # sources\n toplevel=\"dff\", # top level HDL\n module=\"dff_cocotb\" # name of cocotb test module\n )\n```\n\n- Run [pytest](https://docs.pytest.org/en/latest/contents.html): \n```bash\npytest -s \n```\n\n# Running (some) tests and examples from cocotb\nFor cocotb tests/examples install cocotb in editable mode \n```bash\ngit clone https://github.com/potentialventures/cocotb.git\npip install -e cocotb\nSIM=icarus pytest -s --junitxml=test-results.xml --cocotbxml=test-cocotb.xml tests\n```", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "", "keywords": "", "license": "BSD", "maintainer": "", "maintainer_email": "", "name": "cocotb-test", "package_url": "https://pypi.org/project/cocotb-test/", "platform": "any", "project_url": "https://pypi.org/project/cocotb-test/", "project_urls": null, "release_url": "https://pypi.org/project/cocotb-test/0.0.4/", "requires_dist": null, "requires_python": "", "summary": "", "version": "0.0.4" }, "last_serial": 5899539, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "6114d8b3ba1aa9733092dbf155441528", "sha256": "42bdf123cbe4c651fbe2a1e9d6a244966da4f2728223f7feed5454763ecf7bd5" }, "downloads": -1, "filename": "cocotb-test-0.0.1.tar.gz", "has_sig": false, "md5_digest": "6114d8b3ba1aa9733092dbf155441528", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6755, "upload_time": "2019-07-16T12:10:03", "url": "https://files.pythonhosted.org/packages/94/35/a2d3f1073e3238b0917c9812658c9d9cb909ff08ee2b1f07ada82739bdc4/cocotb-test-0.0.1.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "b40f7bc56d56de0c82d54818a88bf7b8", "sha256": "6d1b5eccc20c3feb9471f577250bb99add1c010071b5c5b6e734377c16440f10" }, "downloads": -1, "filename": "cocotb-test-0.0.2.tar.gz", "has_sig": false, "md5_digest": "b40f7bc56d56de0c82d54818a88bf7b8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9465, "upload_time": "2019-07-26T08:29:07", "url": "https://files.pythonhosted.org/packages/c0/9d/8999078a062444f16098f0574dc4a9b5d2f15af227ab3aaf2eda078e566e/cocotb-test-0.0.2.tar.gz" } ], "0.0.3": [ { "comment_text": "", "digests": { "md5": "b99eeada2257b9d90603081171f27fc9", "sha256": "d5ce0237cc906c1b4f6d5b943e6fe96f4a6e70e86e406c4a47757fbe60711eab" }, "downloads": -1, "filename": "cocotb-test-0.0.3.tar.gz", "has_sig": false, "md5_digest": "b99eeada2257b9d90603081171f27fc9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10775, "upload_time": "2019-08-02T20:40:56", "url": "https://files.pythonhosted.org/packages/cb/df/3b26e8db0ee66b175088c0b23ae3fa80d6eddc1d960a20db1fe2df7b7433/cocotb-test-0.0.3.tar.gz" } ], "0.0.4": [ { "comment_text": "", "digests": { "md5": "5c0317e9de918de0f5420d231ecdfe05", "sha256": "cf1104ee85e8c48e24454f3e1a030073345bdebe52a17ca607405077ad04563f" }, "downloads": -1, "filename": "cocotb-test-0.0.4.tar.gz", "has_sig": false, "md5_digest": "5c0317e9de918de0f5420d231ecdfe05", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12680, "upload_time": "2019-09-28T11:09:18", "url": "https://files.pythonhosted.org/packages/d1/d8/68d192111c88a9fe6068b5092ea9353e0b7689d701bf1bbb0328af79148e/cocotb-test-0.0.4.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "5c0317e9de918de0f5420d231ecdfe05", "sha256": "cf1104ee85e8c48e24454f3e1a030073345bdebe52a17ca607405077ad04563f" }, "downloads": -1, "filename": "cocotb-test-0.0.4.tar.gz", "has_sig": false, "md5_digest": "5c0317e9de918de0f5420d231ecdfe05", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12680, "upload_time": "2019-09-28T11:09:18", "url": "https://files.pythonhosted.org/packages/d1/d8/68d192111c88a9fe6068b5092ea9353e0b7689d701bf1bbb0328af79148e/cocotb-test-0.0.4.tar.gz" } ] }