URL
https://opencores.org/ocsvn/s1_core/s1_core/trunk
Go to most recent revision |
Details |
Compare with Previous |
View Log
| Line No. |
Rev |
Author |
Line |
| 1 |
4 |
fafa1971 |
/*
|
| 2 |
|
|
* Simply RISC S1 Definitions
|
| 3 |
|
|
*
|
| 4 |
|
|
* (C) Copyleft 2007 Simply RISC LLP
|
| 5 |
|
|
* AUTHOR: Fabrizio Fazzino <fabrizio.fazzino@srisc.com>
|
| 6 |
|
|
*
|
| 7 |
|
|
* LICENSE:
|
| 8 |
|
|
* This is a Free Hardware Design; you can redistribute it and/or
|
| 9 |
|
|
* modify it under the terms of the GNU General Public License
|
| 10 |
|
|
* version 2 as published by the Free Software Foundation.
|
| 11 |
|
|
* The above named program is distributed in the hope that it will
|
| 12 |
|
|
* be useful, but WITHOUT ANY WARRANTY; without even the implied
|
| 13 |
|
|
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
| 14 |
|
|
* See the GNU General Public License for more details.
|
| 15 |
|
|
*
|
| 16 |
|
|
* DESCRIPTION:
|
| 17 |
|
|
* Simple constant definitions used by the S1 Core design.
|
| 18 |
|
|
*/
|
| 19 |
|
|
|
| 20 |
|
|
`include "t1_defs.h"
|
| 21 |
|
|
`timescale 1ns/100ps
|
| 22 |
|
|
|
| 23 |
|
|
// Size of the buses
|
| 24 |
|
|
`define WB_ADDR_WIDTH 64
|
| 25 |
|
|
`define WB_DATA_WIDTH 64
|
| 26 |
|
|
|
| 27 |
|
|
// States of the FSM of the bridge
|
| 28 |
|
|
`define STATE_WAKEUP 4'b0000
|
| 29 |
|
|
`define STATE_IDLE 4'b0001
|
| 30 |
|
|
`define STATE_REQUEST_LATCHED 4'b0010
|
| 31 |
|
|
`define STATE_PACKET_LATCHED 4'b0011
|
| 32 |
|
|
`define STATE_REQUEST_GRANTED 4'b0100
|
| 33 |
|
|
`define STATE_ACCESS2_BEGIN 4'b0101
|
| 34 |
|
|
`define STATE_ACCESS2_END 4'b0110
|
| 35 |
|
|
`define STATE_ACCESS3_BEGIN 4'b0111
|
| 36 |
|
|
`define STATE_ACCESS3_END 4'b1000
|
| 37 |
|
|
`define STATE_ACCESS4_BEGIN 4'b1001
|
| 38 |
|
|
`define STATE_ACCESS4_END 4'b1010
|
| 39 |
|
|
`define STATE_PACKET_READY 4'b1011
|
| 40 |
|
|
|
| 41 |
|
|
// Constants used by the timer of the Reset Controller
|
| 42 |
|
|
`define TIMER_BITS 16
|
| 43 |
|
|
`define RESET_CYCLES_1 100
|
| 44 |
|
|
`define RESET_CYCLES_2 1000
|
| 45 |
|
|
`define RESET_CYCLES_3 2000
|
| 46 |
|
|
`define RESET_CYCLES_4 3000
|
| 47 |
|
|
`define GCLK_CYCLES 900
|
| 48 |
|
|
|
© copyright 1999-2026
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.