Esempio n. 1
0
File: ftl.c Progetto: ESOS-Lab/VSSIM
void FTL_TERM(void)
{
	printf("[FTL_TERM] Start\n");

#ifdef FIRM_IO_BUFFER
	TERM_IO_BUFFER();
#endif

	TERM_DATA_BLOCK_MAPPING();
	TERM_VALID_ARRAY();
	TERM_INVERSE_BLOCK_MAPPING();

	TERM_EMPTY_BLOCK_LIST();

	TERM_SEQ_BLOCK_MAPPING();
	TERM_RAN_COLD_BLOCK_MAPPING();
	TERM_RAN_HOT_BLOCK_MAPPING();
	TERM_LOG_BLOCK_INDEX();

	TERM_HOT_PAGE_LIST();

	TERM_SEQ_LOG_MAPPING();
	TERM_RAN_COLD_LOG_MAPPING();
	TERM_RAN_HOT_LOG_MAPPING();

	TERM_PERF_CHECKER();
#ifdef MONITOR_ON
	TERM_LOG_MANAGER();
#endif

#ifdef DEBUG_MODE3
	fclose(fp_dbg3_ran);
	fclose(fp_dbg3_1_ran);
#endif
#ifdef DEBUG_MODE4
	fclose(fp_dbg4_seq);
	fclose(fp_dbg4_ran);
#endif
#ifdef DEBUG_MODE5
	fclose(fp_dbg5_seq);
	fclose(fp_dbg5_ran);
#endif
#ifdef DEBUG_MODE6
	fclose(fp_dbg6_seq);
	fclose(fp_dbg6_ran);
#endif
#ifdef DEBUG_MODE8
	fclose(fp_dbg8_seq);
	fclose(fp_dbg8_ran);
#endif
	printf("[FTL_TERM] Complete\n");
}
Esempio n. 2
0
File: ftl.c Progetto: windsoul/vssim
void FTL_TERM(void)
{
	printf("[%s] start\n",__FUNCTION__);

	TERM_MAPPING_TABLE();
	TERM_INVERSE_PAGE_MAPPING();
	TERM_VALID_ARRAY();
	TERM_INVERSE_BLOCK_MAPPING();
	TERM_EMPTY_BLOCK_LIST();
	TERM_VICTIM_BLOCK_LIST();
	TERM_PERF_CHECKER();

	printf("[%s] complete\n",__FUNCTION__);
}