Line 1... |
Line 1... |
///////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
//
|
//
|
// Filename: regdefs.h
|
// Filename: regdefs.h
|
//
|
//
|
// Project: Zip CPU -- a small, lightweight, RISC CPU soft core
|
// Project: Zip CPU -- a small, lightweight, RISC CPU soft core
|
//
|
//
|
// Purpose: This is a generic file that will need to be modified from one
|
// Purpose: This is a generic file that will need to be modified from one
|
// board implementation of the ZIP CPU to another. Specifically,
|
// board implementation of the ZIP CPU to another. Specifically,
|
// this file defines where items are on a WISHBONE bus. In this
|
// this file defines where items are on a WISHBONE bus. In this case, the
|
// case, the Zip CPU debug addresses are found at 0x060 and 0x61.
|
// Zip CPU debug addresses are found at 0x060 and 0x61--but they need not
|
// The Zip Debugger needs to know these addresses in order to
|
// be at those addresses in your application. The Zip Debugger needs to
|
// know what addresses to peek and poke to control and access the
|
// know these addresses in order to know what addresses to peek and poke
|
// Zip CPU.
|
// to control and access the Zip CPU.
|
//
|
//
|
//
|
//
|
// Creator: Dan Gisselquist
|
// Creator: Dan Gisselquist, Ph.D.
|
// Gisselquist Technology, LLC
|
// Gisselquist Technology, LLC
|
//
|
//
|
///////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
//
|
//
|
// Copyright (C) 2015, Gisselquist Technology, LLC
|
// Copyright (C) 2015-2016, Gisselquist Technology, LLC
|
//
|
//
|
// This program is free software (firmware): you can redistribute it and/or
|
// This program is free software (firmware): you can redistribute it and/or
|
// modify it under the terms of the GNU General Public License as published
|
// modify it under the terms of the GNU General Public License as published
|
// by the Free Software Foundation, either version 3 of the License, or (at
|
// by the Free Software Foundation, either version 3 of the License, or (at
|
// your option) any later version.
|
// your option) any later version.
|
Line 32... |
Line 32... |
//
|
//
|
// License: GPL, v3, as defined and found on www.gnu.org,
|
// License: GPL, v3, as defined and found on www.gnu.org,
|
// http://www.gnu.org/licenses/gpl.html
|
// http://www.gnu.org/licenses/gpl.html
|
//
|
//
|
//
|
//
|
///////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
//
|
//
|
//
|
//
|
#ifndef REGDEFS_H
|
#ifndef REGDEFS_H
|
#define REGDEFS_H
|
#define REGDEFS_H
|
|
|
// Zip CPU Control and Debug registers
|
// Zip CPU Control and Debug registers
|
#define R_ZIPCTRL 0x00000060
|
#define R_ZIPCTRL 0x00000060
|
#define R_ZIPDATA 0x00000061
|
#define R_ZIPDATA 0x00000061
|
|
|
// RAM memory space
|
|
#define RAMBASE 0x00008000
|
|
// Flash memory space
|
|
#define QSPIFLASH 0x00100000
|
|
|
|
#define RAMLEN 0x08000
|
|
|
|
#define CPU_GO 0x0000
|
#define CPU_GO 0x0000
|
#define CPU_RESET 0x0040
|
#define CPU_RESET 0x0040
|
#define CPU_INT 0x0080
|
#define CPU_INT 0x0080
|
#define CPU_STEP 0x0100
|
#define CPU_STEP 0x0100
|
#define CPU_STALL 0x0200
|
#define CPU_STALL 0x0200
|