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

Subversion Repositories openhmc

[/] [openhmc/] [trunk/] [openHMC/] [sim/] [UVC/] [hmc/] [sv/] [hmc_requester_sequencer.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
/* sequencer is incomplete and not tested */
41
/* Use at your own risk */
42
 
43
`ifndef HMC_REQUESTER_SEQUENCER_SV
44
`define HMC_REQUESTER_SEQUENCER_SV
45
 
46
typedef class hmc_requester_sequence;
47
 
48
class hmc_requester_sequencer extends uvm_sequencer #(hmc_packet);
49
 
50
    `uvm_analysis_imp_decl(_hmc_req)
51
    uvm_analysis_imp_hmc_req #(hmc_packet, hmc_requester_sequencer) hmc_req_port;
52
    mailbox #(hmc_packet) req_mailbox;
53
 
54
        `uvm_component_utils(hmc_requester_sequencer)
55
 
56
//      hmc_requester_sequence resp_seq;
57
 
58
        function new(string name="hmc_requester_sequencer", uvm_component parent);
59
                super.new(name,parent);
60
        hmc_req_port     = new("hmc_req_port", this);
61
        req_mailbox    = new();
62
        endfunction : new
63
 
64
        function void build_phase(uvm_phase phase);
65
                super.build_phase(phase);
66
 
67
        endfunction : build_phase
68
 
69
        function void connect_phase(uvm_phase phase);
70
                super.connect_phase(phase);
71
 
72
        endfunction : connect_phase
73
 
74
        task run();
75
//              resp_seq = hmc_requester_sequence::type_id::create("resp_seq", this);
76
//              resp_seq.start(this);
77
        endtask : run
78
 
79
        virtual function void write_hmc_req(input hmc_packet request);
80
 
81
                `uvm_info(get_type_name(),$psprintf("Request: %s",request.command.name()),UVM_HIGH)
82
 
83
//              req_mailbox_not_full : assert (req_mailbox.try_put(request));
84
 
85
        endfunction : write_hmc_req
86
 
87
endclass : hmc_requester_sequencer
88
 
89
`endif // HMC_REQUESTER_SEQUENCER_SV
90
 

powered by: WebSVN 2.1.0

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