summaryrefslogtreecommitdiff
path: root/src/mem/ruby/network/orion/Crossbar
diff options
context:
space:
mode:
Diffstat (limited to 'src/mem/ruby/network/orion/Crossbar')
-rw-r--r--src/mem/ruby/network/orion/Crossbar/Crossbar.cc393
-rw-r--r--src/mem/ruby/network/orion/Crossbar/Crossbar.hh130
-rw-r--r--src/mem/ruby/network/orion/Crossbar/MatrixCrossbar.cc152
-rw-r--r--src/mem/ruby/network/orion/Crossbar/MatrixCrossbar.hh73
-rw-r--r--src/mem/ruby/network/orion/Crossbar/MultreeCrossbar.cc162
-rw-r--r--src/mem/ruby/network/orion/Crossbar/MultreeCrossbar.hh69
-rw-r--r--src/mem/ruby/network/orion/Crossbar/SConscript36
7 files changed, 0 insertions, 1015 deletions
diff --git a/src/mem/ruby/network/orion/Crossbar/Crossbar.cc b/src/mem/ruby/network/orion/Crossbar/Crossbar.cc
deleted file mode 100644
index 5f0f2206d..000000000
--- a/src/mem/ruby/network/orion/Crossbar/Crossbar.cc
+++ /dev/null
@@ -1,393 +0,0 @@
-/*
- * Copyright (c) 2009 Princeton University
- * Copyright (c) 2009 The Regents of the University of California
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are
- * met: redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer;
- * redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution;
- * neither the name of the copyright holders nor the names of its
- * contributors may be used to endorse or promote products derived from
- * this software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
- * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
- * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
- * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
- * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- *
- * Authors: Hangsheng Wang (Orion 1.0, Princeton)
- * Xinping Zhu (Orion 1.0, Princeton)
- * Xuning Chen (Orion 1.0, Princeton)
- * Bin Li (Orion 2.0, Princeton)
- * Kambiz Samadi (Orion 2.0, UC San Diego)
- */
-
-#include <cassert>
-#include <iostream>
-
-#include "mem/ruby/network/orion/Crossbar/Crossbar.hh"
-#include "mem/ruby/network/orion/Crossbar/MatrixCrossbar.hh"
-#include "mem/ruby/network/orion/Crossbar/MultreeCrossbar.hh"
-#include "mem/ruby/network/orion/OrionConfig.hh"
-#include "mem/ruby/network/orion/TechParameter.hh"
-
-using namespace std;
-
-Crossbar::Crossbar(
- CrossbarModel xbar_model_,
- const string& conn_type_str_,
- const string& trans_type_str_,
- uint32_t num_in_,
- uint32_t num_out_,
- uint32_t data_width_,
- uint32_t num_in_seg_,
- uint32_t num_out_seg_,
- uint32_t degree_,
- const TechParameter* tech_param_ptr_
- )
-{
- m_xbar_model = xbar_model_;
- if (m_xbar_model != NO_MODEL)
- {
- assert((num_in_ == num_in_) && (num_in_ != 0));
- assert((num_out_ == num_out_) && (num_out_ != 0));
- assert((data_width_ == data_width_) && (data_width_ != 0));
- assert(num_in_seg_ == num_in_seg_);
- assert(num_out_seg_ == num_out_seg_);
-
- set_conn_type(conn_type_str_);
- set_trans_type(trans_type_str_);
- m_num_in = num_in_;
- m_num_out = num_out_;
- m_num_in_seg = num_in_seg_;
- m_num_out_seg = num_out_seg_;
- m_data_width = data_width_;
- m_degree = degree_;
- m_tech_param_ptr = tech_param_ptr_;
- }
- else
- {
- cerr << "ERROR at " << __FILE__ << " " << __LINE__ << endl;
- }
-}
-
-Crossbar::~Crossbar()
-{}
-
-double Crossbar::get_static_power() const
-{
- double vdd = m_tech_param_ptr->get_vdd();
- double SCALE_S = m_tech_param_ptr->get_SCALE_S();
- return (m_i_static*vdd*SCALE_S);
-}
-
-void Crossbar::print_all() const
-{
- cout << "Crossbar" << endl;
- cout << "\t" << "Traversal = " << get_dynamic_energy(false) << endl;
- cout << "\t" << "Static power = " << get_static_power() << endl;
- return;
-}
-
-void Crossbar::set_conn_type(const string& conn_type_str_)
-{
- if (conn_type_str_ == string("TRANS_GATE"))
- {
- m_conn_type = TRANS_GATE;
- }
- else if (conn_type_str_ == string("TRISTATE_GATE"))
- {
- m_conn_type = TRISTATE_GATE;
- }
- else
- {
- cerr << "Invalid connect type: '" << conn_type_str_ << "'. Use TRANS_GATE as default." << endl;
- m_conn_type = TRANS_GATE;
- }
- return;
-}
-
-void Crossbar::set_trans_type(const string& trans_type_str_)
-{
- if (trans_type_str_ == string("NP_GATE"))
- {
- m_trans_type = NP_GATE;
- }
- else if (trans_type_str_ == string("N_GATE"))
- {
- m_trans_type = N_GATE;
- }
- else
- {
- cerr << "Invalid trans type: '" << trans_type_str_ << "'. Use N_GATE as default." << endl;
- m_trans_type = N_GATE;
- }
-}
-
-double Crossbar::calc_in_cap()
-{
- double total_cap = 0;
-
- // part 1: wire cap
- total_cap += m_cap_in_wire;
-
- double trans_cap = 0;
- // part 2: drain cap of transmission gate or gate cap of tri-state gate
- if (m_conn_type == TRANS_GATE)
- {
- //FIXME: resizing strategy
- double Wmemcellr = m_tech_param_ptr->get_Wmemcellr();
- double nsize = Wmemcellr;
- double Wdecinvn = m_tech_param_ptr->get_Wdecinvn();
- double Wdecinvp = m_tech_param_ptr->get_Wdecinvp();
- double psize = nsize*Wdecinvp/Wdecinvn;
- trans_cap = m_tech_param_ptr->calc_draincap(nsize, TechParameter::NCH, 1);
- if (m_trans_type == NP_GATE)
- {
- trans_cap += m_tech_param_ptr->calc_draincap(psize, TechParameter::PCH, 1);
- }
- }
- else if (m_conn_type == TRISTATE_GATE)
- {
- double Woutdrvnandn = m_tech_param_ptr->get_Woutdrvnandn();
- double Woutdrvnandp = m_tech_param_ptr->get_Woutdrvnandp();
- double Woutdrvnorn = m_tech_param_ptr->get_Woutdrvnorn();
- double Woutdrvnorp = m_tech_param_ptr->get_Woutdrvnorp();
- trans_cap = m_tech_param_ptr->calc_gatecap(Woutdrvnandn+Woutdrvnandp, 0)
- + m_tech_param_ptr->calc_gatecap(Woutdrvnorn+Woutdrvnorp, 0);
- }
- total_cap += trans_cap*m_num_out;
-
- // segmented crossbar
- if (m_num_in_seg > 1)
- {
- total_cap *= (m_num_in_seg+1)/(m_num_in_seg*2);
- // input capacitance of tri-state buffer
- double Woutdrvnandn = m_tech_param_ptr->get_Woutdrvnandn();
- double Woutdrvnandp = m_tech_param_ptr->get_Woutdrvnandp();
- double Woutdrvnorn = m_tech_param_ptr->get_Woutdrvnorn();
- double Woutdrvnorp = m_tech_param_ptr->get_Woutdrvnorp();
- total_cap += (m_num_in_seg+2)*(m_num_in_seg-1)/(m_num_in_seg*2)*(m_tech_param_ptr->calc_gatecap(Woutdrvnandn+Woutdrvnandp, 0)+m_tech_param_ptr->calc_gatecap(Woutdrvnorn+Woutdrvnorp, 0));
- // output capacitance of tri-state buffer
- double Woutdrivern = m_tech_param_ptr->get_Woutdrivern();
- double Woutdriverp = m_tech_param_ptr->get_Woutdriverp();
- total_cap += (m_num_in_seg-1)/2*(m_tech_param_ptr->calc_draincap(Woutdrivern, TechParameter::NCH, 1)+m_tech_param_ptr->calc_draincap(Woutdriverp, TechParameter::PCH, 1));
- }
-
- // part 3: input driver
- //FIXME: how to specify timing
- double period = m_tech_param_ptr->get_period();
- double psize = m_tech_param_ptr->calc_driver_psize(total_cap, period/3.0);
- double Wdecinvn = m_tech_param_ptr->get_Wdecinvn();
- double Wdecinvp = m_tech_param_ptr->get_Wdecinvp();
- double nsize = psize*Wdecinvn/Wdecinvp;
- total_cap += m_tech_param_ptr->calc_draincap(nsize, TechParameter::NCH, 1)+m_tech_param_ptr->calc_draincap(psize, TechParameter::PCH, 1)+m_tech_param_ptr->calc_gatecap(nsize+psize, 0);
-
- return total_cap/2.0;
-}
-
-double Crossbar::calc_out_cap(uint32_t num_in_)
-{
- double total_cap = 0;
-
- // part 1: wire cap
- total_cap += m_cap_out_wire;
-
- double trans_cap = 0;
- // part 2: drain cap of transmission gate or tri-state gate
- if (m_conn_type == TRANS_GATE)
- {
- // FIXME: resizing strategy
- double Wmemcellr = m_tech_param_ptr->get_Wmemcellr();
- double nsize = Wmemcellr;
- double Wdecinvn = m_tech_param_ptr->get_Wdecinvn();
- double Wdecinvp = m_tech_param_ptr->get_Wdecinvp();
- double psize = nsize*Wdecinvp/Wdecinvn;
-
- trans_cap = m_tech_param_ptr->calc_draincap(nsize, TechParameter::NCH, 1);
- if (m_trans_type == NP_GATE)
- {
- trans_cap += m_tech_param_ptr->calc_draincap(psize, TechParameter::PCH, 1);
- }
- }
- else if (m_conn_type == TRISTATE_GATE)
- {
- double Woutdrivern = m_tech_param_ptr->get_Woutdrivern();
- double Woutdriverp = m_tech_param_ptr->get_Woutdriverp();
- trans_cap = m_tech_param_ptr->calc_draincap(Woutdrivern, TechParameter::NCH, 1)+m_tech_param_ptr->calc_draincap(Woutdriverp, TechParameter::PCH, 1);
- }
- total_cap += trans_cap*num_in_;
-
- // segmented crossbar
- if (m_num_out_seg > 1)
- {
- total_cap *= (m_num_out_seg+1)/(m_num_out_seg*2);
- // input capacitance of tri-state buffer
- double Woutdrvnandn = m_tech_param_ptr->get_Woutdrvnandn();
- double Woutdrvnandp = m_tech_param_ptr->get_Woutdrvnandp();
- double Woutdrvnorn = m_tech_param_ptr->get_Woutdrvnorn();
- double Woutdrvnorp = m_tech_param_ptr->get_Woutdrvnorp();
- total_cap += (m_num_out_seg+2)*(m_num_out_seg-1)/(m_num_out_seg*2)*(m_tech_param_ptr->calc_gatecap(Woutdrvnandn+Woutdrvnandp, 0)+m_tech_param_ptr->calc_gatecap(Woutdrvnorn+Woutdrvnorp, 0));
- // output capacitance of tri-state buffer
- double Woutdrivern = m_tech_param_ptr->get_Woutdrivern();
- double Woutdriverp = m_tech_param_ptr->get_Woutdriverp();
- total_cap += (m_num_out_seg-1)/2*(m_tech_param_ptr->calc_draincap(Woutdrivern, TechParameter::NCH, 1)+m_tech_param_ptr->calc_draincap(Woutdriverp, TechParameter::PCH, 1));
- }
-
- // part 3: output driver
- double Woutdrivern = m_tech_param_ptr->get_Woutdrivern();
- double Woutdriverp = m_tech_param_ptr->get_Woutdriverp();
- total_cap += m_tech_param_ptr->calc_draincap(Woutdrivern, TechParameter::NCH, 1)+m_tech_param_ptr->calc_draincap(Woutdriverp, TechParameter::PCH, 1)+m_tech_param_ptr->calc_gatecap(Woutdrivern+Woutdriverp, 0);
-
- return total_cap/2.0;
-}
-
-double Crossbar::calc_int_cap()
-{
- double total_cap = 0;
-
- if (m_conn_type == TRANS_GATE)
- {
- // part 1: drain cap of transmission gate
- //FIXME: Wmemcellr and resize
- double Wmemcellr = m_tech_param_ptr->get_Wmemcellr();
- double nsize = Wmemcellr;
- double trans_cap = m_tech_param_ptr->calc_draincap(nsize, TechParameter::NCH, 1);
- if (m_trans_type == NP_GATE)
- {
- double Wdecinvn = m_tech_param_ptr->get_Wdecinvn();
- double Wdecinvp = m_tech_param_ptr->get_Wdecinvp();
- double psize = nsize*Wdecinvp/Wdecinvn;
- trans_cap += m_tech_param_ptr->calc_draincap(psize, TechParameter::PCH, 1);
- }
- total_cap += trans_cap*(m_degree+1);
- }
- else if (m_conn_type == TRISTATE_GATE)
- {
- // part 1: drain cap of tri-state gate
- double Woutdrivern = m_tech_param_ptr->get_Woutdrivern();
- double Woutdriverp = m_tech_param_ptr->get_Woutdriverp();
-
- double trans_cap = (m_tech_param_ptr->calc_draincap(Woutdrivern, TechParameter::NCH, 1)+m_tech_param_ptr->calc_draincap(Woutdriverp, TechParameter::PCH, 1))*m_degree;
- // part 2: gate cap of tri-state gate
- double Woutdrvnandn = m_tech_param_ptr->get_Woutdrvnandn();
- double Woutdrvnandp = m_tech_param_ptr->get_Woutdrvnandp();
- double Woutdrvnorn = m_tech_param_ptr->get_Woutdrvnorn();
- double Woutdrvnorp = m_tech_param_ptr->get_Woutdrvnorp();
- trans_cap += m_tech_param_ptr->calc_gatecap(Woutdrvnandn+Woutdrvnandp, 0)+m_tech_param_ptr->calc_gatecap(Woutdrvnorn+Woutdrvnorp, 0);
- total_cap += trans_cap;
- }
-
- return total_cap/2.0;
-}
-
-double Crossbar::calc_ctr_cap(double cap_wire_, bool prev_ctr_, bool next_ctr_)
-{
- double total_cap = 0;
-
- // part 1: wire cap
- total_cap += cap_wire_;
-
- double trans_cap = 0;
- // part 2: gate cap of transmission gate or tri-state gate
- if (m_conn_type == TRANS_GATE)
- {
- //FIXME Wmemcellr and resize
- double Wmemcellr = m_tech_param_ptr->get_Wmemcellr();
- double nsize = Wmemcellr;
- trans_cap = m_tech_param_ptr->calc_gatecap(nsize, 0);
- if (m_trans_type == NP_GATE)
- {
- double Wdecinvn = m_tech_param_ptr->get_Wdecinvn();
- double Wdecinvp = m_tech_param_ptr->get_Wdecinvp();
- double psize = nsize*Wdecinvp/Wdecinvn;
- trans_cap += m_tech_param_ptr->calc_gatecap(psize, 0);
- }
- }
- else if (m_conn_type == TRISTATE_GATE)
- {
- double Woutdrvnandn = m_tech_param_ptr->get_Woutdrvnandn();
- double Woutdrvnandp = m_tech_param_ptr->get_Woutdrvnandp();
- double Woutdrvnorn = m_tech_param_ptr->get_Woutdrvnorn();
- double Woutdrvnorp = m_tech_param_ptr->get_Woutdrvnorp();
- trans_cap = m_tech_param_ptr->calc_gatecap(Woutdrvnandn+Woutdrvnandp, 0)
- + m_tech_param_ptr->calc_gatecap(Woutdrvnorn+Woutdrvnorp, 0);
- }
- total_cap += trans_cap*m_data_width;
-
- // part 3: inverter
- if (!((m_conn_type == TRANS_GATE) && (m_trans_type == N_GATE) && (!prev_ctr_)))
- {
- double Wdecinvn = m_tech_param_ptr->get_Wdecinvn();
- double Wdecinvp = m_tech_param_ptr->get_Wdecinvp();
- total_cap += m_tech_param_ptr->calc_draincap(Wdecinvn, TechParameter::NCH, 1)+m_tech_param_ptr->calc_draincap(Wdecinvp, TechParameter::PCH, 1)
- + m_tech_param_ptr->calc_gatecap(Wdecinvn+Wdecinvp, 0);
- }
-
- double WdecNORn = m_tech_param_ptr->get_WdecNORn();
- double WdecNORp = m_tech_param_ptr->get_WdecNORp();
- // part 4: drain cap of previous level control signal
- if (prev_ctr_)
- {
- // FIXME: need actual size, use decoder data for now
- total_cap += m_degree*m_tech_param_ptr->calc_draincap(WdecNORn, TechParameter::NCH, 1)
- +m_tech_param_ptr->calc_draincap(WdecNORp, TechParameter::PCH, m_degree);
- }
-
- // part 5: gate cap of next level control signal
- if (next_ctr_)
- {
- // FIXME: need actual size, use decoder data for now
- total_cap += m_tech_param_ptr->calc_gatecap(WdecNORn+WdecNORp, m_degree*40+20);
- }
-
- return total_cap;
-}
-
-Crossbar* Crossbar::create_crossbar(
- const string& xbar_model_str_,
- uint32_t num_in_,
- uint32_t num_out_,
- uint32_t data_width_,
- const OrionConfig* orion_cfg_ptr_
- )
-{
- if (xbar_model_str_ == string("MATRIX_CROSSBAR"))
- {
- const string& conn_type_str = orion_cfg_ptr_->get<string>("CROSSBAR_CONNECT_TYPE");
- const string& trans_type_str = orion_cfg_ptr_->get<string>("CROSSBAR_TRANS_GATE_TYPE");
- uint32_t num_in_seg = orion_cfg_ptr_->get<uint32_t>("CROSSBAR_NUM_IN_SEG");
- uint32_t num_out_seg = orion_cfg_ptr_->get<uint32_t>("CROSSBAR_NUM_OUT_SEG");
- double len_in_wire = orion_cfg_ptr_->get<double>("CROSSBAR_LEN_IN_WIRE");
- double len_out_wire = orion_cfg_ptr_->get<double>("CROSSBAR_LEN_OUT_WIRE");
- const TechParameter* tech_param_ptr = orion_cfg_ptr_->get_tech_param_ptr();
- return new MatrixCrossbar(conn_type_str, trans_type_str,
- num_in_, num_out_, data_width_, num_in_seg, num_out_seg,
- len_in_wire, len_out_wire, tech_param_ptr);
- }
- else if (xbar_model_str_ == string("MULTREE_CROSSBAR"))
- {
- const string& conn_type_str = orion_cfg_ptr_->get<string>("CROSSBAR_CONNECT_TYPE");
- const string& trans_type_str = orion_cfg_ptr_->get<string>("CROSSBAR_TRANS_GATE_TYPE");
- uint32_t degree = orion_cfg_ptr_->get<uint32_t>("CROSSBAR_MUX_DEGREE");
- const TechParameter* tech_param_ptr = orion_cfg_ptr_->get_tech_param_ptr();
- return new MultreeCrossbar(conn_type_str, trans_type_str,
- num_in_, num_out_, data_width_, degree, tech_param_ptr);
- }
- else
- {
- cerr << "WARNING: No Crossbar model" << endl;
- return (Crossbar*)NULL;
- }
-}
diff --git a/src/mem/ruby/network/orion/Crossbar/Crossbar.hh b/src/mem/ruby/network/orion/Crossbar/Crossbar.hh
deleted file mode 100644
index 977387b90..000000000
--- a/src/mem/ruby/network/orion/Crossbar/Crossbar.hh
+++ /dev/null
@@ -1,130 +0,0 @@
-/*
- * Copyright (c) 2009 Princeton University
- * Copyright (c) 2009 The Regents of the University of California
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are
- * met: redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer;
- * redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution;
- * neither the name of the copyright holders nor the names of its
- * contributors may be used to endorse or promote products derived from
- * this software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
- * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
- * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
- * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
- * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- *
- * Authors: Hangsheng Wang (Orion 1.0, Princeton)
- * Xinping Zhu (Orion 1.0, Princeton)
- * Xuning Chen (Orion 1.0, Princeton)
- * Bin Li (Orion 2.0, Princeton)
- * Kambiz Samadi (Orion 2.0, UC San Diego)
- */
-
-#ifndef __CROSSBAR_H__
-#define __CROSSBAR_H__
-
-#include "mem/ruby/network/orion/Type.hh"
-
-class TechParameter;
-class OrionConfig;
-
-class Crossbar
-{
- public:
- enum CrossbarModel
- {
- NO_MODEL = 0,
- MATRIX_CROSSBAR,
- MULTREE_CROSSBAR
- };
- enum ConnectType
- {
- TRANS_GATE,
- TRISTATE_GATE
- };
- enum TransType
- {
- N_GATE,
- NP_GATE
- };
-
- public:
- Crossbar(
- CrossbarModel xbar_model_,
- const string& conn_type_str_,
- const string& trans_type_str_,
- uint32_t num_in_,
- uint32_t num_out_,
- uint32_t data_width_,
- uint32_t num_in_seg_,
- uint32_t num_out_seg_,
- uint32_t degree_,
- const TechParameter* tech_param_ptr_
- );
- virtual ~Crossbar() = 0;
-
- public:
- double get_len_req_wire() const { return m_len_req_wire; }
-
- virtual double get_dynamic_energy(bool is_max_) const = 0;
- double get_static_power() const;
-
- void print_all() const;
-
- protected:
- void set_conn_type(const string& conn_type_str_);
- void set_trans_type(const string& trans_type_str_);
- double calc_in_cap();
- double calc_out_cap(uint32_t num_in_);
- double calc_int_cap();
- double calc_ctr_cap(double cap_wire_, bool prev_ctr_, bool next_ctr_);
- virtual double calc_i_static() = 0;
-
- protected:
- CrossbarModel m_xbar_model;
- ConnectType m_conn_type;
- TransType m_trans_type;
- uint32_t m_num_in;
- uint32_t m_num_out;
- uint32_t m_data_width;
- uint32_t m_num_in_seg;
- uint32_t m_num_out_seg;
- uint32_t m_degree;
- const TechParameter* m_tech_param_ptr;
-
- double m_cap_in_wire;
- double m_cap_out_wire;
- double m_cap_ctr_wire;
- double m_len_req_wire;
-
- double m_e_chg_in;
- double m_e_chg_out;
- double m_e_chg_ctr;
- double m_e_chg_int;
-
- double m_i_static;
-
- public:
- static Crossbar* create_crossbar(
- const string& xbar_model_str_,
- uint32_t num_in_,
- uint32_t num_out_,
- uint32_t data_width_,
- const OrionConfig* orion_cfg_ptr_
- );
-};
-
-#endif
diff --git a/src/mem/ruby/network/orion/Crossbar/MatrixCrossbar.cc b/src/mem/ruby/network/orion/Crossbar/MatrixCrossbar.cc
deleted file mode 100644
index e398d9a46..000000000
--- a/src/mem/ruby/network/orion/Crossbar/MatrixCrossbar.cc
+++ /dev/null
@@ -1,152 +0,0 @@
-/*
- * Copyright (c) 2009 Princeton University
- * Copyright (c) 2009 The Regents of the University of California
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are
- * met: redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer;
- * redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution;
- * neither the name of the copyright holders nor the names of its
- * contributors may be used to endorse or promote products derived from
- * this software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
- * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
- * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
- * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
- * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- *
- * Authors: Hangsheng Wang (Orion 1.0, Princeton)
- * Xinping Zhu (Orion 1.0, Princeton)
- * Xuning Chen (Orion 1.0, Princeton)
- * Bin Li (Orion 2.0, Princeton)
- * Kambiz Samadi (Orion 2.0, UC San Diego)
- */
-
-#include <cassert>
-#include <iostream>
-
-#include "mem/ruby/network/orion/Crossbar/MatrixCrossbar.hh"
-#include "mem/ruby/network/orion/TechParameter.hh"
-
-using namespace std;
-
-MatrixCrossbar::MatrixCrossbar(
- const string& conn_type_str_,
- const string& trans_type_str_,
- uint32_t num_in_,
- uint32_t num_out_,
- uint32_t data_width_,
- uint32_t num_in_seg_,
- uint32_t num_out_seg_,
- double len_in_wire_,
- double len_out_wire_,
- const TechParameter* tech_param_ptr_
- ) : Crossbar(
- MATRIX_CROSSBAR, conn_type_str_, trans_type_str_,
- num_in_, num_out_, data_width_, num_in_seg_, num_out_seg_,
- 0, tech_param_ptr_)
-{
- assert(len_in_wire_ == len_in_wire_);
- assert(len_out_wire_ == len_out_wire_);
-
- m_len_in_wire = len_in_wire_;
- m_len_out_wire = len_out_wire_;
- init();
-}
-
-MatrixCrossbar::~MatrixCrossbar()
-{}
-
-double MatrixCrossbar::get_dynamic_energy(bool is_max_) const
-{
- double e_atomic;
- double e_access = 0;
-
- e_atomic = m_e_chg_in*m_data_width*(is_max_? 1:0.5);
- e_access += e_atomic;
-
- e_atomic = m_e_chg_out*m_data_width*(is_max_? 1:0.5);
- e_access += e_atomic;
-
- e_atomic = m_e_chg_ctr;
- e_access += e_atomic;
-
- return e_access;
-}
-
-void MatrixCrossbar::init()
-{
- // FIXME: need accurate spacing
- double CrsbarCellWidth = m_tech_param_ptr->get_CrsbarCellWidth();
- double CrsbarCellHeight = m_tech_param_ptr->get_CrsbarCellHeight();
- double len_in = m_num_out*m_data_width*CrsbarCellWidth;
- double len_out = m_num_in*m_data_width*CrsbarCellHeight;
- if(len_in > m_len_in_wire) m_len_in_wire = len_in;
- if(len_out > m_len_out_wire) m_len_out_wire = len_out;
- double CC3metal = m_tech_param_ptr->get_CC3metal();
- m_cap_in_wire = CC3metal*m_len_in_wire;
- m_cap_out_wire = CC3metal*m_len_out_wire;
- double Cmetal = m_tech_param_ptr->get_Cmetal();
- m_cap_ctr_wire = Cmetal*m_len_in_wire/2.0;
- m_len_req_wire = m_len_in_wire;
-
- double e_factor = m_tech_param_ptr->get_EnergyFactor();
- m_e_chg_in = calc_in_cap()*e_factor;
- m_e_chg_out = calc_out_cap(m_num_out)*e_factor;
- //FIXME: wire length estimation, really reset?
- //control signal should reset after transmission is done, so no 1/2
- m_e_chg_ctr = calc_ctr_cap(m_cap_ctr_wire, 0, 0)*e_factor;
- m_e_chg_int = 0;
-
- m_i_static = calc_i_static();
- return;
-}
-
-double MatrixCrossbar::calc_i_static()
-{
- double Woutdrvnandn = m_tech_param_ptr->get_Woutdrvnandn();
- double Woutdrvnandp = m_tech_param_ptr->get_Woutdrvnandp();
- double Woutdrvnorn = m_tech_param_ptr->get_Woutdrvnorn();
- double Woutdrvnorp = m_tech_param_ptr->get_Woutdrvnorp();
- double Wdecinvn = m_tech_param_ptr->get_Wdecinvn();
- double Wdecinvp = m_tech_param_ptr->get_Wdecinvp();
- double Woutdrivern = m_tech_param_ptr->get_Woutdrivern();
- double Woutdriverp = m_tech_param_ptr->get_Woutdriverp();
- double NAND2_TAB_0 = m_tech_param_ptr->get_NAND2_TAB(0);
- double NAND2_TAB_1 = m_tech_param_ptr->get_NAND2_TAB(1);
- double NAND2_TAB_2 = m_tech_param_ptr->get_NAND2_TAB(2);
- double NAND2_TAB_3 = m_tech_param_ptr->get_NAND2_TAB(3);
- double NOR2_TAB_0 = m_tech_param_ptr->get_NOR2_TAB(0);
- double NOR2_TAB_1 = m_tech_param_ptr->get_NOR2_TAB(1);
- double NOR2_TAB_2 = m_tech_param_ptr->get_NOR2_TAB(2);
- double NOR2_TAB_3 = m_tech_param_ptr->get_NOR2_TAB(3);
- double NMOS_TAB_0 = m_tech_param_ptr->get_NMOS_TAB(0);
- double PMOS_TAB_0 = m_tech_param_ptr->get_PMOS_TAB(0);
-
- double i_static = 0;
- // tri-state buffers
- i_static += ((Woutdrvnandp*(NAND2_TAB_0+NAND2_TAB_1+NAND2_TAB_2)+Woutdrvnandn*NAND2_TAB_3)/4
- + (Woutdrvnorp*NOR2_TAB_0+Woutdrvnorn*(NOR2_TAB_1+NOR2_TAB_2+NOR2_TAB_3))/4
- + Woutdrivern*NMOS_TAB_0+Woutdriverp*PMOS_TAB_0)*m_num_in*m_num_out*m_data_width;
-
- // input driver
- i_static += (Wdecinvn*NMOS_TAB_0+Wdecinvp*PMOS_TAB_0)*m_num_in*m_data_width;
-
- // output driver
- i_static += (Woutdrivern*NMOS_TAB_0+Woutdriverp*PMOS_TAB_0)*m_num_out*m_data_width;
-
- // control siganl inverter
- i_static += (Wdecinvn*NMOS_TAB_0+Wdecinvp*PMOS_TAB_0)*m_num_in*m_num_out;
- return i_static;
-}
diff --git a/src/mem/ruby/network/orion/Crossbar/MatrixCrossbar.hh b/src/mem/ruby/network/orion/Crossbar/MatrixCrossbar.hh
deleted file mode 100644
index 0a99209f7..000000000
--- a/src/mem/ruby/network/orion/Crossbar/MatrixCrossbar.hh
+++ /dev/null
@@ -1,73 +0,0 @@
-/*
- * Copyright (c) 2009 Princeton University
- * Copyright (c) 2009 The Regents of the University of California
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are
- * met: redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer;
- * redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution;
- * neither the name of the copyright holders nor the names of its
- * contributors may be used to endorse or promote products derived from
- * this software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
- * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
- * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
- * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
- * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- *
- * Authors: Hangsheng Wang (Orion 1.0, Princeton)
- * Xinping Zhu (Orion 1.0, Princeton)
- * Xuning Chen (Orion 1.0, Princeton)
- * Bin Li (Orion 2.0, Princeton)
- * Kambiz Samadi (Orion 2.0, UC San Diego)
- */
-
-#ifndef __MATRIXCROSSBAR_H__
-#define __MATRIXCROSSBAR_H__
-
-#include "mem/ruby/network/orion/Crossbar/Crossbar.hh"
-#include "mem/ruby/network/orion/Type.hh"
-
-class TechParameter;
-
-class MatrixCrossbar : public Crossbar
-{
- public:
- MatrixCrossbar(
- const string& conn_type_str_,
- const string& trans_type_str_,
- uint32_t num_in_,
- uint32_t num_out_,
- uint32_t data_width_,
- uint32_t num_in_seg_,
- uint32_t num_out_seg_,
- double len_in_wire_,
- double len_out_wire_,
- const TechParameter* tech_param_ptr_
- );
- ~MatrixCrossbar();
-
- public:
- double get_dynamic_energy(bool is_max_) const;
-
- private:
- void init();
- double calc_i_static();
-
- private:
- double m_len_in_wire;
- double m_len_out_wire;
-};
-
-#endif
diff --git a/src/mem/ruby/network/orion/Crossbar/MultreeCrossbar.cc b/src/mem/ruby/network/orion/Crossbar/MultreeCrossbar.cc
deleted file mode 100644
index 00a3f090f..000000000
--- a/src/mem/ruby/network/orion/Crossbar/MultreeCrossbar.cc
+++ /dev/null
@@ -1,162 +0,0 @@
-/*
- * Copyright (c) 2009 Princeton University
- * Copyright (c) 2009 The Regents of the University of California
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are
- * met: redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer;
- * redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution;
- * neither the name of the copyright holders nor the names of its
- * contributors may be used to endorse or promote products derived from
- * this software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
- * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
- * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
- * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
- * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- *
- * Authors: Hangsheng Wang (Orion 1.0, Princeton)
- * Xinping Zhu (Orion 1.0, Princeton)
- * Xuning Chen (Orion 1.0, Princeton)
- * Bin Li (Orion 2.0, Princeton)
- * Kambiz Samadi (Orion 2.0, UC San Diego)
- */
-
-#include <cmath>
-#include <iostream>
-
-#include "mem/ruby/network/orion/Crossbar/MultreeCrossbar.hh"
-#include "mem/ruby/network/orion/TechParameter.hh"
-
-using namespace std;
-
-MultreeCrossbar::MultreeCrossbar(
- const string& conn_type_str_,
- const string& trans_type_str_,
- uint32_t num_in_,
- uint32_t num_out_,
- uint32_t data_width_,
- uint32_t degree_,
- const TechParameter *tech_param_ptr_
- ) : Crossbar(
- MULTREE_CROSSBAR, conn_type_str_, trans_type_str_,
- num_in_, num_out_, data_width_, 0, 0, degree_, tech_param_ptr_)
-{
- m_len_req_wire = 0;
- init();
-}
-
-MultreeCrossbar::~MultreeCrossbar()
-{}
-
-double MultreeCrossbar::get_dynamic_energy(bool is_max_) const
-{
- double e_atomic;
- double e_access = 0;
-
- e_atomic = m_e_chg_in*m_data_width*(is_max_? 1:0.5);
- e_access += e_atomic;
-
- e_atomic = m_e_chg_out*m_data_width*(is_max_? 1:0.5);
- e_access += e_atomic;
-
- e_atomic = m_e_chg_ctr;
- e_access += e_atomic;
-
- if (m_depth > 1)
- {
- e_atomic = m_e_chg_int*m_data_width*(m_depth-1)*(is_max_? 1:0.5);
- e_access += e_atomic;
- }
-
- return e_access;
-}
-
-void MultreeCrossbar::init()
-{
- double CrsbarCellWidth = m_tech_param_ptr->get_CrsbarCellWidth();
- double CCmetal = m_tech_param_ptr->get_CCmetal();
- double Lamda = m_tech_param_ptr->get_Lamda();
- double CC3metal = m_tech_param_ptr->get_CC3metal();
-
- double len_in_wire;
- // input wire horizontal segment length
- len_in_wire = m_num_in*m_data_width*CrsbarCellWidth*(m_num_out/2);
- m_cap_in_wire = len_in_wire*CCmetal;
- // input wire vertical segment length
- len_in_wire = m_num_in*m_data_width*(5*Lamda)*(m_num_out/2);
- m_cap_in_wire += len_in_wire*CC3metal;
- m_cap_out_wire = 0;
-
- double Cmetal = m_tech_param_ptr->get_Cmetal();
- double len_ctr_wire = m_num_in*m_data_width*CrsbarCellWidth*(m_num_out/2)/2;
- m_cap_ctr_wire = Cmetal*len_ctr_wire;
-
- double e_factor = m_tech_param_ptr->get_EnergyFactor();
- m_e_chg_in = calc_in_cap()*e_factor;
- m_e_chg_out = calc_out_cap(m_degree)*e_factor;
- m_e_chg_int = calc_int_cap()*e_factor;
-
- m_depth = (uint32_t)ceil(log((double)m_num_in)/log((double)m_degree));
-
- // control signal should reset after transmission is done
- if (m_depth == 1)
- {
- // only one level of control sigal
- m_e_chg_ctr = calc_ctr_cap(m_cap_ctr_wire, 0, 0)*e_factor;
- }
- else
- {
- // first level and last level control signals
- m_e_chg_ctr = calc_ctr_cap(m_cap_ctr_wire, 0, 1)*e_factor + calc_ctr_cap(0, 1, 0)*e_factor;
- // intermediate control signals
- if (m_depth > 2)
- {
- m_e_chg_ctr += (m_depth-2)*calc_ctr_cap(0, 1, 1)*e_factor;
- }
- }
-
- m_i_static = calc_i_static();
-}
-
-double MultreeCrossbar::calc_i_static()
-{
- double Wdecinvn = m_tech_param_ptr->get_Wdecinvn();
- double Wdecinvp = m_tech_param_ptr->get_Wdecinvp();
- double Woutdrivern = m_tech_param_ptr->get_Woutdrivern();
- double Woutdriverp = m_tech_param_ptr->get_Woutdriverp();
- double WdecNORn = m_tech_param_ptr->get_WdecNORn();
- double WdecNORp = m_tech_param_ptr->get_WdecNORp();
- double NOR2_TAB_0 = m_tech_param_ptr->get_NOR2_TAB(0);
- double NOR2_TAB_1 = m_tech_param_ptr->get_NOR2_TAB(1);
- double NOR2_TAB_2 = m_tech_param_ptr->get_NOR2_TAB(2);
- double NOR2_TAB_3 = m_tech_param_ptr->get_NOR2_TAB(3);
- double NMOS_TAB_0 = m_tech_param_ptr->get_NMOS_TAB(0);
- double PMOS_TAB_0 = m_tech_param_ptr->get_PMOS_TAB(0);
-
- double i_static = 0;
-
- // input driver
- i_static += (Wdecinvn*NMOS_TAB_0+Wdecinvp*PMOS_TAB_0)*m_num_in*m_data_width;
-
- // output driver
- i_static += (Woutdrivern*NMOS_TAB_0+Woutdriverp*PMOS_TAB_0)*m_num_out*m_data_width;
-
- // mux
- i_static += (WdecNORp*NOR2_TAB_0+WdecNORn*(NOR2_TAB_1+NOR2_TAB_2+NOR2_TAB_3))/4*(2*m_num_in-1)*m_num_out*m_data_width;
-
- // control signal inverter
- i_static += (Wdecinvn*NMOS_TAB_0+Wdecinvp*PMOS_TAB_0)*m_num_in*m_num_out;
- return i_static;
-}
diff --git a/src/mem/ruby/network/orion/Crossbar/MultreeCrossbar.hh b/src/mem/ruby/network/orion/Crossbar/MultreeCrossbar.hh
deleted file mode 100644
index dddb2fda4..000000000
--- a/src/mem/ruby/network/orion/Crossbar/MultreeCrossbar.hh
+++ /dev/null
@@ -1,69 +0,0 @@
-/*
- * Copyright (c) 2009 Princeton University
- * Copyright (c) 2009 The Regents of the University of California
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are
- * met: redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer;
- * redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution;
- * neither the name of the copyright holders nor the names of its
- * contributors may be used to endorse or promote products derived from
- * this software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
- * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
- * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
- * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
- * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- *
- * Authors: Hangsheng Wang (Orion 1.0, Princeton)
- * Xinping Zhu (Orion 1.0, Princeton)
- * Xuning Chen (Orion 1.0, Princeton)
- * Bin Li (Orion 2.0, Princeton)
- * Kambiz Samadi (Orion 2.0, UC San Diego)
- */
-
-#ifndef __MULTREECROSSBAR_H__
-#define __MULTREECROSSBAR_H__
-
-#include "mem/ruby/network/orion/Crossbar/Crossbar.hh"
-#include "mem/ruby/network/orion/Type.hh"
-
-class TechParameter;
-
-class MultreeCrossbar : public Crossbar
-{
- public:
- MultreeCrossbar(
- const string& conn_type_str_,
- const string& trans_type_str_,
- uint32_t num_in_,
- uint32_t num_out_,
- uint32_t data_width_,
- uint32_t degree_,
- const TechParameter* tech_param_ptr_
- );
- ~MultreeCrossbar();
-
- public:
- double get_dynamic_energy(bool is_max_) const;
-
- private:
- void init();
- double calc_i_static();
-
- private:
- uint32_t m_depth;
-};
-
-#endif
diff --git a/src/mem/ruby/network/orion/Crossbar/SConscript b/src/mem/ruby/network/orion/Crossbar/SConscript
deleted file mode 100644
index 710046978..000000000
--- a/src/mem/ruby/network/orion/Crossbar/SConscript
+++ /dev/null
@@ -1,36 +0,0 @@
-# Copyright (c) 2010 Massachusetts Institute of Technology
-# All rights reserved.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions are
-# met: redistributions of source code must retain the above copyright
-# notice, this list of conditions and the following disclaimer;
-# redistributions in binary form must reproduce the above copyright
-# notice, this list of conditions and the following disclaimer in the
-# documentation and/or other materials provided with the distribution;
-# neither the name of the copyright holders nor the names of its
-# contributors may be used to endorse or promote products derived from
-# this software without specific prior written permission.
-#
-# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-#
-# Authors: Tushar Krishna
-
-Import('*')
-
-if env['PROTOCOL'] == 'None':
- Return()
-
-Source('Crossbar.cc')
-Source('MatrixCrossbar.cc')
-Source('MultreeCrossbar.cc')