aboutsummaryrefslogtreecommitdiffstats
path: root/ice40/arch_pybindings.h
diff options
context:
space:
mode:
authorDavid Shah <dave@ds0.me>2021-02-05 11:32:09 +0000
committerGitHub <noreply@github.com>2021-02-05 11:32:09 +0000
commitb0f9b7834e4cb035d1fd60f0fa1948c0fdfa233c (patch)
treed8b70c19580030a1ee28431b5d2287a0ae1690da /ice40/arch_pybindings.h
parent40d026e6fc5ab94c732682c62a6803bd3140953e (diff)
parent450bfae86cc807e4aec8d3b725169fd044212079 (diff)
downloadnextpnr-b0f9b7834e4cb035d1fd60f0fa1948c0fdfa233c.tar.gz
nextpnr-b0f9b7834e4cb035d1fd60f0fa1948c0fdfa233c.tar.bz2
nextpnr-b0f9b7834e4cb035d1fd60f0fa1948c0fdfa233c.zip
Merge pull request #570 from litghost/make_id_string_list_explicit
Mark IdString and IdStringList single argument constructors explicit.
Diffstat (limited to 'ice40/arch_pybindings.h')
-rw-r--r--ice40/arch_pybindings.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/ice40/arch_pybindings.h b/ice40/arch_pybindings.h
index dd3161ae..401fae91 100644
--- a/ice40/arch_pybindings.h
+++ b/ice40/arch_pybindings.h
@@ -30,7 +30,7 @@ namespace PythonConversion {
template <> struct string_converter<BelId>
{
- BelId from_str(Context *ctx, std::string name) { return ctx->getBelByName(ctx->id(name)); }
+ BelId from_str(Context *ctx, std::string name) { return ctx->getBelByName(IdStringList::parse(ctx, name)); }
std::string to_str(Context *ctx, BelId id)
{
@@ -42,7 +42,7 @@ template <> struct string_converter<BelId>
template <> struct string_converter<WireId>
{
- WireId from_str(Context *ctx, std::string name) { return ctx->getWireByName(ctx->id(name)); }
+ WireId from_str(Context *ctx, std::string name) { return ctx->getWireByName(IdStringList::parse(ctx, name)); }
std::string to_str(Context *ctx, WireId id)
{
@@ -54,7 +54,7 @@ template <> struct string_converter<WireId>
template <> struct string_converter<const WireId>
{
- WireId from_str(Context *ctx, std::string name) { return ctx->getWireByName(ctx->id(name)); }
+ WireId from_str(Context *ctx, std::string name) { return ctx->getWireByName(IdStringList::parse(ctx, name)); }
std::string to_str(Context *ctx, WireId id)
{
@@ -66,7 +66,7 @@ template <> struct string_converter<const WireId>
template <> struct string_converter<PipId>
{
- PipId from_str(Context *ctx, std::string name) { return ctx->getPipByName(ctx->id(name)); }
+ PipId from_str(Context *ctx, std::string name) { return ctx->getPipByName(IdStringList::parse(ctx, name)); }
std::string to_str(Context *ctx, PipId id)
{