diff options
author | oharboe <oharboe> | 2008-06-17 22:09:13 +0000 |
---|---|---|
committer | oharboe <oharboe> | 2008-06-17 22:09:13 +0000 |
commit | 6647b91cf267e7e155c95c6adbcfbc43f083356b (patch) | |
tree | f690675c9ac791dc51ff1fcf76b7608617255ba9 /zpu/hdl/example | |
parent | b7d55a6d633c4a8820e43bc7b31e769b3ef97384 (diff) | |
download | zpu-6647b91cf267e7e155c95c6adbcfbc43f083356b.zip zpu-6647b91cf267e7e155c95c6adbcfbc43f083356b.tar.gz |
* io.vhd: fix address comparsion and added numerous outputs
during simulation to make things a bit easier
* zpu_config.vhd: do not use hardcoded startSp, allows more easily
tinkering w/RAM size
Diffstat (limited to 'zpu/hdl/example')
-rw-r--r-- | zpu/hdl/example/zpu_config.vhd | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/zpu/hdl/example/zpu_config.vhd b/zpu/hdl/example/zpu_config.vhd index a59ac8e..dc2b666 100644 --- a/zpu/hdl/example/zpu_config.vhd +++ b/zpu/hdl/example/zpu_config.vhd @@ -1,6 +1,7 @@ library ieee;
use ieee.std_logic_1164.all;
use ieee.std_logic_unsigned.all;
+use ieee.std_logic_arith.all;
package zpu_config is
-- generate trace output
@@ -16,5 +17,6 @@ package zpu_config is -- start byte address of stack.
-- point to top of RAM - 2*words
- constant spStart : std_logic_vector(maxAddrBitIncIO downto 0) := x"1fffff8";
+ constant spStart : std_logic_vector(maxAddrBitIncIO downto 0) :=
+ conv_std_logic_vector((2**(maxAddrBitBRAM+1))/4-8, maxAddrBitIncIO+1);
end zpu_config;
|