{ "info": { "author": "James Jiang", "author_email": "jamesjiang52@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "License :: OSI Approved :: MIT License", "Natural Language :: English", "Operating System :: OS Independent", "Programming Language :: Python :: 3", "Topic :: Scientific/Engineering", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "*******\nBitwise\n*******\n\nBitwise is a Python library intended to make hardware design and simulation more accessible\nfor software engineers. While it can never replace a true hardware description language,\nit aims to serve as a useful tool in the hardware design process, allowing a user to build and test\ntheir digital circuits in a high-level programming language (i.e. with simpler syntax and more\nflexible semantics) before implementing them using an HDL.\n\nGetting Started\n===============\n\nRefer to the `documentation `_ for installation \ninstructions, usage examples, API reference, and more.\n\nQuick Example\n=============\n\nThe following code creates a half-adder circuit::\n\n \"\"\"\n Create a half-adder.\n \"\"\"\n import bitwise as bw\n \n def main():\n # initialize inputs\n a = bw.wire.Wire()\n b = bw.wire.Wire()\n\n # initialize outputs\n sum_ = bw.wire.Wire()\n carry_out = bw.wire.Wire()\n\n # create circuit\n bw.gate.XORGate2(a, b, sum_) # XORs a and b and puts the result into sum_\n bw.gate.ANDGate2(a, b, carry_out) # ANDs a and b and puts the result into carry_out\n \n if __name__ == \"__main__\":\n main()\n\nInteracting with it in a Python session::\n\n In [1]: a.value = 0\n \n In [2]: b.value = 0\n \n In [3]: sum_.value\n Out[3]: 0\n \n In [4]: carry_out.value\n Out[4]: 0\n \n In [5]: a.value = 1\n \n In [6]: sum_.value\n Out[6]: 1\n \n In [7]: carry_out.value\n Out[7]: 0\n \n In [8]: b.value = 1\n \n In [9]: sum_.value\n Out[9]: 0\n \n In [10]: carry_out.value\n Out[10]: 1\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/jamesjiang52/Bitwise", "keywords": "bitwise hardware design", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "bitwise", "package_url": "https://pypi.org/project/bitwise/", "platform": "", "project_url": "https://pypi.org/project/bitwise/", "project_urls": { "Homepage": "https://github.com/jamesjiang52/Bitwise" }, "release_url": "https://pypi.org/project/bitwise/1.0/", "requires_dist": null, "requires_python": "", "summary": "Bitwise is a library for utilizing Python as a hardware description language", "version": "1.0" }, "last_serial": 5317195, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "c7c50eda44a78c1772344b44b724d9d1", "sha256": "982dcb6a8a59558b53f28c1c1d28d8c0eb8373a2ed6b90ffbaf660c181a30c21" }, "downloads": -1, "filename": "bitwise-0.1.tar.gz", "has_sig": false, "md5_digest": "c7c50eda44a78c1772344b44b724d9d1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14598, "upload_time": "2018-10-14T03:52:03", "url": "https://files.pythonhosted.org/packages/73/77/5b4831fc46079bdf10fa08633bf7276cfce47044cd47a1cb36bc97bd5b44/bitwise-0.1.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "ac299600cdbf4ead2224e7c2218191bb", "sha256": "008c77552a9880a26f5ae44b233ce42ca327d2f58c72bcea9bcf2cbdef254244" }, "downloads": -1, "filename": "bitwise-0.1.1.tar.gz", "has_sig": false, "md5_digest": "ac299600cdbf4ead2224e7c2218191bb", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14829, "upload_time": "2018-10-17T03:27:26", "url": "https://files.pythonhosted.org/packages/15/41/27854b749b6f01708ee8162a23c125d65f85349a1743221921cbbbe0ce38/bitwise-0.1.1.tar.gz" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "e5aeaddc11763e0dd9cd6e31e167ec45", "sha256": "86a028e0c84e4dfd08cda2470c6f82615f46191f6fa516289aa53fcc1c5ee645" }, "downloads": -1, "filename": "bitwise-0.2.tar.gz", "has_sig": false, "md5_digest": "e5aeaddc11763e0dd9cd6e31e167ec45", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 17856, "upload_time": "2018-11-08T18:53:55", "url": "https://files.pythonhosted.org/packages/2a/82/2020f1e7cc9b8ddeba2b27eef475f1566c9fcc0ee7de9d331968bf37b5e0/bitwise-0.2.tar.gz" } ], "0.3": [ { "comment_text": "", "digests": { "md5": "3c0f58844c7e6ee05dd3d8e1d83c8336", "sha256": "ef158e8a26d4bb3d30117f4c405a04029c0d210384eb46ddcecc876420d5cef4" }, "downloads": -1, "filename": "bitwise-0.3.tar.gz", "has_sig": false, "md5_digest": "3c0f58844c7e6ee05dd3d8e1d83c8336", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 27866, "upload_time": "2019-01-27T03:23:27", "url": "https://files.pythonhosted.org/packages/1e/43/e0569ef7a0a1886387fe7c81abfb9b6ee783fc2b96d7f7f2d71f0a1827f5/bitwise-0.3.tar.gz" } ], "1.0": [ { "comment_text": "", "digests": { "md5": "1083fcd7b760c2511204f6d61b000f7d", "sha256": "74a97e9f6d6dfa599f93504c117401e32abd29be37e56f884dce3a388daeb6f4" }, "downloads": -1, "filename": "bitwise-1.0.tar.gz", "has_sig": false, "md5_digest": "1083fcd7b760c2511204f6d61b000f7d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 58077, "upload_time": "2019-05-25T19:44:14", "url": "https://files.pythonhosted.org/packages/57/fe/4684e2f17e00db68e3cc6a7e9cdc5399897cac1fadee626a92d91c23c5d2/bitwise-1.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "1083fcd7b760c2511204f6d61b000f7d", "sha256": "74a97e9f6d6dfa599f93504c117401e32abd29be37e56f884dce3a388daeb6f4" }, "downloads": -1, "filename": "bitwise-1.0.tar.gz", "has_sig": false, "md5_digest": "1083fcd7b760c2511204f6d61b000f7d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 58077, "upload_time": "2019-05-25T19:44:14", "url": "https://files.pythonhosted.org/packages/57/fe/4684e2f17e00db68e3cc6a7e9cdc5399897cac1fadee626a92d91c23c5d2/bitwise-1.0.tar.gz" } ] }