OpenCores
URL https://opencores.org/ocsvn/noc/noc/trunk

Subversion Repositories noc

[/] [noc/] [src/] [power_model.cc] - Blame information for rev 4

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 4 imori
/*
2
 * =====================================================================================
3
 *
4
 *       Filename:  power_model.cc
5
 *
6
 *    Description:
7
 *
8
 *        Version:  1.0
9
 *        Created:  04/14/2009 12:24:57 AM
10
 *       Revision:  none
11
 *       Compiler:  gcc
12
 *
13
 *         Author:  Soontea Kwon (), Kwonst@skku.edu
14
 *        Company:  Mobile Electronics Lab
15
 *
16
 * =====================================================================================
17
 */
18
 
19
#include "power_model.h"
20
 
21
extern double ei_energy;
22
extern double oi_energy;
23
extern double ei_delay;
24
extern double oi_delay;
25
 
26
void Energy_disp(void)
27
{
28
        cout << endl;
29
        cout << "----------------------------------------------------------" << endl;
30
        cout << "Consumption Energy of NoC" << endl;
31
        cout << "Energy of electrical interconnects: " << ei_energy << endl;
32
        cout << "Energy of optical interconnects   : " << oi_energy << endl;;
33
        cout << "total energy                      : " << ei_energy + oi_energy << endl;
34
        cout << "Delay of electrical interconnects : " << ei_delay << endl;
35
        cout << "Delay of optical interconnects    : " << oi_delay << endl;
36
        cout << "Toal Delay                        : " << ei_delay + oi_delay << endl;
37
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.