mirror of https://github.com/YosysHQ/nextpnr.git
clangformat
This commit is contained in:
parent
36045543c7
commit
f245185da8
|
|
@ -28,8 +28,8 @@
|
|||
#include <streambuf>
|
||||
#include "config.h"
|
||||
#include "log.h"
|
||||
#include "util.h"
|
||||
#include "pio.h"
|
||||
#include "util.h"
|
||||
|
||||
#define fmt_str(x) (static_cast<const std::ostringstream &>(std::ostringstream() << x).str())
|
||||
|
||||
|
|
@ -431,8 +431,7 @@ struct MachXO2Bitgen
|
|||
if (opendrain_capable(io_type, dir)) {
|
||||
cc.tiles[pic_tile].add_enum(pio + ".OPENDRAIN", str_or_default(ci->attrs, id_OPENDRAIN, "OFF"));
|
||||
is_opendrain = true;
|
||||
}
|
||||
else
|
||||
} else
|
||||
log_error("IO of type %s and direction %s cannot be set to opendrain\n", iotype.c_str(), dir.c_str());
|
||||
}
|
||||
|
||||
|
|
@ -445,7 +444,8 @@ struct MachXO2Bitgen
|
|||
if (ci->attrs.count(id_CLAMP))
|
||||
cc.tiles[pic_tile].add_enum(pio + ".CLAMP", str_or_default(ci->attrs, id_CLAMP, "OFF"));
|
||||
if (ci->attrs.count(id_PULLMODE) || dir == "INPUT")
|
||||
cc.tiles[pic_tile].add_enum(pio + ".PULLMODE", str_or_default(ci->attrs, id_PULLMODE, is_lvcmos(io_type) ? "DOWN" : "NONE"));
|
||||
cc.tiles[pic_tile].add_enum(pio + ".PULLMODE", str_or_default(ci->attrs, id_PULLMODE,
|
||||
is_lvcmos(io_type) ? "DOWN" : "NONE"));
|
||||
}
|
||||
|
||||
if (ci->attrs.count(id_DRIVE) && !is_differential(io_type) && dir != "INPUT") {
|
||||
|
|
|
|||
Loading…
Reference in New Issue