diff options
author | D. Shah <dave@ds0.me> | 2021-01-29 13:30:56 +0000 |
---|---|---|
committer | D. Shah <dave@ds0.me> | 2021-02-02 17:00:32 +0000 |
commit | d792bce0fb03529ee57b6f6ed5b0c234f503e452 (patch) | |
tree | dbc54e0d44ccd0ecfcb4a8c746e00ab2bdfa148b /ecp5/arch_pybindings.h | |
parent | 9614d3722929f99520c6b83600641c14ef37188b (diff) | |
download | nextpnr-d792bce0fb03529ee57b6f6ed5b0c234f503e452.tar.gz nextpnr-d792bce0fb03529ee57b6f6ed5b0c234f503e452.tar.bz2 nextpnr-d792bce0fb03529ee57b6f6ed5b0c234f503e452.zip |
ecp5: Implement IdStringList for all arch object names
This is a complete implementation of IdStringList for ECP5; excluding
the GUI (which you will have to disable for it to build).
Signed-off-by: D. Shah <dave@ds0.me>
Diffstat (limited to 'ecp5/arch_pybindings.h')
-rw-r--r-- | ecp5/arch_pybindings.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ecp5/arch_pybindings.h b/ecp5/arch_pybindings.h index 90c7c757..4228f12b 100644 --- a/ecp5/arch_pybindings.h +++ b/ecp5/arch_pybindings.h @@ -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->getWireByNameStr(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->getWireByNameStr(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->getPipByNameStr(name); } std::string to_str(Context *ctx, PipId id) { |