Merge pull request #311 from YosysHQ/deprecate-default-package
Add deprecation warning for default packages
This commit is contained in:
commit
67488f780c
@ -220,8 +220,11 @@ std::unique_ptr<Context> ECP5CommandHandler::createContext(std::unordered_map<st
|
|||||||
if (chipArgs.type == ArchArgs::NONE)
|
if (chipArgs.type == ArchArgs::NONE)
|
||||||
chipArgs.type = ArchArgs::LFE5U_45F;
|
chipArgs.type = ArchArgs::LFE5U_45F;
|
||||||
|
|
||||||
if (chipArgs.package.empty())
|
if (chipArgs.package.empty()) {
|
||||||
chipArgs.package = "CABGA381";
|
chipArgs.package = "CABGA381";
|
||||||
|
log_warning("Use of default value for --package is deprecated. Please add '--package %s' to arguments.\n",
|
||||||
|
chipArgs.package.c_str());
|
||||||
|
}
|
||||||
|
|
||||||
if (chipArgs.type == ArchArgs::LFE5UM5G_25F || chipArgs.type == ArchArgs::LFE5UM5G_45F ||
|
if (chipArgs.type == ArchArgs::LFE5UM5G_25F || chipArgs.type == ArchArgs::LFE5UM5G_45F ||
|
||||||
chipArgs.type == ArchArgs::LFE5UM5G_85F) {
|
chipArgs.type == ArchArgs::LFE5UM5G_85F) {
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
set -ex
|
set -ex
|
||||||
yosys blinky.ys
|
yosys blinky.ys
|
||||||
../../../nextpnr-ice40 --json blinky.json --pcf blinky.pcf --asc blinky.asc
|
../../../nextpnr-ice40 --hx1k --package tq144 --json blinky.json --pcf blinky.pcf --asc blinky.asc
|
||||||
icepack blinky.asc blinky.bin
|
icepack blinky.asc blinky.bin
|
||||||
icebox_vlog blinky.asc > blinky_chip.v
|
icebox_vlog blinky.asc > blinky_chip.v
|
||||||
iverilog -o blinky_tb blinky_chip.v blinky_tb.v
|
iverilog -o blinky_tb blinky_chip.v blinky_tb.v
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -ex
|
set -ex
|
||||||
yosys -p "synth_ice40 -top top -json floorplan.json" floorplan.v
|
yosys -p "synth_ice40 -top top -json floorplan.json" floorplan.v
|
||||||
../../../nextpnr-ice40 --up5k --json floorplan.json --pcf icebreaker.pcf --asc floorplan.asc --ignore-loops --pre-place floorplan.py
|
../../../nextpnr-ice40 --package sg48 --up5k --json floorplan.json --pcf icebreaker.pcf --asc floorplan.asc --ignore-loops --pre-place floorplan.py
|
||||||
icepack floorplan.asc floorplan.bin
|
icepack floorplan.asc floorplan.bin
|
||||||
iceprog floorplan.bin
|
iceprog floorplan.bin
|
||||||
|
@ -157,7 +157,6 @@ std::unique_ptr<Context> Ice40CommandHandler::createContext(std::unordered_map<s
|
|||||||
|
|
||||||
if (vm.count("package"))
|
if (vm.count("package"))
|
||||||
chipArgs.package = vm["package"].as<std::string>();
|
chipArgs.package = vm["package"].as<std::string>();
|
||||||
|
|
||||||
if (values.find("arch.name") != values.end()) {
|
if (values.find("arch.name") != values.end()) {
|
||||||
std::string arch_name = values["arch.name"].as_string();
|
std::string arch_name = values["arch.name"].as_string();
|
||||||
if (arch_name != "ice40")
|
if (arch_name != "ice40")
|
||||||
@ -208,6 +207,9 @@ std::unique_ptr<Context> Ice40CommandHandler::createContext(std::unordered_map<s
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
log_warning("Use of default value for --package is deprecated. Please add '--package %s' to arguments.\n",
|
||||||
|
chipArgs.package.c_str());
|
||||||
|
|
||||||
auto ctx = std::unique_ptr<Context>(new Context(chipArgs));
|
auto ctx = std::unique_ptr<Context>(new Context(chipArgs));
|
||||||
for (auto &val : values)
|
for (auto &val : values)
|
||||||
ctx->settings[ctx->id(val.first)] = val.second;
|
ctx->settings[ctx->id(val.first)] = val.second;
|
||||||
|
Loading…
Reference in New Issue
Block a user