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

Subversion Repositories dbg_interface

[/] [dbg_interface/] [tags/] [highland_ver1/] [bench/] [verilog/] [dbg_tb.v] - Diff between revs 91 and 92

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

Rev 91 Rev 92
Line 41... Line 41...
//////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////
//
//
// CVS Revision History
// CVS Revision History
//
//
// $Log: not supported by cvs2svn $
// $Log: not supported by cvs2svn $
 
// Revision 1.20  2004/01/09 12:49:23  mohor
 
// tmp version.
 
//
// Revision 1.19  2004/01/08 17:53:12  mohor
// Revision 1.19  2004/01/08 17:53:12  mohor
// tmp version.
// tmp version.
//
//
// Revision 1.18  2004/01/07 11:59:48  mohor
// Revision 1.18  2004/01/07 11:59:48  mohor
// temp4 version.
// temp4 version.
Line 360... Line 363...
 
 
  #10000;
  #10000;
  debug_wishbone(`WB_STATUS, 1'b0, 32'h0, 16'h0, 32'hc7b0424d, result, "status 2"); // {command, ready, addr, length, crc, result, text}
  debug_wishbone(`WB_STATUS, 1'b0, 32'h0, 16'h0, 32'hc7b0424d, result, "status 2"); // {command, ready, addr, length, crc, result, text}
 
 
  #10000;
  #10000;
  wb_slave.cycle_response(`ACK_RESPONSE, 8'h4a, 8'h2);   // (`ACK_RESPONSE, wbs_waits, wbs_retries);
  wb_slave.cycle_response(`ACK_RESPONSE, 8'h0a, 8'h2);   // (`ACK_RESPONSE, wbs_waits, wbs_retries);
  debug_wishbone(`WB_READ32, 1'b1, 32'h12347778, 16'hc, 32'hd9ce3bbe, result, "read32 5"); // {command, ready, addr, length, crc, result, text}
  debug_wishbone(`WB_READ32, 1'b1, 32'h12347778, 16'hc, 32'hd9ce3bbe, result, "read32 5"); // {command, ready, addr, length, crc, result, text}
 
 
  #10000;
  #10000;
  debug_wishbone(`WB_WRITE32, 1'b0, 32'h12346668, 16'h8, 32'hc5a58ff5, result, "wr32 len8"); // {command, ready, addr, length, crc, result, text}
  debug_wishbone(`WB_WRITE32, 1'b0, 32'h12346668, 16'h8, 32'hc5a58ff5, result, "wr32 len8"); // {command, ready, addr, length, crc, result, text}
 
 
Line 681... Line 684...
    begin
    begin
      tdi_pad_i<=#1 crc[i];
      tdi_pad_i<=#1 crc[i];
      gen_clk(1);
      gen_clk(1);
    end
    end
 
 
 
    tdi_pad_i<=#1 'hz;
    if (wait_for_wb_ready)
    if (wait_for_wb_ready)
      begin
      begin
        gen_clk(`STATUS_LEN -1);   // Generating 4 clocks to read out status. Going to pause_dr at the end
        gen_clk(`STATUS_LEN -1);   // Generating 4 clocks to read out status. Going to pause_dr at the end
        tdi_pad_i<=#1 'hz;
 
        tms_pad_i<=#1 1;
        tms_pad_i<=#1 1;
        gen_clk(1);       // to exit1_dr
        gen_clk(1);       // to exit1_dr
        tms_pad_i<=#1 0;
        tms_pad_i<=#1 0;
        gen_clk(1);       // to pause_dr
        gen_clk(1);       // to pause_dr
 
 
Line 705... Line 708...
    else
    else
      gen_clk(`STATUS_LEN);   // Generating 4 clocks to read out status.
      gen_clk(`STATUS_LEN);   // Generating 4 clocks to read out status.
 
 
    for(i=0; i<`CRC_LEN -1; i=i+1)  // Getting in the CRC
    for(i=0; i<`CRC_LEN -1; i=i+1)  // Getting in the CRC
    begin
    begin
      tdi_pad_i<=#1 1'b0;
 
      gen_clk(1);
      gen_clk(1);
    end
    end
 
 
    tdi_pad_i<=#1 crc[i]; // last crc
 
    tms_pad_i<=#1 1;
    tms_pad_i<=#1 1;
    gen_clk(1);         // to exit1_dr
    gen_clk(1);         // to exit1_dr
 
 
    tdi_pad_i<=#1 'hz;  // tri-state
 
    tms_pad_i<=#1 1;
    tms_pad_i<=#1 1;
    gen_clk(1);         // to update_dr
    gen_clk(1);         // to update_dr
    tms_pad_i<=#1 0;
    tms_pad_i<=#1 0;
    gen_clk(1);         // to run_test_idle
    gen_clk(1);         // to run_test_idle
  end
  end
