diff options
author | oharboe <oharboe> | 2008-06-18 17:04:44 +0000 |
---|---|---|
committer | oharboe <oharboe> | 2008-06-18 17:04:44 +0000 |
commit | 8c213415fe0ddc1f9eae0b96e023eb89f89d1c47 (patch) | |
tree | b2ec69cc0eccf470256898f5c7d51b2a49f9376d /zpu/hdl/example | |
parent | 0711a2b4fc2dec8bf65e5821095bed895976b83a (diff) | |
download | zpu-8c213415fe0ddc1f9eae0b96e023eb89f89d1c47.zip zpu-8c213415fe0ddc1f9eae0b96e023eb89f89d1c47.tar.gz |
I'm also attaching another patch which removes unisim/roc dependency
(it was used just to pulse the areset) and fixes paths for building
the ghdl examples out of the box. I guess this is the easiest way to
get zpu running on linux with minimum effort.
You should check if the areset change doesn't break modelsim. It feels
much simpler this way and seems to work the same, i might be missing
something.
Diffstat (limited to 'zpu/hdl/example')
-rw-r--r-- | zpu/hdl/example/sim_small_fpga_top.vhd | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/zpu/hdl/example/sim_small_fpga_top.vhd b/zpu/hdl/example/sim_small_fpga_top.vhd index 2a7a9f5..0727bea 100644 --- a/zpu/hdl/example/sim_small_fpga_top.vhd +++ b/zpu/hdl/example/sim_small_fpga_top.vhd @@ -23,8 +23,8 @@ use ieee.numeric_std.all; ---- Uncomment the following library declaration if instantiating
---- any Xilinx primitives in this code.
-library UNISIM;
-use UNISIM.VComponents.all;
+--library UNISIM;
+--use UNISIM.VComponents.all;
library work;
use work.zpu_config.all;
@@ -38,7 +38,7 @@ architecture behave of fpga_top is signal clk : std_logic;
-signal areset : std_logic;
+signal areset : std_logic := '1';
component zpu_io is
@@ -97,9 +97,6 @@ signal interrupt : std_logic; signal break : std_logic;
begin
- poweronreset: roc port map (O => areset);
-
-
zpu: zpu_core port map (
clk => clk ,
@@ -188,6 +185,7 @@ begin wait for 5 ns;
clk <= '1';
wait for 5 ns;
+ areset <= '0';
end PROCESS clock;
|