URL
https://opencores.org/ocsvn/neorv32/neorv32/trunk
[/] [neorv32/] [trunk/] [sim/] [neorv32_tb.vhd] - Diff between revs 31 and 33
Go to most recent revision |
Show entire file |
Details |
Blame |
View Log
Rev 31 |
Rev 33 |
Line 262... |
Line 262... |
if (uart_rx_bitcnt = 0) then
|
if (uart_rx_bitcnt = 0) then
|
uart_rx_busy <= '0'; -- done
|
uart_rx_busy <= '0'; -- done
|
i := to_integer(unsigned(uart_rx_sreg(8 downto 1)));
|
i := to_integer(unsigned(uart_rx_sreg(8 downto 1)));
|
|
|
if (i < 32) or (i > 32+95) then -- printable char?
|
if (i < 32) or (i > 32+95) then -- printable char?
|
report "SIM_UART TX: (" & integer'image(i) & ")"; -- print code
|
report "NEORV32_TB_UART.TX: (" & integer'image(i) & ")"; -- print code
|
else
|
else
|
report "SIM_UART TX: " & character'val(i); -- print ASCII
|
report "NEORV32_TB_UART.TX: " & character'val(i); -- print ASCII
|
end if;
|
end if;
|
|
|
if (i = 10) then -- Linux line break
|
if (i = 10) then -- Linux line break
|
writeline(file_uart_tx_out, l);
|
writeline(file_uart_tx_out, l);
|
elsif (i /= 13) then -- Remove additional carriage return
|
elsif (i /= 13) then -- Remove additional carriage return
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.