aboutsummaryrefslogtreecommitdiffstats
path: root/ecp5
diff options
context:
space:
mode:
Diffstat (limited to 'ecp5')
-rw-r--r--ecp5/arch.cc3
-rw-r--r--ecp5/arch.h2
2 files changed, 2 insertions, 3 deletions
diff --git a/ecp5/arch.cc b/ecp5/arch.cc
index 7f7079bf..2b40e79a 100644
--- a/ecp5/arch.cc
+++ b/ecp5/arch.cc
@@ -141,9 +141,8 @@ Arch::Arch(ArchArgs args) : args(args)
// -----------------------------------------------------------------------
-std::string Arch::getChipName()
+std::string Arch::getChipName() const
{
-
if (args.type == ArchArgs::LFE5U_25F) {
return "LFE5U-25F";
} else if (args.type == ArchArgs::LFE5U_45F) {
diff --git a/ecp5/arch.h b/ecp5/arch.h
index 7d183e11..2421428f 100644
--- a/ecp5/arch.h
+++ b/ecp5/arch.h
@@ -399,7 +399,7 @@ struct Arch : BaseCtx
ArchArgs args;
Arch(ArchArgs args);
- std::string getChipName();
+ std::string getChipName() const;
IdString archId() const { return id("ecp5"); }
IdString archArgsToId(ArchArgs args) const;