Line 753... Line 753...
    begin
    begin
      tdi_pad_i<=#1 crc[i];
      tdi_pad_i<=#1 crc[i];
      gen_clk(1);
      gen_clk(1);
    end
    end
 
 
 
    tdi_pad_i<=#1 1'hz;
    gen_clk(`STATUS_LEN);   // Generating 4 clocks to read out status.
    gen_clk(`STATUS_LEN);   // Generating 4 clocks to read out status.
 
 
    for(i=0; i<`CRC_LEN -1; i=i+1)  // Getting in the CRC
    for(i=0; i<`CRC_LEN -1; i=i+1)  // Getting in the CRC
    begin
    begin
      tdi_pad_i<=#1 1'b0;
 
      gen_clk(1);
      gen_clk(1);
    end
    end
 
 
    tdi_pad_i<=#1 crc[i]; // last crc
 
    tms_pad_i<=#1 1;
    tms_pad_i<=#1 1;
    gen_clk(1);         // to exit1_dr
    gen_clk(1);         // to exit1_dr
 
 
    tdi_pad_i<=#1 'hz;  // tri-state
 
    tms_pad_i<=#1 1;
    tms_pad_i<=#1 1;
    gen_clk(1);         // to update_dr
    gen_clk(1);         // to update_dr
    tms_pad_i<=#1 0;
    tms_pad_i<=#1 0;
    gen_clk(1);         // to run_test_idle
    gen_clk(1);         // to run_test_idle
  end
  end
Line 823... Line 821...
    begin
    begin
      tdi_pad_i<=#1 crc[i];
      tdi_pad_i<=#1 crc[i];
      gen_clk(1);
      gen_clk(1);
    end
    end
 
 
 
    tdi_pad_i<=#1 1'hz;
 
 
 
 
 
 
    if ((last_wb_cmd == `WB_READ8) | (last_wb_cmd == `WB_READ16) | (last_wb_cmd == `WB_READ32))  // When WB_WRITEx was previously activated, data needs to be shifted.
    if ((last_wb_cmd == `WB_READ8) | (last_wb_cmd == `WB_READ16) | (last_wb_cmd == `WB_READ32))  // When WB_WRITEx was previously activated, data needs to be shifted.
      begin
      begin
        $display("\t\tGenerating %0d clocks to read %0d data bytes.", dbg_tb.i_dbg_top.i_dbg_wb.len << 3, dbg_tb.i_dbg_top.i_dbg_wb.len);
        $display("\t\tGenerating %0d clocks to read %0d data bytes.", dbg_tb.i_dbg_top.i_dbg_wb.len << 3, dbg_tb.i_dbg_top.i_dbg_wb.len);
        for (i=0; i<(dbg_tb.i_dbg_top.i_dbg_wb.len << 3); i=i+1)
        for (i=0; i<(dbg_tb.i_dbg_top.i_dbg_wb.len << 3); i=i+1)
          begin
 
            tdi_pad_i<=#1 1'hz;
 
            gen_clk(1);
            gen_clk(1);
          end
          end
      end
 
 
 
 
 
    gen_clk(`STATUS_LEN);   // Generating 4 clocks to read out status.
    gen_clk(`STATUS_LEN);   // Generating 4 clocks to read out status.
 
 
    for(i=0; i<`CRC_LEN -1; i=i+1)  // Getting in the CRC
    for(i=0; i<`CRC_LEN -1; i=i+1)  // Getting in the CRC
    begin
    begin
      tdi_pad_i<=#1 1'b0;
 
      gen_clk(1);
      gen_clk(1);
    end
    end
 
 
    tdi_pad_i<=#1 crc[i]; // last crc
 
    tms_pad_i<=#1 1;
    tms_pad_i<=#1 1;
    gen_clk(1);         // to exit1_dr
    gen_clk(1);         // to exit1_dr
 
 
    tdi_pad_i<=#1 'hz;  // tri-state
 
    tms_pad_i<=#1 1;
    tms_pad_i<=#1 1;
    gen_clk(1);         // to update_dr
    gen_clk(1);         // to update_dr
    tms_pad_i<=#1 0;
    tms_pad_i<=#1 0;
    gen_clk(1);         // to run_test_idle
    gen_clk(1);         // to run_test_idle
  end
  end

powered by: WebSVN 2.1.0

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