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

Subversion Repositories dbg_interface

[/] [dbg_interface/] [trunk/] [bench/] [verilog/] [dbg_tb.v] - Diff between revs 140 and 141

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

Rev 140 Rev 141
Line 41... Line 41...
//////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////
//
//
// CVS Revision History
// CVS Revision History
//
//
// $Log: not supported by cvs2svn $
// $Log: not supported by cvs2svn $
 
// Revision 1.42  2004/03/30 23:10:39  igorm
 
// CRC checking of incoming CRC added to all tasks.
 
//
// Revision 1.41  2004/03/28 20:27:40  igorm
// Revision 1.41  2004/03/28 20:27:40  igorm
// New release of the debug interface (3rd. release).
// New release of the debug interface (3rd. release).
//
//
// Revision 1.40  2004/03/22 16:36:06  igorm
// Revision 1.40  2004/03/22 16:36:06  igorm
// Temp version before changing dbg interface.
// Temp version before changing dbg interface.
Line 1342... Line 1345...
    tdi_pad_i<=#1 1'hz;
    tdi_pad_i<=#1 1'hz;
    crc_in = {`DBG_WB_CRC_LEN{1'b1}};  // Initialize incoming CRC to all ff
    crc_in = {`DBG_WB_CRC_LEN{1'b1}};  // Initialize incoming CRC to all ff
 
 
    if ((last_wb_cmd == `DBG_WB_READ8) | (last_wb_cmd == `DBG_WB_READ16) | (last_wb_cmd == `DBG_WB_READ32))  // When WB_READx was previously activated, data needs to be shifted.
    if ((last_wb_cmd == `DBG_WB_READ8) | (last_wb_cmd == `DBG_WB_READ16) | (last_wb_cmd == `DBG_WB_READ32))  // When WB_READx 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.data_cnt_limit, dbg_tb.i_dbg_top.i_dbg_wb.data_cnt_limit>>3);
        $display("\t\tGenerating %0d clocks to read %0d data bytes.", dbg_tb.i_dbg_top.i_dbg_wb.data_cnt_limit<<3, dbg_tb.i_dbg_top.i_dbg_wb.data_cnt_limit);
        word_pointer = 0; // Reset pointer
        word_pointer = 0; // Reset pointer
        for (i=0; i<(dbg_tb.i_dbg_top.i_dbg_wb.data_cnt_limit); i=i+1)
        for (i=0; i<(dbg_tb.i_dbg_top.i_dbg_wb.data_cnt_limit<<3); i=i+1)
          begin
          begin
            gen_clk(1);
            gen_clk(1);
            if (i[4:0] == 31)   // Latching data
            if (i[4:0] == 31)   // Latching data
              begin
              begin
                wb_data[word_pointer] = in_data_be;
                wb_data[word_pointer] = in_data_be;
Line 1830... Line 1833...
    tdi_pad_i<=#1 1'hz;
    tdi_pad_i<=#1 1'hz;
    crc_in = {`DBG_CPU_CRC_LEN{1'b1}};  // Initialize incoming CRC to all ff
    crc_in = {`DBG_CPU_CRC_LEN{1'b1}};  // Initialize incoming CRC to all ff
 
 
    if (last_cpu_cmd == `DBG_CPU_READ)  // When DBG_CPU_READ was previously activated, data needs to be shifted.
    if (last_cpu_cmd == `DBG_CPU_READ)  // When DBG_CPU_READ 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_cpu.data_cnt_limit, dbg_tb.i_dbg_top.i_dbg_cpu.data_cnt_limit>>3);
        $display("\t\tGenerating %0d clocks to read %0d data bytes.", dbg_tb.i_dbg_top.i_dbg_cpu.data_cnt_limit<<3, dbg_tb.i_dbg_top.i_dbg_cpu.data_cnt_limit);
        word_pointer = 0; // Reset pointer
        word_pointer = 0; // Reset pointer
        for (i=0; i<(dbg_tb.i_dbg_top.i_dbg_cpu.data_cnt_limit); i=i+1)
        for (i=0; i<(dbg_tb.i_dbg_top.i_dbg_cpu.data_cnt_limit<<3); i=i+1)
          begin
          begin
            gen_clk(1);
            gen_clk(1);
            if (i[4:0] == 31)   // Latching data
            if (i[4:0] == 31)   // Latching data
              begin
              begin
                wb_data[word_pointer] = in_data_be;
                wb_data[word_pointer] = in_data_be;

powered by: WebSVN 2.1.0

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