URL
https://opencores.org/ocsvn/pci/pci/trunk
[/] [pci/] [tags/] [rel_7/] [bench/] [verilog/] [wb_master32.v] - Diff between revs 15 and 92
Go to most recent revision |
Show entire file |
Details |
Blame |
View Log
Rev 15 |
Rev 92 |
Line 40... |
Line 40... |
//////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////
|
//
|
//
|
// CVS Revision History
|
// CVS Revision History
|
//
|
//
|
// $Log: not supported by cvs2svn $
|
// $Log: not supported by cvs2svn $
|
|
// Revision 1.1 2002/02/01 13:39:43 mihad
|
|
// Initial testbench import. Still under development
|
|
//
|
//
|
//
|
|
|
`include "pci_testbench_defines.v"
|
`include "pci_testbench_defines.v"
|
`include "timescale.v"
|
`include "timescale.v"
|
module WB_MASTER32
|
module WB_MASTER32
|
Line 105... |
Line 108... |
reg we ;
|
reg we ;
|
|
|
task start_cycle ;
|
task start_cycle ;
|
input is_cab ;
|
input is_cab ;
|
input write ;
|
input write ;
|
|
input fastb2b ;
|
output ok ; // ok indicates to the caller that cycle was started succesfully - if not, caller must take appropriate action
|
output ok ; // ok indicates to the caller that cycle was started succesfully - if not, caller must take appropriate action
|
begin:main
|
begin:main
|
|
|
ok = 1 ;
|
ok = 1 ;
|
|
|
Line 121... |
Line 125... |
end
|
end
|
|
|
if ( (cycle_in_progress === 1) || (CYC_O === 1))
|
if ( (cycle_in_progress === 1) || (CYC_O === 1))
|
begin
|
begin
|
// cycle was previously started - allow cycle to continue if CAB and WE values match
|
// cycle was previously started - allow cycle to continue if CAB and WE values match
|
|
if (fastb2b !== 1'b1)
|
$display("*W, cycle already in progress when start_cycle routine was called! Time %t ", $time) ;
|
$display("*W, cycle already in progress when start_cycle routine was called! Time %t ", $time) ;
|
|
|
if ((CAB_O !== is_cab) || (WE_O !== write) )
|
if ((CAB_O !== is_cab) || (WE_O !== write) )
|
begin
|
begin
|
ok = 0 ;
|
ok = 0 ;
|
if ( is_cab === 1 )
|
if ( is_cab === 1 )
|
$display("*E, cab cycle start attempted when non-cab cycle was in progress! Time %t", $time) ;
|
$display("*E, cab cycle start attempted when non-cab cycle was in progress! Time %t", $time) ;
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.