00001
00002
00003 #include "geometry/GassiplexChip.hh"
00004 #include "geometry/GassiplexChannel.hh"
00005 #include "geometry/Board.hh"
00006
00007 #include <iostream>
00008 #include "tools/Log.hh"
00009
00010 #define NBCHANNEL 96
00011
00012 using namespace std;
00013
00014
00015
00016 GassiplexChip::GassiplexChip(const Board& aBoard, const i32 aCol, const i32 aRow, const ui32 nbColumns,const ui32 nbRows ,const i32 aId ,const ui32 aSerialNumber )
00017 :Chip(aBoard, aCol, aRow, nbColumns, nbRows, aId, aSerialNumber)
00018 {
00019 init();
00020 type = GASSIPLEX_TYPE;
00021 };
00022
00023
00024 void GassiplexChip::init()
00025 {
00026 i32 channelId = id ;
00027 GassiplexChannel* channel = new GassiplexChannel(*this, 0, 0, channelId);
00028 channels.insert(make_pair(channelId,channel));
00029 };