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

Subversion Repositories w11

[/] [w11/] [tags/] [w11a_V0.7/] [tools/] [src/] [librw11/] [Rw11Cpu.cpp] - Diff between revs 22 and 25

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

Rev 22 Rev 25
Line 1... Line 1...
// $Id: Rw11Cpu.cpp 521 2013-05-20 22:16:45Z mueller $
// $Id: Rw11Cpu.cpp 576 2014-08-02 12:24:28Z mueller $
//
//
// Copyright 2013- by Walter F.J. Mueller <W.F.J.Mueller@gsi.de>
// Copyright 2013-2014 by Walter F.J. Mueller <W.F.J.Mueller@gsi.de>
//
//
// This program is free software; you may redistribute and/or modify it under
// This program is free software; you may redistribute and/or modify it under
// the terms of the GNU General Public License as published by the Free
// the terms of the GNU General Public License as published by the Free
// Software Foundation, either version 2, or at your option any later version.
// Software Foundation, either version 2, or at your option any later version.
//
//
Line 11... Line 11...
// or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
// or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
// for complete details.
// for complete details.
// 
// 
// Revision History: 
// Revision History: 
// Date         Rev Version  Comment
// Date         Rev Version  Comment
 
// 2014-08-02   576   1.0.2  adopt rename of LastExpect->SetLastExpect
// 2013-04-14   506   1.0.1  add AddLalh(),AddRMem(),AddWMem()
// 2013-04-14   506   1.0.1  add AddLalh(),AddRMem(),AddWMem()
// 2013-04-12   504   1.0    Initial version
// 2013-04-12   504   1.0    Initial version
// 2013-01-27   478   0.1    First draft
// 2013-01-27   478   0.1    First draft
// ---------------------------------------------------------------------------
// ---------------------------------------------------------------------------
 
 
/*!
/*!
  \file
  \file
  \version $Id: Rw11Cpu.cpp 521 2013-05-20 22:16:45Z mueller $
  \version $Id: Rw11Cpu.cpp 576 2014-08-02 12:24:28Z mueller $
  \brief   Implemenation of Rw11Cpu.
  \brief   Implemenation of Rw11Cpu.
*/
*/
#include <stdlib.h>
#include <stdlib.h>
#include <fcntl.h>
#include <fcntl.h>
#include <errno.h>
#include <errno.h>
Line 361... Line 362...
    int iib = -1;
    int iib = -1;
    int irb = -1;
    int irb = -1;
    if (dsc.fProbeInt) {
    if (dsc.fProbeInt) {
      clist.AddWreg(fBase+kCp_addr_al,  dsc.fAddr);
      clist.AddWreg(fBase+kCp_addr_al,  dsc.fAddr);
      iib = clist.AddRreg(fBase+kCp_addr_mem);
      iib = clist.AddRreg(fBase+kCp_addr_mem);
      clist.LastExpect(new RlinkCommandExpect(0,0xff)); // disable stat checking
      clist.SetLastExpect(new RlinkCommandExpect(0,0xff)); // disable stat check
    }
    }
    if (dsc.fProbeRem) {
    if (dsc.fProbeRem) {
      AddIbrb(clist, dsc.fAddr);
      AddIbrb(clist, dsc.fAddr);
      irb = AddRibr(clist, dsc.fAddr);
      irb = AddRibr(clist, dsc.fAddr);
      clist.LastExpect(new RlinkCommandExpect(0,0xff)); // disable stat checking
      clist.SetLastExpect(new RlinkCommandExpect(0,0xff)); // disable stat check
    }
    }
 
 
    Server().Exec(clist);
    Server().Exec(clist);
    // FIXME_code: handle errors
    // FIXME_code: handle errors
 
 

powered by: WebSVN 2.1.0

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