Changeset 378 for trunk/platforms


Ignore:
Timestamp:
Apr 18, 2013, 3:33:14 PM (11 years ago)
Author:
joannou
Message:

Introducing tsar_generic_xbar platform

Location:
trunk/platforms/tsar_generic_xbar
Files:
4 deleted
4 edited
5 copied

Legend:

Unmodified
Added
Removed
  • trunk/platforms/tsar_generic_xbar/Makefile

    r344 r378  
    1 
    21simul.x: top.cpp top.desc
    32        soclib-cc -P -p top.desc -I. -o simul.x
     
    65        soclib-cc -x -p top.desc -I.
    76        rm -rf *.o *.x tty*
    8 
  • trunk/platforms/tsar_generic_xbar/soclib.conf

    r351 r378  
    11config.default.toolchain.set("cflags", config.default.toolchain.cflags + ['-DI_WANT_ILLEGAL_VCI'])
    22
    3 #config.addDescPath("/path/to/tsar/trunk/lib/")
    4 #config.addDescPath("/path/to/tsar/trunk/modules/")
    5 #config.addDescPath("/path/to/tsar/branches/v5/modules/")
    6 #config.addDescPath("/path/to/tsar/branches/v5/communication/")
     3config.addDescPath("/dsk/l1/misc/joannou/tsar/trunk/")
  • trunk/platforms/tsar_generic_xbar/top.cpp

    r370 r378  
    8484#include "gdbserver.h"
    8585#include "mapping_table.h"
    86 #include "tsarv5_cluster_mmu.h"
     86#include "tsar_xbar_cluster.h"
    8787#include "alloc_elems.h"
    8888
     
    538538   ////////////////////////////
    539539
    540    TsarV5ClusterMmu<vci_param, proc_iss, cmd_width, rsp_width>* clusters[CLUSTER_X][CLUSTER_Y];
     540   TsarXbarCluster<vci_param, proc_iss, cmd_width, rsp_width>* clusters[CLUSTER_X][CLUSTER_Y];
    541541
    542542#if USE_OPENMP
     
    556556            std::ostringstream sc;
    557557            sc << "cluster_" << x << "_" << y;
    558             clusters[x][y] = new TsarV5ClusterMmu<vci_param, proc_iss, cmd_width, rsp_width>
     558            clusters[x][y] = new TsarXbarCluster<vci_param, proc_iss, cmd_width, rsp_width>
    559559            (
    560560                sc.str().c_str(),
  • trunk/platforms/tsar_generic_xbar/top.desc

    r344 r378  
    44todo = Platform('caba', 'top.cpp',
    55        uses = [
    6             Uses('caba:tsarv5_cluster_mmu',
     6            Uses('caba:tsar_xbar_cluster',
    77                 iss_t = 'common:gdb_iss',
    88                 gdb_iss_t = 'common:mips32el',
    99                 cmd_width = 40,
    1010                 rsp_width = 33),
    11             Uses('common:elf_file_loader'),
     11                Uses('common:elf_file_loader'),
    1212            Uses('common:plain_file_loader'),
    1313        ],
  • trunk/platforms/tsar_generic_xbar/tsar_xbar_cluster/caba/metadata/tsar_xbar_cluster.sd

    r371 r378  
    22# -*- python -*-
    33
    4 Module('caba:tsarv5_cluster_mmu',
    5         classname = 'soclib::caba::TsarV5ClusterMmu',
     4Module('caba:tsar_xbar_cluster',
     5        classname = 'soclib::caba::TsarXbarCluster',
    66        tmpl_parameters = [
    77                parameter.Module('vci_param', default = 'caba:vci_param'),
     
    1010                parameter.Int('rsp_width'),
    1111                ],
    12         header_files = [ '../source/include/tsarv5_cluster_mmu.h', ],
    13         implementation_files = [ '../source/src/tsarv5_cluster_mmu.cpp', ],
     12        header_files = [ '../source/include/tsar_xbar_cluster.h', ],
     13        implementation_files = [ '../source/src/tsar_xbar_cluster.cpp', ],
    1414        uses = [
    1515                Uses('caba:base_module'),
     
    3636        Uses('caba:virtual_dspin_router',
    3737                     flit_width = parameter.Reference('rsp_width')),
    38         Uses('caba:vci_vdspin_target_wrapper',
    39                      dspin_cmd_width = parameter.Reference('cmd_width'),
    40                      dspin_rsp_width = parameter.Reference('rsp_width')),
    41         Uses('caba:vci_vdspin_initiator_wrapper',
    42                      dspin_cmd_width = parameter.Reference('cmd_width'),
    43                      dspin_rsp_width = parameter.Reference('rsp_width')),
    4438                Uses('caba:vci_multi_tty'),
    4539                Uses('caba:vci_framebuffer'),
    4640                Uses('caba:vci_multi_nic'),
    47                 Uses('caba:vci_block_device_tsar_v4'),
     41                Uses('caba:vci_block_device_tsar'),
    4842                Uses('caba:vci_multi_dma'),
    4943                Uses('common:elf_file_loader'),
  • trunk/platforms/tsar_generic_xbar/tsar_xbar_cluster/caba/source/include/tsar_xbar_cluster.h

    r371 r378  
    11//////////////////////////////////////////////////////////////////////////////
    2 // File: tsarv5_cluster_mmu.h
     2// File: tsar_xbar_cluster_mmu.h
    33// Author: Alain Greiner
    44// Copyright: UPMC/LIP6
     
    77//////////////////////////////////////////////////////////////////////////////
    88
    9 #ifndef SOCLIB_CABA_TSAR_CLUSTER_V5_MMU_H
    10 #define SOCLIB_CABA_TSAR_CLUSTER_V5_MMU_H
     9#ifndef SOCLIB_CABA_TSAR_XBAR_CLUSTER_H
     10#define SOCLIB_CABA_TSAR_XBAR_CLUSTER_H
    1111
    1212#include <systemc>
     
    2828#include "vci_multi_tty.h"
    2929#include "vci_multi_nic.h"
    30 #include "vci_block_device_tsar_v4.h"
     30#include "vci_block_device_tsar.h"
    3131#include "vci_framebuffer.h"
    3232#include "vci_multi_dma.h"
     
    3838///////////////////////////////////////////////////////////////////////////
    3939template<typename vci_param, typename iss_t, int cmd_width, int rsp_width>
    40 class TsarV5ClusterMmu
     40class TsarXbarCluster
    4141///////////////////////////////////////////////////////////////////////////
    4242    : public soclib::caba::BaseModule
     
    150150    VciDspinTargetWrapper<vci_param,cmd_width,rsp_width>*       wt_mnic;
    151151
    152     VciBlockDeviceTsarV4<vci_param>*                            bdev;
     152    VciBlockDeviceTsar<vci_param>*                              bdev;
    153153    VciDspinInitiatorWrapper<vci_param,cmd_width,rsp_width>*    wi_bdev;
    154154    VciDspinTargetWrapper<vci_param,cmd_width,rsp_width>*       wt_bdev;
     
    162162    VirtualDspinRouter<rsp_width>*                              router_rsp;
    163163
    164         TsarV5ClusterMmu(sc_module_name                     insname,
     164        TsarXbarCluster( sc_module_name                     insname,
    165165                     size_t                             nb_procs,      // number of processors
    166166                     size_t                             nb_ttys,       // number of TTY terminals
     
    204204                     bool                               proc_debug_ok);
    205205
    206         ~TsarV5ClusterMmu();
     206        ~TsarXbarCluster();
    207207};
    208208}}
  • trunk/platforms/tsar_generic_xbar/tsar_xbar_cluster/caba/source/src/tsar_xbar_cluster.cpp

    r371 r378  
    11//////////////////////////////////////////////////////////////////////////////
    2 // File: tsarv5_cluster_mmu.c
     2// File: tsar_xbar_cluster.cpp
    33// Author: Alain Greiner
    44// Copyright: UPMC/LIP6
     
    2424//////////////////////////////////////////////////////////////////////////////////
    2525
    26 #include "../include/tsarv5_cluster_mmu.h"
     26#include "../include/tsar_xbar_cluster.h"
    2727
    2828namespace soclib {
     
    3333//////////////////////////////////////////////////////////////////////////
    3434template<typename vci_param, typename iss_t, int cmd_width, int rsp_width>
    35 TsarV5ClusterMmu<vci_param, iss_t, cmd_width, rsp_width>::TsarV5ClusterMmu(
     35TsarXbarCluster<vci_param, iss_t, cmd_width, rsp_width>::TsarXbarCluster(
    3636         sc_module_name                     insname,
    3737         size_t                             nb_procs,
     
    343343        std::cout << "  - building bdev" << std::endl;
    344344
    345         bdev = new VciBlockDeviceTsarV4<vci_param>(
     345        bdev = new VciBlockDeviceTsar<vci_param>(
    346346                        "bdev",
    347347                        mtd,
     
    712712///////////////////////////////////////////////////////////////////////////
    713713template<typename vci_param, typename iss_t, int cmd_width, int rsp_width>
    714 TsarV5ClusterMmu<vci_param, iss_t, cmd_width, rsp_width>::~TsarV5ClusterMmu() {}
     714TsarXbarCluster<vci_param, iss_t, cmd_width, rsp_width>::~TsarXbarCluster() {}
    715715
    716716}
Note: See TracChangeset for help on using the changeset viewer.