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

Subversion Repositories uart2bus_testbench

[/] [uart2bus_testbench/] [trunk/] [tb/] [agent/] [driver/] [uart_driver.svh] - Diff between revs 8 and 14

Show entire file | Details | Blame | View Log

Rev 8 Rev 14
Line 140... Line 140...
  if (trans._mode == text || trans._mode == wrong_mode_text)
  if (trans._mode == text || trans._mode == wrong_mode_text)
    begin
    begin
    case(trans._command)
    case(trans._command)
      read:
      read:
        begin
        begin
        /*fork
 
        begin
 
          if (trans._arbit == accept)
 
            begin
 
            arb_inf.accept_req();
 
            end
 
          else
 
            begin
 
            arb_inf.declain_req();
 
            end
 
        end
 
        join_none*/
 
        rf_inf.fill_byte (trans.address,
        rf_inf.fill_byte (trans.address,
                          trans._data[0]);
                          trans._data[0]);
        uart_inf.read_text_mode(trans._mode,
        uart_inf.read_text_mode(trans._mode,
                                trans.wrong_prefix,
                                trans.wrong_prefix,
                                trans._chartype,
                                trans._chartype,
Line 168... Line 156...
                                trans.false_data_en);
                                trans.false_data_en);
 
 
        end
        end
      write:
      write:
        begin
        begin
        /*fork
 
        begin
 
          if (trans._arbit == accept)
 
            begin
 
            arb_inf.accept_req();
 
            end
 
          else
 
            begin
 
            arb_inf.declain_req();
 
            end
 
        end
 
        join_none*/
 
        uart_inf.write_text_mode(trans._mode,
        uart_inf.write_text_mode(trans._mode,
                                 trans.wrong_prefix,
                                 trans.wrong_prefix,
                                 trans._chartype,
                                 trans._chartype,
                                 trans._spacetype1,
                                 trans._spacetype1,
                                 trans.space_wrong1,
                                 trans.space_wrong1,
Line 195... Line 171...
                                 trans._data[0]);
                                 trans._data[0]);
 
 
        end
        end
      nop:
      nop:
        begin
        begin
        `uvm_fatal("UNEXPECTED VALUE","NOP command value shouldn't be valued in text mode")
        `uvm_fatal("TB ISSUE","NOP command value shouldn't be valued in text mode")
        end
        end
      default:
      default:
        begin
        begin
        `uvm_fatal("wrong output", "wrong_mode")
        `uvm_fatal("TB ISSUE", "wrong_mode")
        end
        end
    endcase
    endcase
    end
    end
  else if (trans._mode==binary || trans._mode==wrong_mode_bin)
  else if (trans._mode==binary || trans._mode==wrong_mode_bin)
    begin
    begin

powered by: WebSVN 2.1.0

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