From 95b68a4b1f9dbe7870f8c733787cd0cf124c0911 Mon Sep 17 00:00:00 2001 From: Jiuyang Liu Date: Wed, 17 Apr 2024 00:44:15 +0800 Subject: [PATCH] [emu] remove final to allow DPIModule name override for inhouse emulator --- emuhelper/src/DPIModuleLegacy.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/emuhelper/src/DPIModuleLegacy.scala b/emuhelper/src/DPIModuleLegacy.scala index c1aba384c..aa3895f43 100644 --- a/emuhelper/src/DPIModuleLegacy.scala +++ b/emuhelper/src/DPIModuleLegacy.scala @@ -20,7 +20,7 @@ abstract class DPIModuleLegacy with HasExtModuleInline { // C Style - final override def desiredName: String = "[A-Z\\d]".r.replaceAllIn(super.desiredName, { m => + override def desiredName: String = "[A-Z\\d]".r.replaceAllIn(super.desiredName, { m => (if(m.end(0) == 1) "" else "_") + m.group(0).toLowerCase() })