XOR2.h revision 10448
110152Satgutier@umich.edu/* Copyright (c) 2012 Massachusetts Institute of Technology
210152Satgutier@umich.edu *
310152Satgutier@umich.edu * Permission is hereby granted, free of charge, to any person obtaining a copy
410152Satgutier@umich.edu * of this software and associated documentation files (the "Software"), to deal
510234Syasuko.eckert@amd.com * in the Software without restriction, including without limitation the rights
610152Satgutier@umich.edu * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
710152Satgutier@umich.edu * copies of the Software, and to permit persons to whom the Software is
810152Satgutier@umich.edu * furnished to do so, subject to the following conditions:
910152Satgutier@umich.edu *
1010152Satgutier@umich.edu * The above copyright notice and this permission notice shall be included in
1110152Satgutier@umich.edu * all copies or substantial portions of the Software.
1210152Satgutier@umich.edu *
1310152Satgutier@umich.edu * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1410152Satgutier@umich.edu * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1510152Satgutier@umich.edu * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1610152Satgutier@umich.edu * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1710152Satgutier@umich.edu * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
1810152Satgutier@umich.edu * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
1910152Satgutier@umich.edu * THE SOFTWARE.
2010152Satgutier@umich.edu */
2110152Satgutier@umich.edu
2210152Satgutier@umich.edu#ifndef __DSENT_MODEL_STD_CELLS_XOR2_H__
2310152Satgutier@umich.edu#define __DSENT_MODEL_STD_CELLS_XOR2_H__
2410152Satgutier@umich.edu
2510152Satgutier@umich.edu#include "util/CommonType.h"
2610152Satgutier@umich.edu#include "model/std_cells/StdCell.h"
2710152Satgutier@umich.edu
2810152Satgutier@umich.edunamespace DSENT
2910234Syasuko.eckert@amd.com{
3010152Satgutier@umich.edu    class XOR2 : public StdCell
3110152Satgutier@umich.edu    {
3210152Satgutier@umich.edu        public:
3310152Satgutier@umich.edu            XOR2(const String& instance_name_, const TechModel* tech_model_);
3410152Satgutier@umich.edu            virtual ~XOR2();
3510234Syasuko.eckert@amd.com
3610152Satgutier@umich.edu        public:
3710152Satgutier@umich.edu            // Set a list of properties' name needed to construct model
3810152Satgutier@umich.edu            void initProperties();
3910152Satgutier@umich.edu
4010152Satgutier@umich.edu            // Cache the standard cell
4110152Satgutier@umich.edu            void cacheStdCell(StdCellLib* cell_lib_, double drive_strength_);
4210152Satgutier@umich.edu
4310234Syasuko.eckert@amd.com        protected:
4410234Syasuko.eckert@amd.com            // Build the model
4510234Syasuko.eckert@amd.com            virtual void constructModel();
4610234Syasuko.eckert@amd.com            virtual void updateModel();
4710234Syasuko.eckert@amd.com            virtual void evaluateModel();
4810234Syasuko.eckert@amd.com            virtual void useModel();
4910234Syasuko.eckert@amd.com            virtual void propagateTransitionInfo();
5010234Syasuko.eckert@amd.com
5110234Syasuko.eckert@amd.com    }; // class XOR2
5210234Syasuko.eckert@amd.com} // namespace DSENT
5310234Syasuko.eckert@amd.com
5410234Syasuko.eckert@amd.com#endif // __DSENT_MODEL_STD_CELLS_XOR2_H__
5510234Syasuko.eckert@amd.com
5610234Syasuko.eckert@amd.com