diff options
author | David Shah <davey1576@gmail.com> | 2018-07-17 12:50:22 +0200 |
---|---|---|
committer | David Shah <davey1576@gmail.com> | 2018-07-17 12:50:22 +0200 |
commit | 0e31a8e26646b86ffbeb409e95a13c0516a0e970 (patch) | |
tree | a28b9305454789967a30e1e514c3a4d65ec73dea /ecp5/cells.cc | |
parent | e6725dcde4184d72b184a898ba63efe9188f518d (diff) | |
download | nextpnr-0e31a8e26646b86ffbeb409e95a13c0516a0e970.tar.gz nextpnr-0e31a8e26646b86ffbeb409e95a13c0516a0e970.tar.bz2 nextpnr-0e31a8e26646b86ffbeb409e95a13c0516a0e970.zip |
ecp5: Adding command line options for device type
Signed-off-by: David Shah <davey1576@gmail.com>
Diffstat (limited to 'ecp5/cells.cc')
-rw-r--r-- | ecp5/cells.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ecp5/cells.cc b/ecp5/cells.cc index 63916acf..13025da9 100644 --- a/ecp5/cells.cc +++ b/ecp5/cells.cc @@ -18,9 +18,9 @@ */ #include "cells.h" +#include "design_utils.h" #include "log.h" #include "util.h" -#include "design_utils.h" NEXTPNR_NAMESPACE_BEGIN @@ -30,8 +30,8 @@ void add_port(const Context *ctx, CellInfo *cell, std::string name, PortType dir cell->ports[id] = PortInfo{id, nullptr, dir}; } - -std::unique_ptr<CellInfo> create_ecp5_cell(Context *ctx, IdString type, std::string name) { +std::unique_ptr<CellInfo> create_ecp5_cell(Context *ctx, IdString type, std::string name) +{ static int auto_idx = 0; std::unique_ptr<CellInfo> new_cell = std::unique_ptr<CellInfo>(new CellInfo()); if (name.empty()) { |