OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [orpsocv2/] [bench/] [sysc/] [include/] [TapActionIRScan.h] - Diff between revs 63 and 462

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 63 Rev 462
Line 26... Line 26...
 
 
// ----------------------------------------------------------------------------
// ----------------------------------------------------------------------------
 
 
// $Id$
// $Id$
 
 
 
 
#ifndef TAP_ACTION_IR_SCAN__H
#ifndef TAP_ACTION_IR_SCAN__H
#define TAP_ACTION_IR_SCAN__H
#define TAP_ACTION_IR_SCAN__H
 
 
#include <stdint.h>
#include <stdint.h>
 
 
#include "TapAction.h"
#include "TapAction.h"
#include "TapStateMachine.h"
#include "TapStateMachine.h"
 
 
 
 
//! Class to represent a TAP IR-Scan action.
//! Class to represent a TAP IR-Scan action.
 
 
//! This class assumes that JTAG instruction registers are relatively
//! This class assumes that JTAG instruction registers are relatively
//! small. IEEE 1149.1 mandates at least 2 bits, although implementations
//! small. IEEE 1149.1 mandates at least 2 bits, although implementations
//! often have a wider range of instructions. The OpenRISC 1000 debug unit for
//! often have a wider range of instructions. The OpenRISC 1000 debug unit for
//! example uses 5 bits. 32-bits seems more than enough for the largest
//! example uses 5 bits. 32-bits seems more than enough for the largest
//! applications.
//! applications.
 
 
class TapActionIRScan
class TapActionIRScan:public TapAction {
  : public TapAction
 
{
 
public:
public:
 
 
  // Constructor
  // Constructor
  TapActionIRScan (sc_core::sc_event *_doneEvent,
  TapActionIRScan (sc_core::sc_event *_doneEvent,
                   uint32_t           _iRegIn,
                        uint32_t _iRegIn, int _iRegSize);
                   int                _iRegSize);
 
 
 
  // Get the shifted out value
  // Get the shifted out value
  uint32_t  getIRegOut ();
  uint32_t  getIRegOut ();
 
 
 
 
protected:
protected:
 
 
  // Process the action for IR-Scan
  // Process the action for IR-Scan
  bool  process (TapStateMachine *tapStateMachine,
  bool  process (TapStateMachine *tapStateMachine,
                 bool            &tdi,
                      bool & tdi, bool tdo, bool & tms);
                 bool             tdo,
 
                 bool            &tms);
 
 
 
 
 
private:
private:
 
 
  //! The value being shifted in
  //! The value being shifted in
  uint32_t  iRegIn;
  uint32_t  iRegIn;

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.