From 086bc941a8e60c21737db24d86d608f83bb6a471 Mon Sep 17 00:00:00 2001 From: Clifford Wolf Date: Sat, 4 Aug 2018 11:52:35 +0200 Subject: Remove SVG functionality from ice40 main Signed-off-by: Clifford Wolf --- ice40/main.cc | 31 ------------------------------- 1 file changed, 31 deletions(-) (limited to 'ice40') diff --git a/ice40/main.cc b/ice40/main.cc index 46cdce71..b9eee627 100644 --- a/ice40/main.cc +++ b/ice40/main.cc @@ -45,26 +45,6 @@ USING_NEXTPNR_NAMESPACE -void svg_dump_decal(const Context *ctx, const DecalXY &decal) -{ - const float scale = 10.0, offset = 10.0; - const std::string style = "stroke=\"black\" stroke-width=\"0.1\" fill=\"none\""; - - for (auto &el : ctx->getDecalGraphics(decal.decal)) { - if (el.type == GraphicElement::TYPE_BOX) { - std::cout << "\n"; - } - - if (el.type == GraphicElement::TYPE_LINE) { - std::cout << "\n"; - } - } -} - void conflicting_options(const boost::program_options::variables_map &vm, const char *opt1, const char *opt2) { if (vm.count(opt1) && !vm[opt1].defaulted() && vm.count(opt2) && !vm[opt2].defaulted()) { @@ -91,7 +71,6 @@ int main(int argc, char *argv[]) #ifndef NO_GUI options.add_options()("gui", "start gui"); #endif - options.add_options()("svg", "dump SVG file"); options.add_options()("pack-only", "pack design only without placement or routing"); po::positional_options_description pos; @@ -332,16 +311,6 @@ int main(int argc, char *argv[]) ctx->placer_constraintWeight = vm["cstrweight"].as(); } - if (vm.count("svg")) { - std::cout << "\n"; - for (auto bel : ctx->getBels()) { - std::cout << "\n"; - svg_dump_decal(ctx.get(), ctx->getBelDecal(bel)); - } - std::cout << "\n"; - } - if (vm.count("test")) ctx->archcheck(); -- cgit v1.2.3