Lines Matching refs:file

52 /* Parses "cache.cfg" file */
1283 fstream file("out.csv", ios::in);
1284 bool print_index = file.fail();
1285 file.close();
1287 file.open("out.csv", ios::out | ios::app);
1288 if (file.fail() == true) {
1292 file << "Tech node (nm), ";
1293 file << "Capacity (bytes), ";
1294 file << "Number of banks, ";
1295 file << "Associativity, ";
1296 file << "Output width (bits), ";
1297 file << "Access time (ns), ";
1298 file << "Random cycle time (ns), ";
1299 file << "Dynamic search energy (nJ), ";
1300 file << "Dynamic read energy (nJ), ";
1301 file << "Dynamic write energy (nJ), ";
1302 file << "Standby leakage per bank(mW), ";
1303 file << "Area (mm2), ";
1304 file << "Ndwl, ";
1305 file << "Ndbl, ";
1306 file << "Nspd, ";
1307 file << "Ndcm, ";
1308 file << "Ndsam_level_1, ";
1309 file << "Ndsam_level_2, ";
1310 file << "Data arrary area efficiency %, ";
1311 file << "Ntwl, ";
1312 file << "Ntbl, ";
1313 file << "Ntspd, ";
1314 file << "Ntcm, ";
1315 file << "Ntsam_level_1, ";
1316 file << "Ntsam_level_2, ";
1317 file << "Tag arrary area efficiency %, ";
1319 // file << "Resistance per unit micron (ohm-micron), ";
1320 // file << "Capacitance per unit micron (fF per micron), ";
1321 // file << "Unit-length wire delay (ps), ";
1322 // file << "FO4 delay (ps), ";
1323 // file << "delay route to bank (including crossb delay) (ps), ";
1324 // file << "Crossbar delay (ps), ";
1325 // file << "Dyn read energy per access from closed page (nJ), ";
1326 // file << "Dyn read energy per access from open page (nJ), ";
1327 // file << "Leak power of an subbank with page closed (mW), ";
1328 // file << "Leak power of a subbank with page open (mW), ";
1329 // file << "Leak power of request and reply networks (mW), ";
1330 // file << "Number of subbanks, ";
1331 // file << "Page size in bits, ";
1332 // file << "Activate power, ";
1333 // file << "Read power, ";
1334 // file << "Write power, ";
1335 // file << "Precharge power, ";
1336 // file << "tRCD, ";
1337 // file << "CAS latency, ";
1338 // file << "Precharge delay, ";
1339 // file << "Perc dyn energy bitlines, ";
1340 // file << "perc dyn energy wordlines, ";
1341 // file << "perc dyn energy outside mat, ";
1342 // file << "Area opt (perc), ";
1343 // file << "Delay opt (perc), ";
1344 // file << "Repeater opt (perc), ";
1345 // file << "Aspect ratio";
1346 file << endl;
1348 file << g_ip->F_sz_nm << ", ";
1349 file << g_ip->cache_sz << ", ";
1350 file << g_ip->nbanks << ", ";
1351 file << g_ip->tag_assoc << ", ";
1352 file << g_ip->out_w << ", ";
1353 file << fin_res.access_time*1e+9 << ", ";
1354 file << fin_res.cycle_time*1e+9 << ", ";
1355 // file << fin_res.data_array2->multisubbank_interleave_cycle_time*1e+9 << ", ";
1356 // file << fin_res.data_array2->delay_request_network*1e+9 << ", ";
1357 // file << fin_res.data_array2->delay_inside_mat*1e+9 << ", ";
1358 // file << fin_res.data_array2.delay_reply_network*1e+9 << ", ";
1362 // file << fin_res.tag_array2->access_time*1e+9 << ", ";
1366 // file << 0 << ", ";
1368 // file << fin_res.data_array2->access_time*1e+9 << ", ";
1369 // file << fin_res.data_array2->dram_refresh_period*1e+6 << ", ";
1370 // file << fin_res.data_array2->dram_array_availability << ", ";
1372 file << fin_res.power.searchOp.dynamic*1e+9 << ", ";
1374 file << "N/A" << ", ";
1376 file << fin_res.power.readOp.dynamic*1e+9 << ", ";
1377 file << fin_res.power.writeOp.dynamic*1e+9 << ", ";
1380 // file << fin_res.tag_array2->power.readOp.dynamic*1e+9 << ", ";
1384 // file << "NA" << ", ";
1386 // file << fin_res.data_array2->power.readOp.dynamic*1e+9 << ", ";
1389 // file << fin_res.power.searchOp.dynamic*1000/fin_res.cycle_time << ", ";
1393 // file << fin_res.power.readOp.dynamic*1000/fin_res.cycle_time << ", ";
1396 file <<( fin_res.power.readOp.leakage + fin_res.power.readOp.gate_leakage )*1000 << ", ";
1397 // file << fin_res.leak_power_with_sleep_transistors_in_mats*1000 << ", ";
1398 // file << fin_res.data_array.refresh_power / fin_res.data_array.total_power.readOp.leakage << ", ";
1399 file << fin_res.area*1e-6 << ", ";
1401 file << fin_res.data_array2->Ndwl << ", ";
1402 file << fin_res.data_array2->Ndbl << ", ";
1403 file << fin_res.data_array2->Nspd << ", ";
1404 file << fin_res.data_array2->deg_bl_muxing << ", ";
1405 file << fin_res.data_array2->Ndsam_lev_1 << ", ";
1406 file << fin_res.data_array2->Ndsam_lev_2 << ", ";
1407 file << fin_res.data_array2->area_efficiency << ", ";
1409 file << fin_res.tag_array2->Ndwl << ", ";
1410 file << fin_res.tag_array2->Ndbl << ", ";
1411 file << fin_res.tag_array2->Nspd << ", ";
1412 file << fin_res.tag_array2->deg_bl_muxing << ", ";
1413 file << fin_res.tag_array2->Ndsam_lev_1 << ", ";
1414 file << fin_res.tag_array2->Ndsam_lev_2 << ", ";
1415 file << fin_res.tag_array2->area_efficiency << ", ";
1417 file << "N/A" << ", ";
1418 file << "N/A"<< ", ";
1419 file << "N/A" << ", ";
1420 file << "N/A" << ", ";
1421 file << "N/A" << ", ";
1422 file << "N/A" << ", ";
1423 file << "N/A" << ", ";
1426 // file << g_tp.wire_inside_mat.R_per_um << ", ";
1427 // file << g_tp.wire_inside_mat.C_per_um / 1e-15 << ", ";
1428 // file << g_tp.unit_len_wire_del / 1e-12 << ", ";
1429 // file << g_tp.FO4 / 1e-12 << ", ";
1430 // file << fin_res.data_array.delay_route_to_bank / 1e-9 << ", ";
1431 // file << fin_res.data_array.delay_crossbar / 1e-9 << ", ";
1432 // file << fin_res.data_array.dyn_read_energy_from_closed_page / 1e-9 << ", ";
1433 // file << fin_res.data_array.dyn_read_energy_from_open_page / 1e-9 << ", ";
1434 // file << fin_res.data_array.leak_power_subbank_closed_page / 1e-3 << ", ";
1435 // file << fin_res.data_array.leak_power_subbank_open_page / 1e-3 << ", ";
1436 // file << fin_res.data_array.leak_power_request_and_reply_networks / 1e-3 << ", ";
1437 // file << fin_res.data_array.number_subbanks << ", " ;
1438 // file << fin_res.data_array.page_size_in_bits << ", " ;
1439 // file << fin_res.data_array.activate_energy * 1e9 << ", " ;
1440 // file << fin_res.data_array.read_energy * 1e9 << ", " ;
1441 // file << fin_res.data_array.write_energy * 1e9 << ", " ;
1442 // file << fin_res.data_array.precharge_energy * 1e9 << ", " ;
1443 // file << fin_res.data_array.trcd * 1e9 << ", " ;
1444 // file << fin_res.data_array.cas_latency * 1e9 << ", " ;
1445 // file << fin_res.data_array.precharge_delay * 1e9 << ", " ;
1446 // file << fin_res.data_array.all_banks_height / fin_res.data_array.all_banks_width;
1447 file<<endl;
1449 file.close();