Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: m-labs/nmigen
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: be6c16d0a28b
Choose a base ref
...
head repository: m-labs/nmigen
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 88649defdad3
Choose a head ref
  • 1 commit
  • 1 file changed
  • 1 contributor

Commits on Oct 13, 2019

  1. vendor.lattice_ice40: use pcf files instead of pre-pack Python scripts.

    This allows to use nextpnr-ice40 built without Python with nMigen.
    Requires nextpnr revision
    YosysHQ/nextpnr@8c0610e or newer.
    whitequark committed Oct 13, 2019
    Copy the full SHA
    88649de View commit details
Showing with 3 additions and 8 deletions.
  1. +3 −8 nmigen/vendor/lattice_ice40.py
11 changes: 3 additions & 8 deletions nmigen/vendor/lattice_ice40.py
Original file line number Diff line number Diff line change
@@ -126,19 +126,14 @@ class LatticeICE40Platform(TemplatedPlatform):
{{get_override("script_after_synth")|default("# (script_after_synth placeholder)")}}
write_json {{name}}.json
""",
"{{name}}_pre_pack.py": r"""
# {{autogenerated}}
{% for signal, frequency in platform.iter_clock_constraints() -%}
{# Clock in MHz #}
ctx.addClock("{{signal|hierarchy(".")}}", {{frequency/1000000}})
{% endfor%}
{{get_override("add_pre_pack")|default("# (add_pre_pack placeholder)")}}
""",
"{{name}}.pcf": r"""
# {{autogenerated}}
{% for port_name, pin_name, attrs in platform.iter_port_constraints_bits() -%}
set_io {{port_name}} {{pin_name}}
{% endfor %}
{% for signal, frequency in platform.iter_clock_constraints() -%}
set_frequency "{{signal|hierarchy(".")}}" {{frequency/1000000}}
{% endfor%}
{{get_override("add_constraints")|default("# (add_constraints placeholder)")}}
""",
}