The redesign introduces no fundamental incompatibilities, but it does
involve minor breaking changes:
* The simulator commands were moved from hdl.ast to back.pysim
(instead of only being reexported from back.pysim).
* back.pysim.DeadlineError was removed.
Summary of changes:
* The new simulator compiles HDL to Python code and is >6x faster.
(The old one compiled HDL to lots of Python lambdas.)
* The new simulator is a straightforward, rigorous implementation
of the Synchronous Reactive Programming paradigm, instead of
a pile of ad-hoc code with no particular design driving it.
* The new simulator never raises DeadlineError, and there is no
limit on the amount of delta cycles.
* The new simulator robustly handles multiclock designs.
* The new simulator can be reset, such that the compiled design
can be reused, which can save significant runtime with large
designs.
* Generators can no longer be added as processes, since that would
break reset(); only generator functions may be. If necessary,
they may be added by wrapping them into a generator function;
a deprecated fallback does just that. This workaround will raise
an exception if the simulator is reset and restarted.
* The new simulator does not depend on Python extensions.
(The old one required bitarray, which did not provide wheels.)
Fixes #28.
Fixes #34.
Fixes #160.
Fixes #161.
Fixes #215.
Fixes #242.
Fixes #262.
44 lines
1.2 KiB
Python
44 lines
1.2 KiB
Python
from setuptools import setup, find_packages
|
|
|
|
|
|
def scm_version():
|
|
def local_scheme(version):
|
|
if version.tag and not version.distance:
|
|
return version.format_with("")
|
|
else:
|
|
return version.format_choice("+{node}", "+{node}.dirty")
|
|
return {
|
|
"relative_to": __file__,
|
|
"version_scheme": "guess-next-dev",
|
|
"local_scheme": local_scheme
|
|
}
|
|
|
|
|
|
setup(
|
|
name="nmigen",
|
|
use_scm_version=scm_version(),
|
|
author="whitequark",
|
|
author_email="whitequark@whitequark.org",
|
|
description="Python toolbox for building complex digital hardware",
|
|
#long_description="""TODO""",
|
|
license="BSD",
|
|
python_requires="~=3.6",
|
|
setup_requires=["setuptools_scm"],
|
|
install_requires=[
|
|
"setuptools",
|
|
"pyvcd~=0.1.4", # for nmigen.pysim
|
|
"Jinja2", # for nmigen.build
|
|
],
|
|
packages=find_packages(),
|
|
entry_points={
|
|
"console_scripts": [
|
|
"nmigen-rpc = nmigen.rpc:main",
|
|
]
|
|
},
|
|
project_urls={
|
|
#"Documentation": "https://nmigen.readthedocs.io/",
|
|
"Source Code": "https://github.com/m-labs/nmigen",
|
|
"Bug Tracker": "https://github.com/m-labs/nmigen/issues",
|
|
},
|
|
)
|