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

Subversion Repositories or1k

[/] - Rev 1116

Rev

Go to most recent revision | Changes | View Log | RSS feed

Last modification

  • Rev 1116 2003-02-27 22:23:08 GMT
  • Author: sfurman
  • Log message:
    There was a bug in the simulator's UART implementation that caused the
    UART's LSR register to become corrupted. This was due to an
    assumption that 'char' is an unsigned type, but that is not true on
    all platforms.

    When the char type is signed and a character is read in the range
    0x80-0xff, the high bit is sign-extended into the upper bits of an
    entry in the receive FIFO. When the character reaches the head of the
    FIFO, the upper bits of the FIFO entry are OR'ed into the LSR, causing
    the LSR to be set to 0xFF.

    A simple cast fixes the problem.
Path Last modification Log RSS feed
[FOLDER] branches/ 809  8104d 02h simons View Log RSS feed
[FOLDER] tags/ 1084  7894d 23h View Log RSS feed
[FOLDER] trunk/ 1116  7781d 14h sfurman View Log RSS feed

powered by: WebSVN 2.1.0

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