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

Subversion Repositories uart2bus_testbench

[/] [uart2bus_testbench/] [trunk/] [tb/] [interfaces/] [uart_interface.sv] - Diff between revs 3 and 8

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

Rev 3 Rev 8
Line 284... Line 284...
      for (int index=0;index <8;index++)
      for (int index=0;index <8;index++)
        begin
        begin
        temp = temp ^ data [index];
        temp = temp ^ data [index];
        end
        end
      end
      end
      end
 
    else if (parity != `_parityoff)
    else if (parity != `_parityoff)
      begin
      begin
      $error("un-configured parity");
      $error("un-configured parity");
      end
      end
    // Stop bit(s)
    // Stop bit(s)
Line 892... Line 891...
      if (tmp != `ACK)
      if (tmp != `ACK)
        begin
        begin
        $error("The captured acknowledge isn't as unified character");
        $error("The captured acknowledge isn't as unified character");
        end
        end
      end
      end
 
 
  endtask:write_binary_mode
  endtask:write_binary_mode
 
 
  // This method is provided to initiate read request in UART binary mode. This task is accompli-
  // This method is provided to initiate read request in UART binary mode. This task is accompli-
  // shed through the following sequence:
  // shed through the following sequence:
  //                               -----------------------
  //                               -----------------------
Line 987... Line 985...
    else if (reqinc == `_no)
    else if (reqinc == `_no)
      begin
      begin
      tmp[1] = 1'b1;
      tmp[1] = 1'b1;
      end
      end
    else
    else
      $error("undefined acknowledge request");
 
      end
 
      begin
      begin
      $error("undefined increment request");
      $error("undefined increment request");
      end
      end
 
 
    if(reqack==`_yes)
    if(reqack==`_yes)
Line 1003... Line 999...
      begin
      begin
      tmp[0] = 1'b0;
      tmp[0] = 1'b0;
      end
      end
    else
    else
      begin
      begin
 
      $error("undefined acknowledge request");
 
      end
    push_field_serout(tmp);
    push_field_serout(tmp);
 
 
    // Third byte : higher byte of address
    // Third byte : higher byte of address
    push_field_serout(address[15:08]);
    push_field_serout(address[15:08]);
 
 

powered by: WebSVN 2.1.0

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