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

Subversion Repositories openhmc

[/] [openhmc/] [trunk/] [openHMC/] [sim/] [tb/] [common/] [src/] [hmc_req_packet.sv] - Blame information for rev 15

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 15 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
//
41
// hmc_req_packet
42
//
43
 
44
// Only requests should be sent to test the controller
45
// All of the tail fields should be zero
46
 
47
`ifndef HMC_REQ_PACKET_SV
48
`define HMC_REQ_PACKET_SV
49
 
50
class hmc_req_packet extends hmc_packet;
51
`uvm_object_utils(hmc_req_packet)
52
 
53
        constraint req_command_c {
54
                   command inside {     HMC_WRITE_16,
55
                                                                HMC_WRITE_32,
56
                                                                HMC_WRITE_48,
57
                                                                HMC_WRITE_64,
58
                                                                HMC_WRITE_80,
59
                                                                HMC_WRITE_96,
60
                                                                HMC_WRITE_112,
61
                                                                HMC_WRITE_128,
62
 
63
                                                                //HMC_MODE_WRITE,
64
                                                                HMC_BIT_WRITE,
65
                                                                HMC_DUAL_8B_ADDI,
66
                                                                HMC_SINGLE_16B_ADDI,
67
 
68
                                                                HMC_POSTED_WRITE_16,
69
                                                                HMC_POSTED_WRITE_32,
70
                                                                HMC_POSTED_WRITE_48,
71
                                                                HMC_POSTED_WRITE_64,
72
                                                                HMC_POSTED_WRITE_80,
73
                                                                HMC_POSTED_WRITE_96,
74
                                                                HMC_POSTED_WRITE_112,
75
                                                                HMC_POSTED_WRITE_128,
76
                                                                HMC_POSTED_BIT_WRIT,
77
 
78
                                                                HMC_POSTED_BIT_WRIT,
79
                                                                HMC_POSTED_DUAL_8B_ADDI,
80
                                                                HMC_POSTED_SINGLE_16B_ADDI,
81
 
82
                                                //              HMC_MODE_READ,
83
                                                                HMC_READ_16,
84
                                                                HMC_READ_32,
85
                                                                HMC_READ_48,
86
                                                                HMC_READ_64,
87
                                                                HMC_READ_80,
88
                                                                HMC_READ_96,
89
                                                                HMC_READ_112,
90
                                                                HMC_READ_128
91
 
92
                                                        };
93
        }
94
 
95
 
96
        constraint c_zero_tail_fields {
97
                return_token_count == 0;
98
                sequence_number == 0;
99
                forward_retry_pointer == 0;
100
                return_retry_pointer == 0;
101
                packet_crc == 0;
102
        }
103
 
104
        function new (string name = "hmc_req_packet");
105
                super.new(name);
106
        endfunction : new
107
 
108
endclass : hmc_req_packet
109
 
110
`endif // HMC_REQ_PACKET_SV
111
 

powered by: WebSVN 2.1.0

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