Skip to content

Commit

Permalink
add PerfCCT frame, record inst lifetime
Browse files Browse the repository at this point in the history
fix DPIC module reset

temp
  • Loading branch information
tastynoob committed Dec 9, 2024
1 parent 880e574 commit 72e4a53
Show file tree
Hide file tree
Showing 2 changed files with 421 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/scala/utility/ChiselDB.scala
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,7 @@ object ChiselDB {
def init(enable: Boolean): Unit = {
// Not needed at the moment
this.enable = enable
PerfCCT.init(enable)
}

def createTable[T <: Record](tableName: String, hw: T, basicDB: Boolean = false): Table[T] = {
Expand Down Expand Up @@ -329,6 +330,7 @@ object ChiselDB {
|sqlite3 *mem_db;
|char *zErrMsg;
|int rc;
|extern void init_perfcct(char *((*select_db_list)[256]), int select_db_num);
|
|${table_map.keys.map(t => "bool enable_dump_" + t + " = true;\n").mkString("","\n","\n")}
|
Expand Down Expand Up @@ -367,6 +369,7 @@ object ChiselDB {
| }
|${table_map.keys.map(t => " enable_dump_" + t + " = false;").mkString("\n")}
|${table_map.keys.map(t => select_enable_assign(t)).mkString("\n")}
| init_perfcct(&select_db_list, select_db_num);
| }
|
|${table_map.keys.map(t => " init_db_" + t + "();").mkString("\n")}
Expand All @@ -379,6 +382,7 @@ object ChiselDB {
def addToFileRegisters = {
FileRegisters.add("chisel_db.h", getCHeader)
FileRegisters.add("chisel_db.cpp", getCpp)
PerfCCT.addToFileRegisters
}

}
Loading

0 comments on commit 72e4a53

Please sign in to comment.