text: /*
   * Copyright (c) 2005-2021 Imperas Software Ltd., www.imperas.com
   *
   * Licensed under the Apache License, Version 2.0 (the "License");
   * you may not use this file except in compliance with the License.
   * You may obtain a copy of the License at
   *
   *   http://www.apache.org/licenses/LICENSE-2.0
   *
   * Unless required by applicable law or agreed to in writing, software
   * distributed under the License is distributed on an "AS IS" BASIS,
   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
   * either express or implied.
   *
   * See the License for the specific language governing permissions and
   * limitations under the License.
   *
   */
  
  
  ////////////////////////////////////////////////////////////////////////////////
  //
  //                W R I T T E N   B Y   I M P E R A S   I G E N
  //
  //                             Version 20211118.0
  //
  ////////////////////////////////////////////////////////////////////////////////
  
  // MODEL IO:
  //    Slave Port bport1
  //    Net input  Reset;
  
  #pragma once
  
  #include "tlm/tlmPeripheral.hpp"
  #include "tlm/tlmBusPort.hpp"
  #include "tlm/tlmNetPort.hpp"
  using namespace sc_core;
  using namespace cw;
  
  class KinetisEWM : public tlmPeripheral
  {
    private:
      const char *getModel() {
          return opVLNVString (NULL, "freescale.ovpworld.org", "peripheral", "KinetisEWM", "1.0", OP_PERIPHERAL, OP_VLNV_FATAL);
      }
  
    public:
      tlmBusSlavePort bport1;
      tlmNetInputPort Reset;
  
      KinetisEWM(tlmModule &parent, sc_module_name name)
          : tlmPeripheral(parent, getModel(), name)
          , bport1(parent, this, "bport1", 0x1000) // static
          , Reset(parent, this, "Reset")
      {
      }
  
      KinetisEWM(tlmModule &parent, sc_module_name name, params p)
          : tlmPeripheral(parent, getModel(), name, p)
          , bport1(parent, this, "bport1", 0x1000) // static
          , Reset(parent, this, "Reset")
      {
      }
  
  }; /* class KinetisEWM */
  
  