From 48744429da65a6bbd18e162a57e458da7ae65c75 Mon Sep 17 00:00:00 2001
From: Joseph Paturel <jpaturel@taran-cao2.irisa.fr>
Date: Wed, 26 Mar 2025 11:00:28 +0100
Subject: [PATCH] cache_remap fix suggestions

Fixes the fix itself...
---
 cache_remap/cache_remap_suggestion.cpp | 2 +-
 cache_remap/cache_remap_suggestion.h   | 2 +-
 scripts/catapult_asic_cache_remap.tcl  | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/cache_remap/cache_remap_suggestion.cpp b/cache_remap/cache_remap_suggestion.cpp
index 58afda2..525d2ac 100644
--- a/cache_remap/cache_remap_suggestion.cpp
+++ b/cache_remap/cache_remap_suggestion.cpp
@@ -6,7 +6,7 @@ ac_int<1,false> secretBit[16][4];		// one bit per line for secret marking
   ac_int<1,false> remapBit[16][4];			//one bit per line for remaped on encryption
   ac_int<32,false> remap_addr[16][4];
 
-void cache_remap(ac_int <32,false> req_addr, ac_int <32,false> sec_addr, ac_in<32, false> &remapped_address)
+void cache_remap(ac_int <32,false> req_addr, ac_int <32,false> sec_addr, ac_int<32, false> &remapped_address)
 {
  	ac_int<4, false> place = req_addr.slc<4>(8);
  	//try
diff --git a/cache_remap/cache_remap_suggestion.h b/cache_remap/cache_remap_suggestion.h
index fdca414..135c36e 100644
--- a/cache_remap/cache_remap_suggestion.h
+++ b/cache_remap/cache_remap_suggestion.h
@@ -6,6 +6,6 @@
 
 
 
-void cache_remap(ac_int <32,false> req_addr, ac_int <32,false> sec_addr, ac_in<32, false> &remapped_address);
+void cache_remap(ac_int <32,false> req_addr, ac_int <32,false> sec_addr, ac_int<32, false> &remapped_address);
 
 #endif //__CACHE_REMAP_H__
diff --git a/scripts/catapult_asic_cache_remap.tcl b/scripts/catapult_asic_cache_remap.tcl
index 8a0b280..a6dfe0a 100644
--- a/scripts/catapult_asic_cache_remap.tcl
+++ b/scripts/catapult_asic_cache_remap.tcl
@@ -10,7 +10,7 @@ solution options set ComponentLibs/SearchPath /opt/PDK/catapult_libs -append
 solution options set /Input/CompilerFlags {-D __CATAPULT__ -D __HLS__}
 solution options set /Input/SearchPath $WORKING_DIR/../cache_remap
 solution options set /Output/GenerateCycleNetlist false
-solution file add $WORKING_DIR/../cache_remap/cache_remap.cpp -type C++
+solution file add $WORKING_DIR/../cache_remap/cache_remap_suggestion.cpp -type C++
 
 directive set -DESIGN_GOAL area
 
-- 
GitLab