[xc7] Make clg400 the default package (Zybo)
This commit is contained in:
parent
ac919421f0
commit
4239e3668a
@ -276,7 +276,7 @@ Arch::Arch(ArchArgs args) : args(args)
|
||||
{
|
||||
torc::common::DirectoryTree directoryTree("/opt/torc/src/torc");
|
||||
if (args.type == ArchArgs::Z020) {
|
||||
torc_info = std::unique_ptr<TorcInfo>(new TorcInfo(this, "xc7z020", "clg484"));
|
||||
torc_info = std::unique_ptr<TorcInfo>(new TorcInfo(this, "xc7z020", args.package));
|
||||
} else {
|
||||
log_error("Unsupported XC7 chip type.\n");
|
||||
}
|
||||
|
@ -94,16 +94,16 @@ std::unique_ptr<Context> Xc7CommandHandler::createContext()
|
||||
{
|
||||
if (vm.count("z020")) {
|
||||
chipArgs.type = ArchArgs::Z020;
|
||||
chipArgs.package = "clg484";
|
||||
chipArgs.package = "clg400";
|
||||
}
|
||||
|
||||
if (chipArgs.type == ArchArgs::NONE) {
|
||||
chipArgs.type = ArchArgs::Z020;
|
||||
chipArgs.package = "clg484";
|
||||
chipArgs.package = "clg400";
|
||||
}
|
||||
|
||||
// if (vm.count("package"))
|
||||
// chipArgs.package = vm["package"].as<std::string>();
|
||||
if (vm.count("package"))
|
||||
chipArgs.package = vm["package"].as<std::string>();
|
||||
|
||||
return std::unique_ptr<Context>(new Context(chipArgs));
|
||||
}
|
||||
|
@ -35,7 +35,7 @@ NEXTPNR_NAMESPACE_BEGIN
|
||||
void write_xdl(const Context *ctx, std::ostream &out)
|
||||
{
|
||||
XdlExporter exporter(out);
|
||||
auto designPtr = Factory::newDesignPtr("name", torc_info->ddb->getDeviceName(), "clg484", "-1", "");
|
||||
auto designPtr = Factory::newDesignPtr("name", torc_info->ddb->getDeviceName(), ctx->args.package, "-1", "");
|
||||
|
||||
std::unordered_map<int32_t,InstanceSharedPtr> site_to_instance;
|
||||
std::vector<std::pair<std::string,std::string>> lut_inputs;
|
||||
|
Loading…
Reference in New Issue
Block a user