URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
[/] [openrisc/] [trunk/] [or1ksim/] [cache/] [dcache-model.h] - Blame information for rev 19
Details |
Compare with Previous |
View Log
| Line No. |
Rev |
Author |
Line |
| 1 |
19 |
jeremybenn |
/* dcache-model.h -- data cache header file
|
| 2 |
|
|
|
| 3 |
|
|
Copyright (C) 1999 Damjan Lampret, lampret@opencores.org
|
| 4 |
|
|
Copyright (C) 2008 Embecosm Limited
|
| 5 |
|
|
|
| 6 |
|
|
Contributor Jeremy Bennett <jeremy.bennett@embecosm.com>
|
| 7 |
|
|
|
| 8 |
|
|
This file is part of Or1ksim, the OpenRISC 1000 Architectural Simulator.
|
| 9 |
|
|
|
| 10 |
|
|
This program is free software; you can redistribute it and/or modify it
|
| 11 |
|
|
under the terms of the GNU General Public License as published by the Free
|
| 12 |
|
|
Software Foundation; either version 3 of the License, or (at your option)
|
| 13 |
|
|
any later version.
|
| 14 |
|
|
|
| 15 |
|
|
This program is distributed in the hope that it will be useful, but WITHOUT
|
| 16 |
|
|
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
| 17 |
|
|
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
|
| 18 |
|
|
more details.
|
| 19 |
|
|
|
| 20 |
|
|
You should have received a copy of the GNU General Public License along
|
| 21 |
|
|
with this program. If not, see <http://www.gnu.org/licenses/>. */
|
| 22 |
|
|
|
| 23 |
|
|
/* This program is commented throughout in a fashion suitable for processing
|
| 24 |
|
|
with Doxygen. */
|
| 25 |
|
|
|
| 26 |
|
|
|
| 27 |
|
|
#ifndef DCACHE_MODEL__H
|
| 28 |
|
|
#define DCACHE_MODEL__H
|
| 29 |
|
|
|
| 30 |
|
|
/* Package includes */
|
| 31 |
|
|
#include "sim-config.h"
|
| 32 |
|
|
|
| 33 |
|
|
|
| 34 |
|
|
#define MAX_DC_SETS 1024
|
| 35 |
|
|
#define MAX_DC_WAYS 32
|
| 36 |
|
|
#define MIN_DC_BLOCK_SIZE 16
|
| 37 |
|
|
#define MAX_DC_BLOCK_SIZE 32
|
| 38 |
|
|
|
| 39 |
|
|
/* Prototypes for external use */
|
| 40 |
|
|
|
| 41 |
|
|
extern uint32_t dc_simulate_read (oraddr_t dataaddr,
|
| 42 |
|
|
oraddr_t virt_addr,
|
| 43 |
|
|
int width);
|
| 44 |
|
|
extern void dc_simulate_write (oraddr_t dataaddr,
|
| 45 |
|
|
oraddr_t virt_addr,
|
| 46 |
|
|
uint32_t data,
|
| 47 |
|
|
int width);
|
| 48 |
|
|
extern void dc_info ();
|
| 49 |
|
|
extern void dc_inv (oraddr_t dataaddr);
|
| 50 |
|
|
extern void reg_dc_sec ();
|
| 51 |
|
|
|
| 52 |
|
|
#endif /* DCACHE_MODEL__H */
|
© copyright 1999-2025
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.