URL
https://opencores.org/ocsvn/uart2bus_testbench/uart2bus_testbench/trunk
Subversion Repositories uart2bus_testbench
[/] [uart2bus_testbench/] [trunk/] [tb/] [interfaces/] [uart_arbiter.sv] - Rev 2
Go to most recent revision | Compare with Previous | Blame | View Log
//-----------------------------------------------------------------------------
//
// UART2BUS VERIFICATION
//
//-----------------------------------------------------------------------------
// CREATOR : HANY SALAH
// PROJECT : UART2BUS UVM TEST BENCH
// UNIT : INTERFACE
//-----------------------------------------------------------------------------
// TITLE : UART Arbiter
// DESCRIPTION: This
//-----------------------------------------------------------------------------
// LOG DETAILS
//-------------
// VERSION NAME DATE DESCRIPTION
// 1 HANY SALAH 29122015 FILE CREATION
//-----------------------------------------------------------------------------
// ALL COPYRIGHTS ARE RESERVED FOR THE PRODUCER ONLY .THIS FILE IS PRODUCED FOR
// OPENCORES MEMBERS ONLY AND IT IS PROHIBTED TO USE THIS MATERIAL WITHOUT THE
// CREATOR'S PERMISSION
//-----------------------------------------------------------------------------
interface uart_arbiter (input bit clock,
input bit reset);
//--------------------------------
//
// Bus Control Signals
//
//--------------------------------
logic int_req; // Request Internal Bus Access
logic int_gnt; // Grant Internal Bus Access
//--------------------------------
//
// Arbiter Control Signals
//
//--------------------------------
task accept_req ();
wait (int_req);
int_gnt = 1'b1;
endtask:accept_req
task declain_req ();
wait (int_req);
int_gnt = 1'b0;
endtask:declain_req
endinterface:uart_arbiter
Go to most recent revision | Compare with Previous | Blame | View Log