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

Subversion Repositories usb11

[/] [usb11/] [trunk/] [bench/] [verilog/] [tests.v] - Diff between revs 6 and 11

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 6 Rev 11
Line 38... Line 38...
////                                                             ////
////                                                             ////
/////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////
 
 
//  CVS Log
//  CVS Log
//
//
//  $Id: tests.v,v 1.2 2004-05-11 18:51:08 alfoltran Exp $
//  $Id: tests.v,v 1.3 2004-05-28 23:13:16 alfoltran Exp $
//
//
//  $Date: 2004-05-11 18:51:08 $
//  $Date: 2004-05-28 23:13:16 $
//  $Revision: 1.2 $
//  $Revision: 1.3 $
//  $Author: alfoltran $
//  $Author: alfoltran $
//  $Locker:  $
//  $Locker:  $
//  $State: Exp $
//  $State: Exp $
//
//
// Change History:
// Change History:
//               $Log: not supported by cvs2svn $
//               $Log: not supported by cvs2svn $
 
//               Revision 1.2  2004/05/11 18:51:08  alfoltran
 
//               Task in5 correction: no ACK for length zero packet.
 
//
//               Revision 1.1  2004/05/10 19:23:26  alfoltran
//               Revision 1.1  2004/05/10 19:23:26  alfoltran
//               Initial version in OpenCores.org (2004/04/10 - 19:22GMT)
//               Initial version in OpenCores.org (2004/04/10 - 19:22GMT)
//
//
//               Revision 1.1  2002/09/25 06:10:10  rudi
//               Revision 1.1  2002/09/25 06:10:10  rudi
//               Added Test Bench
//               Added Test Bench
Line 577... Line 580...
 
 
                #2;
                #2;
                if(buffer1[n] !== ep_f_dout)
                if(buffer1[n] !== ep_f_dout)
                   begin
                   begin
                        $display("ERROR: DATA mismatch. Expected: %h, Got: %h (%t)",
                        $display("ERROR: DATA mismatch. Expected: %h, Got: %h (%t)",
                                ep_f_dout, buffer1[n], $time);
                                buffer1[n], ep_f_dout, $time);
                        error_cnt = error_cnt + 1;
                        error_cnt = error_cnt + 1;
                   end
                   end
 
 
                ep_f_re = 1;
                ep_f_re = 1;
                @(posedge clk2);
                @(posedge clk2);
Line 822... Line 825...
                   begin
                   begin
                        ep_f_re = 0;
                        ep_f_re = 0;
                        repeat(2)       @(posedge clk2);
                        repeat(2)       @(posedge clk2);
                   end
                   end
 
 
                #2;
                #2;                                     // Comment this line for XILINX Timed Simulation
 
                //@(posedge clk2);      // Comment this line for Standard Simulation
                if(buffer1[n] !== ep_f_dout)
                if(buffer1[n] !== ep_f_dout)
                   begin
                   begin
                        $display("ERROR: DATA mismatch. Expected: %h, Got: %h (%t)",
                        $display("ERROR: DATA mismatch. Expected: %h, Got: %h (%t)",
                                ep_f_dout, buffer1[n], $time);
                                buffer1[n], ep_f_dout, $time);
                        error_cnt = error_cnt + 1;
                        error_cnt = error_cnt + 1;
                   end
                   end
 
 
                ep_f_re = 1;
                ep_f_re = 1;
                @(posedge clk2);
                @(posedge clk2);
Line 1076... Line 1080...
                   begin
                   begin
                        ep_f_re = 0;
                        ep_f_re = 0;
                        repeat(2)       @(posedge clk2);
                        repeat(2)       @(posedge clk2);
                   end
                   end
 
 
                #2;
                #2;                                     // Comment this line for XILINX Timed Simulation
 
                //@(posedge clk2);      // Comment this line for Standard Simulation
                if(buffer1[n] !== ep_f_dout)
                if(buffer1[n] !== ep_f_dout)
                   begin
                   begin
                        $display("ERROR: DATA mismatch. Expected: %h, Got: %h (%t)",
                        $display("ERROR: DATA mismatch. Expected: %h, Got: %h (%t)",
                                ep_f_dout, buffer1[n], $time);
                                buffer1[n], ep_f_dout, $time);
                        error_cnt = error_cnt + 1;
                        error_cnt = error_cnt + 1;
                   end
                   end
 
 
                ep_f_re = 1;
                ep_f_re = 1;
                @(posedge clk2);
                @(posedge clk2);

powered by: WebSVN 2.1.0

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