diff options
author | Bert Lange <b.lange@hzdr.de> | 2011-10-13 12:35:10 +0200 |
---|---|---|
committer | Bert Lange <b.lange@hzdr.de> | 2011-10-13 12:35:10 +0200 |
commit | bf4405c61a9c010a8e888da678436a282b9551a3 (patch) | |
tree | 73dbbab4e3e61fcb25c650ced97805f0523ebe37 /zpu/hdl/zealot/devices | |
parent | f5af2532d9d7de635e154ad416af42695f6d96ea (diff) | |
download | zpu-bf4405c61a9c010a8e888da678436a282b9551a3.zip zpu-bf4405c61a9c010a8e888da678436a282b9551a3.tar.gz |
change: prettier logifle output (for zealot)
Diffstat (limited to 'zpu/hdl/zealot/devices')
-rw-r--r-- | zpu/hdl/zealot/devices/phi_io.vhdl | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/zpu/hdl/zealot/devices/phi_io.vhdl b/zpu/hdl/zealot/devices/phi_io.vhdl index 267ff54..b70ccd7 100644 --- a/zpu/hdl/zealot/devices/phi_io.vhdl +++ b/zpu/hdl/zealot/devices/phi_io.vhdl @@ -158,6 +158,8 @@ begin do_io: process(clk_i) + variable line_out : line := new string'(""); + variable char : character; begin if rising_edge(clk_i) then if reset_i/='1' then @@ -167,9 +169,12 @@ begin -- Write to UART print("- Write to UART Tx: 0x" &hstr(data_i)&" ("& character'val(to_integer(data_i) mod 256)&")"); - if to_integer(data_i)<256 then - print(l_file,character'val(to_integer(data_i))); - end if; + char := character'val(to_integer(data_i)); + if char = lf then + std.textio.writeline(l_file, line_out); + else + std.textio.write(line_out, char); + end if; elsif is_timer='1' and ENA_LOG then print("- Write to TIMER: 0x"&hstr(data_i)); else |