VexRiscvConfig.get added

This commit is contained in:
Dolu1990 2021-02-16 14:15:20 +01:00
parent f278900cbe
commit 3b99090879
1 changed files with 5 additions and 0 deletions

View File

@ -29,6 +29,11 @@ case class VexRiscvConfig(){
case None => None
}
}
def get[T](clazz: Class[T]): T = {
plugins.find(_.getClass == clazz) match {
case Some(x) => x.asInstanceOf[T]
}
}
//Default Stageables
object IS_RVC extends Stageable(Bool)