amaranth/examples/basic
whitequark 7df70059d1 back.pysim: redesign the simulator.
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.
2019-11-28 21:05:34 +00:00
..
alu.py examples: reorganize into examples/basic and examples/board. 2019-06-03 16:17:37 +00:00
alu_hier.py examples: reorganize into examples/basic and examples/board. 2019-06-03 16:17:37 +00:00
arst.py test: generate examples to verilog as part of unit tests. 2019-07-08 10:12:26 +00:00
cdc.py lib.cdc: MultiReg→FFSynchronizer. 2019-09-23 14:18:45 +00:00
ctr.py examples: reorganize into examples/basic and examples/board. 2019-06-03 16:17:37 +00:00
ctr_en.py back.pysim: redesign the simulator. 2019-11-28 21:05:34 +00:00
fsm.py hdl.ast: deprecate Signal.{range,enum}. 2019-10-11 13:07:42 +00:00
gpio.py examples: reorganize into examples/basic and examples/board. 2019-06-03 16:17:37 +00:00
inst.py examples: reorganize into examples/basic and examples/board. 2019-06-03 16:17:37 +00:00
mem.py examples: reorganize into examples/basic and examples/board. 2019-06-03 16:17:37 +00:00
pmux.py examples: reorganize into examples/basic and examples/board. 2019-06-03 16:17:37 +00:00
por.py hdl.ast: deprecate Signal.{range,enum}. 2019-10-11 13:07:42 +00:00
sel.py back.rtlil: fix lowering of Part() on LHS to account for stride. 2019-10-26 01:52:34 +00:00
uart.py hdl.ast: deprecate Signal.{range,enum}. 2019-10-11 13:07:42 +00:00