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

Subversion Repositories uart2bus_testbench

[/] [uart2bus_testbench/] [trunk/] [tb/] [interfaces/] [uart_arbiter.sv] - Blame information for rev 2

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 2 HanySalah
//-----------------------------------------------------------------------------
2
//
3
//                             UART2BUS VERIFICATION
4
//
5
//-----------------------------------------------------------------------------
6
// CREATOR    : HANY SALAH
7
// PROJECT    : UART2BUS UVM TEST BENCH
8
// UNIT       : INTERFACE
9
//-----------------------------------------------------------------------------
10
// TITLE      : UART Arbiter
11
// DESCRIPTION: This
12
//-----------------------------------------------------------------------------
13
// LOG DETAILS
14
//-------------
15
// VERSION      NAME        DATE        DESCRIPTION
16
//    1       HANY SALAH    29122015    FILE CREATION
17
//-----------------------------------------------------------------------------
18
// ALL COPYRIGHTS ARE RESERVED FOR THE PRODUCER ONLY .THIS FILE IS PRODUCED FOR
19
// OPENCORES MEMBERS ONLY AND IT IS PROHIBTED TO USE THIS MATERIAL WITHOUT THE
20
// CREATOR'S PERMISSION
21
//-----------------------------------------------------------------------------
22
interface uart_arbiter (input bit clock,
23
                                                            input bit reset);
24
 
25
//--------------------------------
26
//
27
//   Bus Control Signals
28
//
29
//--------------------------------
30
 
31
  logic               int_req;        // Request Internal Bus Access
32
  logic               int_gnt;        // Grant Internal Bus Access
33
 
34
//--------------------------------
35
//
36
//  Arbiter Control Signals
37
//
38
//--------------------------------
39
 
40
  task accept_req ();
41
    wait (int_req);
42
    int_gnt = 1'b1;
43
  endtask:accept_req
44
 
45
  task declain_req ();
46
    wait (int_req);
47
    int_gnt = 1'b0;
48
  endtask:declain_req
49
 
50
endinterface:uart_arbiter

powered by: WebSVN 2.1.0

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