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

Subversion Repositories or1k

[/] [or1k/] [tags/] [nog_patch_47/] [or1ksim/] [testbench/] [acv_uart.c] - Diff between revs 355 and 361

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

Rev 355 Rev 361
Line 254... Line 254...
    setreg (UART_THR, *s); /* send character */
    setreg (UART_THR, *s); /* send character */
    NO_ERROR();
    NO_ERROR();
    s++;
    s++;
  }
  }
  ASSERT (!(getreg (UART_LSR) & LSR_DR));
  ASSERT (!(getreg (UART_LSR) & LSR_DR));
  setreg (UART_THR, '*');
  /* this should break the * char, so it should not be received */
  /* this should break the current char, so no * should be received */
 
  setreg (UART_LCR, LCR_BREAK);
  setreg (UART_LCR, LCR_BREAK);
 
  setreg (UART_THR, '*');
  /* uart should hold line long enough even if we drop it immediately */
  /* uart should hold line long enough even if we drop it immediately */
  setreg (UART_LCR, 0);
  setreg (UART_LCR, 0);
  NO_ERROR();
  NO_ERROR();
 
 
  /* Receives and compares the string */
  /* Receives and compares the string */

powered by: WebSVN 2.1.0

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