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

Subversion Repositories i2c_master_slave_core

[/] [i2c_master_slave_core/] [trunk/] [i2c_master_slave_core/] [i2c_master_slave_core/] [svtb/] [vmm_svtb/] [vmm_i2c_mon_pkt.sv] - Blame information for rev 6

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 4 toomuch
//////////////////////////////////////////////////////////////////////////////////////////
2
//                                                                                                                                                                              //
3
//      Verification Engineer:  Atish Jaiswal                                                                                           //
4
//      Company Name             :      TooMuch Semiconductor Solutions Pvt Ltd.                                        //
5
//                                                                                                                                                                              //
6
//  Description of the Source File:                                                                                                             //
7
//      This source code defines Monitor Packet. This packet will be sent to Scoreboard and     //
8
//      Coverage Module from Monitor Transactor.                                                                                                                        //
9
//                                                                                                                                                                              //
10
//                                                                                                                                                                              //
11
//////////////////////////////////////////////////////////////////////////////////////////
12
 
13
`include "vmm.sv"
14
 
15
class monitor_pkt extends vmm_data;
16
 
17
        vmm_log log;
18
        bit start_bit;                          // Start bit
19
        bit stop_bit;                           // Stop bit
20
        bit slave_ack;                          // Slave Acknowledgment
21
        bit data_ack;                           // Data Acknowledgment
22
        bit intr_ack;                           // Interrupt Generation Acknowledgment
23
 
24
// Class Constructor
25
        function new();
26
                super.new(this.log);
27
                this.log = new("Monitor Data", "class");
28
        endfunction
29
 
30
        function vmm_data copy(vmm_data to = null);
31
                copy = new this;
32
        endfunction
33
 
34
// Display Function
35
        function void display();
36
                this.log.start_msg(vmm_log::NOTE_TYP);
37
                void'(this.log.text($psprintf("start_bit is %0b", this.start_bit)));
38
                void'(this.log.text($psprintf("stop_bit is %0b", this.stop_bit)));
39
                void'(this.log.text($psprintf("slave_ack is %b", this.slave_ack)));
40
                void'(this.log.text($psprintf("data_ack is %b", this.data_ack)));
41
                void'(this.log.text($psprintf("intr_ack is %b", this.intr_ack)));
42
                this.log.end_msg();
43
        endfunction
44
 
45
endclass
46
 

powered by: WebSVN 2.1.0

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