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

Subversion Repositories s1_core

[/] [s1_core/] [trunk/] [hdl/] [rtl/] [s1_top/] [s1_defs.h] - Blame information for rev 114

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 4 fafa1971
/*
2 114 albert.wat
 * S1 Definitions
3 4 fafa1971
 *
4 114 albert.wat
 * (C) Copyleft 2007 Fabrizio Fazzino
5 4 fafa1971
 *
6
 * LICENSE:
7
 * This is a Free Hardware Design; you can redistribute it and/or
8
 * modify it under the terms of the GNU General Public License
9
 * version 2 as published by the Free Software Foundation.
10
 * The above named program is distributed in the hope that it will
11
 * be useful, but WITHOUT ANY WARRANTY; without even the implied
12
 * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
13
 * See the GNU General Public License for more details.
14
 *
15
 * DESCRIPTION:
16
 * Simple constant definitions used by the S1 Core design.
17
 */
18
 
19
`include "t1_defs.h"
20
`timescale 1ns/100ps
21
 
22 44 fafa1971
`define FPGA_SYN
23
`define FPGA_SYN_1THREAD
24
`define FPGA_SYN_NO_SPU
25
 
26 4 fafa1971
// Size of the buses
27
`define WB_ADDR_WIDTH 64
28
`define WB_DATA_WIDTH 64
29
 
30
// States of the FSM of the bridge
31
`define STATE_WAKEUP          4'b0000
32
`define STATE_IDLE            4'b0001
33
`define STATE_REQUEST_LATCHED 4'b0010
34
`define STATE_PACKET_LATCHED  4'b0011
35
`define STATE_REQUEST_GRANTED 4'b0100
36
`define STATE_ACCESS2_BEGIN   4'b0101
37
`define STATE_ACCESS2_END     4'b0110
38
`define STATE_ACCESS3_BEGIN   4'b0111
39
`define STATE_ACCESS3_END     4'b1000
40
`define STATE_ACCESS4_BEGIN   4'b1001
41
`define STATE_ACCESS4_END     4'b1010
42
`define STATE_PACKET_READY    4'b1011
43
 
44
// Constants used by the timer of the Reset Controller
45
`define TIMER_BITS 16
46
`define RESET_CYCLES_1   100
47
`define RESET_CYCLES_2  1000
48
`define RESET_CYCLES_3  2000
49
`define RESET_CYCLES_4  3000
50
`define GCLK_CYCLES      900
51
 

powered by: WebSVN 2.1.0

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