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

Subversion Repositories ahb2wishbone

[/] [ahb2wishbone/] [trunk/] [svtb/] [avm_svtb/] [ahb_wb_interface.sv] - Blame information for rev 10

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 5 toomuch
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////
2
//*****************************************************************************************************************
3
// Copyright (c) 2007 TooMuch Semiconductor Solutions Pvt Ltd.
4
//
5
//File name             :       ahb_wb_interface.sv
6
//Designer              :       Sanjay kumar
7
//Date                  :       3rd Aug'2007
8
//Description           :       ahb_wb_if: System verilog Interface with the AHB side master/slave,
9
//                              Wishbone side master/slave and monitor.
10
//Revision              :       1.0
11
//*****************************************************************************************************************
12
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////
13
 
14
// interface for the stimulus generator and DUT
15
import global::*;
16
`timescale 1 ns/1 ps
17
interface ahb_wb_if;
18
//master to bridge
19
          logic hclk;
20
          logic hresetn;
21
          logic [AWIDTH-1:0]haddr;
22
          logic [DWIDTH-1:0]hwdata;
23
          logic [1:0]htrans;
24
          logic [2:0]hburst;
25
          logic [2:0]hsize;
26
          logic hwrite;
27
          logic hsel;
28
          logic hready;
29
          logic [DWIDTH-1:0]hrdata;
30
          logic [1:0]hresp;
31
//bridge to slave
32
          logic clk_i;
33
          logic rst_i;
34
          logic cyc_o;
35
          logic stb_o;
36
          logic we_o;
37
          logic [DWIDTH-1:0]dat_o;
38
          logic [AWIDTH-1:0]adr_o;
39
          logic ack_i;
40
          logic [DWIDTH-1:0]dat_i;
41
modport master_ab ( output  hclk,
42
                    output  hresetn,
43
                    output  haddr,
44
                    output  hwdata,
45
                    output  htrans,
46
                    output  hburst,
47
                    output  hsize,
48
                    output  hwrite,
49
                    output  hsel,
50
                    input   hready,
51
                    input   hrdata,
52
                    input   hresp
53
                  );
54
modport slave_ab (  input   hclk,
55
                    input   hresetn,
56
                    input   haddr,
57
                    input   hwdata,
58
                    input   htrans,
59
                    input   hburst,
60
                    input   hsize,
61
                    input   hwrite,
62
                    input   hsel,
63
                    output  hready,
64
                    output  hrdata,
65
                    output  hresp
66
                  );
67
modport master_bw ( output  cyc_o,
68
                    output  stb_o,
69
                    output  we_o,
70
                    output  dat_o,
71
                    output  adr_o,
72
                    input   ack_i,
73
                    input   dat_i,
74
                    input   clk_i,
75
                    input   rst_i
76
                  );
77
modport slave_bw ( input  cyc_o,
78
                   input  stb_o,
79
                   input  we_o,
80
                   input  dat_o,
81
                   input  adr_o,
82
                   output ack_i,
83
                   output dat_i,
84
                   output clk_i,
85
                   output rst_i
86
                );
87
modport monitor ( // signals from master to bridge
88
                    input  hclk,
89
                    input  hresetn,
90
                    input  haddr,
91
                    input  hwdata,
92
                    input  htrans,
93
                    input  hburst,
94
                    input  hsize,
95
                    input  hwrite,
96
                    input  hsel,
97
                    input  hready,
98
                    input  hrdata,
99
                    input  hresp,
100
                  // signals from bridge to slave
101
                    input  cyc_o,
102
                    input  stb_o,
103
                    input  we_o,
104
                    input  dat_o,
105
                    input  adr_o,
106
                    input  ack_i,
107
                    input  dat_i,
108
                    input  clk_i,
109
                    input  rst_i );
110
endinterface

powered by: WebSVN 2.1.0

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