├── .gitignore ├── LICENSE.txt ├── README.md ├── nmigen_stdio └── __init__.py └── setup.py /.gitignore: -------------------------------------------------------------------------------- 1 | # Python 2 | *.pyc 3 | /*.egg-info 4 | /.eggs 5 | -------------------------------------------------------------------------------- /LICENSE.txt: -------------------------------------------------------------------------------- 1 | Copyright (C) 2019 M-Labs Limited 2 | 3 | Redistribution and use in source and binary forms, with or without modification, 4 | are permitted provided that the following conditions are met: 5 | 6 | 1. Redistributions of source code must retain the above copyright notice, this 7 | list of conditions and the following disclaimer. 8 | 2. Redistributions in binary form must reproduce the above copyright notice, 9 | this list of conditions and the following disclaimer in the documentation 10 | and/or other materials provided with the distribution. 11 | 12 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 13 | ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 14 | WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 15 | DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR 16 | ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 17 | (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 18 | LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON 19 | ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 20 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 21 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 22 | 23 | 24 | Other authors retain ownership of their contributions. If a submission can 25 | reasonably be considered independently copyrightable, it's yours and we 26 | encourage you to claim it with appropriate copyright notices. This submission 27 | then falls under the "otherwise noted" category. All submissions are strongly 28 | encouraged to use the two-clause BSD license reproduced above. 29 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Industry standard I/O for nMigen 2 | 3 | ## Modules for standard I/O such as UART, SPI, I²C, ... 4 | 5 | TBD 6 | 7 | ### License 8 | 9 | nMigen is released under the very permissive two-clause BSD license. Under the terms of this license, you are authorized to use nMigen for closed-source proprietary designs. 10 | 11 | See LICENSE file for full copyright and license info. 12 | -------------------------------------------------------------------------------- /nmigen_stdio/__init__.py: -------------------------------------------------------------------------------- 1 | import pkg_resources 2 | try: 3 | __version__ = pkg_resources.get_distribution(__name__).version 4 | except pkg_resources.DistributionNotFound: 5 | pass 6 | -------------------------------------------------------------------------------- /setup.py: -------------------------------------------------------------------------------- 1 | from setuptools import setup, find_packages 2 | 3 | 4 | def scm_version(): 5 | def local_scheme(version): 6 | if version.tag and not version.distance: 7 | return version.format_with("") 8 | else: 9 | return version.format_choice("+{node}", "+{node}.dirty") 10 | return { 11 | "relative_to": __file__, 12 | "version_scheme": "guess-next-dev", 13 | "local_scheme": local_scheme 14 | } 15 | 16 | 17 | setup( 18 | name="nmigen-stdio", 19 | use_scm_version=scm_version(), 20 | author="whitequark", 21 | author_email="whitequark@whitequark.org", 22 | description="Industry standard I/O for nMigen", 23 | #long_description="""TODO""", 24 | license="BSD", 25 | setup_requires=["setuptools_scm"], 26 | install_requires=["nmigen"], 27 | packages=find_packages(), 28 | project_urls={ 29 | "Source Code": "https://github.com/m-labs/nmigen-stdio", 30 | "Bug Tracker": "https://github.com/m-labs/nmigen-stdio/issues", 31 | }, 32 | ) 33 | --------------------------------------------------------------------------------