analysis_fifo.hh revision 13521:74fa3ac44057
112027Sjungma@eit.uni-kl.de/***************************************************************************** 212027Sjungma@eit.uni-kl.de 312027Sjungma@eit.uni-kl.de Licensed to Accellera Systems Initiative Inc. (Accellera) under one or 412027Sjungma@eit.uni-kl.de more contributor license agreements. See the NOTICE file distributed 512027Sjungma@eit.uni-kl.de with this work for additional information regarding copyright ownership. 612027Sjungma@eit.uni-kl.de Accellera licenses this file to you under the Apache License, Version 2.0 712027Sjungma@eit.uni-kl.de (the "License"); you may not use this file except in compliance with the 812027Sjungma@eit.uni-kl.de License. You may obtain a copy of the License at 912027Sjungma@eit.uni-kl.de 1012027Sjungma@eit.uni-kl.de http://www.apache.org/licenses/LICENSE-2.0 1112027Sjungma@eit.uni-kl.de 1212027Sjungma@eit.uni-kl.de Unless required by applicable law or agreed to in writing, software 1312027Sjungma@eit.uni-kl.de distributed under the License is distributed on an "AS IS" BASIS, 1412027Sjungma@eit.uni-kl.de WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 1512027Sjungma@eit.uni-kl.de implied. See the License for the specific language governing 1612027Sjungma@eit.uni-kl.de permissions and limitations under the License. 1712027Sjungma@eit.uni-kl.de 1812027Sjungma@eit.uni-kl.de *****************************************************************************/ 1912027Sjungma@eit.uni-kl.de 2012027Sjungma@eit.uni-kl.de#ifndef __SYSTEMC_EXT_TLM_CORE_1_ANALYSIS_ANALYSIS_FIFO_HH__ 2112027Sjungma@eit.uni-kl.de#define __SYSTEMC_EXT_TLM_CORE_1_ANALYSIS_ANALYSIS_FIFO_HH__ 2212027Sjungma@eit.uni-kl.de 2312027Sjungma@eit.uni-kl.de#include "tlm_core/1/analysis/analysis_if.hh" 2412027Sjungma@eit.uni-kl.de#include "tlm_core/1/analysis/analysis_triple.hh" 2512027Sjungma@eit.uni-kl.de#include "tlm_core/1/req_rsp/channels/fifo/fifo.hh" 2612027Sjungma@eit.uni-kl.de 2712027Sjungma@eit.uni-kl.denamespace tlm 2812027Sjungma@eit.uni-kl.de{ 2912027Sjungma@eit.uni-kl.de 3012027Sjungma@eit.uni-kl.detemplate <typename T> 3112027Sjungma@eit.uni-kl.declass tlm_analysis_fifo : public tlm_fifo<T>, 3212027Sjungma@eit.uni-kl.de public virtual tlm_analysis_if<T>, 3312027Sjungma@eit.uni-kl.de public virtual tlm_analysis_if<tlm_analysis_triple<T>> 3412027Sjungma@eit.uni-kl.de{ 3512027Sjungma@eit.uni-kl.de public: 3612027Sjungma@eit.uni-kl.de // analysis fifo is an unbounded tlm_fifo 3712027Sjungma@eit.uni-kl.de tlm_analysis_fifo(const char *nm) : tlm_fifo<T>(nm, -16) {} 3812027Sjungma@eit.uni-kl.de tlm_analysis_fifo() : tlm_fifo<T>(-16) {} 3912027Sjungma@eit.uni-kl.de 4012027Sjungma@eit.uni-kl.de void write(const tlm_analysis_triple<T> &t) { nb_put(t); } 4112027Sjungma@eit.uni-kl.de void write(const T &t) { nb_put(t); } 4212027Sjungma@eit.uni-kl.de}; 4312027Sjungma@eit.uni-kl.de 4412027Sjungma@eit.uni-kl.de} // namespace tlm 4512027Sjungma@eit.uni-kl.de 4612027Sjungma@eit.uni-kl.de#endif /* __SYSTEMC_EXT_TLM_CORE_1_ANALYSIS_ANALYSIS_FIFO_HH__ */ 4712027Sjungma@eit.uni-kl.de