DFFQ.h revision 10448:bc1a3b7ab5ef
12623SN/A/* Copyright (c) 2012 Massachusetts Institute of Technology
28926Sandreas.hansson@arm.com *
38926Sandreas.hansson@arm.com * Permission is hereby granted, free of charge, to any person obtaining a copy
48926Sandreas.hansson@arm.com * of this software and associated documentation files (the "Software"), to deal
58926Sandreas.hansson@arm.com * in the Software without restriction, including without limitation the rights
68926Sandreas.hansson@arm.com * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
78926Sandreas.hansson@arm.com * copies of the Software, and to permit persons to whom the Software is
88926Sandreas.hansson@arm.com * furnished to do so, subject to the following conditions:
98926Sandreas.hansson@arm.com *
108926Sandreas.hansson@arm.com * The above copyright notice and this permission notice shall be included in
118926Sandreas.hansson@arm.com * all copies or substantial portions of the Software.
128926Sandreas.hansson@arm.com *
138926Sandreas.hansson@arm.com * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
142623SN/A * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
152623SN/A * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
162623SN/A * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
172623SN/A * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
182623SN/A * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
192623SN/A * THE SOFTWARE.
202623SN/A */
212623SN/A
222623SN/A#ifndef __DSENT_MODEL_STD_CELLS_DFFQ_H__
232623SN/A#define __DSENT_MODEL_STD_CELLS_DFFQ_H__
242623SN/A
252623SN/A#include "util/CommonType.h"
262623SN/A#include "model/std_cells/StdCell.h"
272623SN/A#include "model/TransitionInfo.h"
282623SN/A
292623SN/Anamespace DSENT
302623SN/A{
312623SN/A    class DFFQ : public StdCell
322623SN/A    {
332623SN/A        // A DQ flip-flop
342623SN/A        public:
352623SN/A            DFFQ(const String& instance_name_, const TechModel* tech_model_);
362623SN/A            virtual ~DFFQ();
372623SN/A
382623SN/A        public:
392665Ssaidi@eecs.umich.edu            // Set a list of properties' name needed to construct model
402665Ssaidi@eecs.umich.edu            void initProperties();
412623SN/A            // Cache the standard cell
422623SN/A            void cacheStdCell(StdCellLib* cell_lib_, double drive_strength_);
433170Sstever@eecs.umich.edu
448105Sgblack@eecs.umich.edu        private:
452623SN/A            TransitionInfo m_trans_M_;
464040Ssaidi@eecs.umich.edu
476658Snate@binkert.org        protected:
488229Snate@binkert.org            // Build the model
492623SN/A            virtual void constructModel();
508232Snate@binkert.org            virtual void updateModel();
518232Snate@binkert.org            virtual void evaluateModel();
523348Sbinkertn@umich.edu            virtual void useModel();
533348Sbinkertn@umich.edu            virtual void propagateTransitionInfo();
548926Sandreas.hansson@arm.com
554762Snate@binkert.org    }; // class DFFQ
567678Sgblack@eecs.umich.edu} // namespace DSENT
572901Ssaidi@eecs.umich.edu
588779Sgblack@eecs.umich.edu#endif // __DSENT_MODEL_STD_CELLS_INV_H__
592623SN/A
602623SN/A