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

Subversion Repositories openhmc

[/] [openhmc/] [trunk/] [openHMC/] [sim/] [UVC/] [hmc_base_types/] [sv/] [hmc_types.svh] - Blame information for rev 15

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 12 juko
/*
2
 *                              .--------------. .----------------. .------------.
3
 *                             | .------------. | .--------------. | .----------. |
4
 *                             | | ____  ____ | | | ____    ____ | | |   ______ | |
5
 *                             | ||_   ||   _|| | ||_   \  /   _|| | | .' ___  || |
6
 *       ___  _ __   ___ _ __  | |  | |__| |  | | |  |   \/   |  | | |/ .'   \_|| |
7
 *      / _ \| '_ \ / _ \ '_ \ | |  |  __  |  | | |  | |\  /| |  | | || |       | |
8
 *       (_) | |_) |  __/ | | || | _| |  | |_ | | | _| |_\/_| |_ | | |\ `.___.'\| |
9
 *      \___/| .__/ \___|_| |_|| ||____||____|| | ||_____||_____|| | | `._____.'| |
10
 *           | |               | |            | | |              | | |          | |
11
 *           |_|               | '------------' | '--------------' | '----------' |
12
 *                              '--------------' '----------------' '------------'
13
 *
14
 *  openHMC - An Open Source Hybrid Memory Cube Controller
15
 *  (C) Copyright 2014 Computer Architecture Group - University of Heidelberg
16
 *  www.ziti.uni-heidelberg.de
17
 *  B6, 26
18
 *  68159 Mannheim
19
 *  Germany
20
 *
21
 *  Contact: openhmc@ziti.uni-heidelberg.de
22
 *  http://ra.ziti.uni-heidelberg.de/openhmc
23
 *
24
 *   This source file is free software: you can redistribute it and/or modify
25
 *   it under the terms of the GNU Lesser General Public License as published by
26
 *   the Free Software Foundation, either version 3 of the License, or
27
 *   (at your option) any later version.
28
 *
29
 *   This source file is distributed in the hope that it will be useful,
30
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
31
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
32
 *   GNU Lesser General Public License for more details.
33
 *
34
 *   You should have received a copy of the GNU Lesser General Public License
35
 *   along with this source file.  If not, see .
36
 *
37
 *
38
 */
39
 
40
`ifndef HMC_TYPES_SVH
41
`define HMC_TYPES_SVH
42
 
43
typedef enum bit [5:0] {
44
        HMC_FLOW_TYPE                           = 6'h00,
45
        HMC_WRITE_TYPE                          = 6'h08,
46
        HMC_MISC_WRITE_TYPE                     = 6'h10,
47
        HMC_POSTED_WRITE_TYPE           = 6'h18,
48
        HMC_POSTED_MISC_WRITE_TYPE      = 6'h20,
49
        HMC_MODE_READ_TYPE                      = 6'h28,
50
        HMC_READ_TYPE                           = 6'h30,
51
        HMC_RESPONSE_TYPE                       = 6'h38
52
} hmc_command_type;
53
 
54
typedef enum bit [5:0] {
55
        HMC_NULL                                = 6'h00,
56
        HMC_PRET                                = 6'h01,
57
        HMC_TRET                                = 6'h02,
58
        HMC_IRTRY                               = 6'h03,
59
        HMC_WRITE_16                    = 6'h08,
60
        HMC_WRITE_32                    = 6'h09,
61
        HMC_WRITE_48                    = 6'h0a,
62
        HMC_WRITE_64                    = 6'h0b,
63
        HMC_WRITE_80                    = 6'h0c,
64
        HMC_WRITE_96                    = 6'h0d,
65
        HMC_WRITE_112                   = 6'h0e,
66
        HMC_WRITE_128                   = 6'h0f,
67
        //-- misc write
68
        HMC_MODE_WRITE                  = 6'h10,
69
        HMC_BIT_WRITE                   = 6'h11,
70
        HMC_DUAL_8B_ADDI                = 6'h12,
71
        HMC_SINGLE_16B_ADDI             = 6'h13,
72
 
73
        HMC_POSTED_WRITE_16             = 6'h18,
74
        HMC_POSTED_WRITE_32             = 6'h19,
75
        HMC_POSTED_WRITE_48             = 6'h1a,
76
        HMC_POSTED_WRITE_64             = 6'h1b,
77
        HMC_POSTED_WRITE_80             = 6'h1c,
78
        HMC_POSTED_WRITE_96             = 6'h1d,
79
        HMC_POSTED_WRITE_112    = 6'h1e,
80
        HMC_POSTED_WRITE_128    = 6'h1f,
81
 
82
        HMC_POSTED_BIT_WRIT                     = 6'h21,
83
        HMC_POSTED_DUAL_8B_ADDI         = 6'h22,
84
        HMC_POSTED_SINGLE_16B_ADDI      = 6'h23,
85
 
86
        HMC_MODE_READ                   = 6'h28,
87
 
88
        HMC_READ_16                             = 6'h30,
89
        HMC_READ_32                             = 6'h31,
90
        HMC_READ_48                             = 6'h32,
91
        HMC_READ_64                             = 6'h33,
92
        HMC_READ_80                             = 6'h34,
93
        HMC_READ_96                             = 6'h35,
94
        HMC_READ_112                    = 6'h36,
95
        HMC_READ_128                    = 6'h37,
96
        HMC_READ_RESPONSE               = 6'h38,
97
        HMC_WRITE_RESPONSE              = 6'h39,
98
        HMC_MODE_READ_RESPONSE  = 6'h3A,
99
        HMC_MODE_WRITE_RESPONSE = 6'h3B,
100
        HMC_ERROR_RESPONSE              = 6'h3E
101
} hmc_command_encoding;
102
 
103
typedef enum {
104
        RESET,
105 15 juko
        POWER_DOWN,
106 12 juko
        INIT,
107
        PRBS,
108
        NULL_FLITS,
109
        TS1,
110
        NULL_FLITS_2,
111
        INITIAL_TRETS,
112
        LINK_UP,
113
        START_RETRY_INIT,
114
        CLEAR_RETRY,
115
        SEND_RETRY_PACKETS
116
} init_state_t;
117
 
118
`endif // HMC_TYPES_SVH
119
 

powered by: WebSVN 2.1.0

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