diff options
author | oharboe <oharboe> | 2008-04-22 05:52:16 +0000 |
---|---|---|
committer | oharboe <oharboe> | 2008-04-22 05:52:16 +0000 |
commit | d09fa3de9df02a66c5084623076ac3e167b58274 (patch) | |
tree | b734b58ae8ca60717464d503e9a9bcd4a98727a7 /zpu/hdl/zpu4/src/io.vhd | |
parent | 167263dcae188a8812627ab52cfd96b8fdc5df8a (diff) | |
download | zpu-d09fa3de9df02a66c5084623076ac3e167b58274.zip zpu-d09fa3de9df02a66c5084623076ac3e167b58274.tar.gz |
* zpu/hdl/example_ghdl/ghdl_import.sh, zpu/hdl/example_ghdl/ghdl_make.sh,
zpu/hdl/example_ghdl/ghdl_options.sh, zpu/hdl/example_ghdl/README: GHDL example
* zpu/hdl/zpu4/src/dmipssmalltrace_ghdl.sh: testcase for GHDL
* zpu/hdl/zpu4/src/dmipstrace_ghdl.sh: testcase for GHDL
* zpu/hdl/zpu4/src/simzpu_medium_ghdl.sh: testcase for GHDL
* zpu/hdl/example/helloworld.vhd, zpu/hdl/zpu4/src/bram_dmips.vhd,
zpu/hdl/zpu4/src/dmipssmalltrace_ghdl.sh, zpu/hdl/zpu4/src/dram_dmips.vhd,
zpu/hdl/zpu4/src/dram_hello.vhd, zpu/hdl/zpu4/src/io.vhd,
zpu/hdl/zpu4/src/sim_fpga_top.vhd, zpu/hdl/zpu4/src/sim_small_fpga_top.vhd,
zpu/hdl/zpu4/src/timer.vhd, zpu/hdl/zpu4/src/trace.vhd,
zpu/hdl/zpu4/src/zpu_config_trace.vhd, zpu/hdl/zpu4/src/zpu_core_small.vhd,
zpu/hdl/zpu4/src/zpu_core.vhd, zpu/hdl/zpu4/src/zpupkg.vhd: conversion to numeric_std
Diffstat (limited to 'zpu/hdl/zpu4/src/io.vhd')
-rw-r--r-- | zpu/hdl/zpu4/src/io.vhd | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/zpu/hdl/zpu4/src/io.vhd b/zpu/hdl/zpu4/src/io.vhd index 7dbe36f..7a2601f 100644 --- a/zpu/hdl/zpu4/src/io.vhd +++ b/zpu/hdl/zpu4/src/io.vhd @@ -1,6 +1,6 @@ library ieee;
use ieee.std_logic_1164.all;
-use IEEE.STD_LOGIC_UNSIGNED.ALL;
+use ieee.numeric_std.all;
use std.textio.all;
@@ -63,12 +63,12 @@ begin if addr=x"2028003" then
-- Write to UART
-- report "" & character'image(conv_integer(memBint)) severity note;
- print(l_file, character'val(conv_integer(write)));
+ print(l_file, character'val(to_integer(unsigned(write))));
elsif addr(12)='1' then
-- report "xxx" severity failure;
-- timer_we <= '1';
else
- print(l_file, character'val(conv_integer(write)));
+ print(l_file, character'val(to_integer(unsigned(write))));
report "Illegal IO write" severity warning;
end if;
|