1 |
d93979b7
|
Arnaud Dieumegard
|
|
2 |
|
|
-- Copyright (C) 1996 Morgan Kaufmann Publishers, Inc
|
3 |
|
|
|
4 |
|
|
-- This file is part of VESTs (Vhdl tESTs).
|
5 |
|
|
|
6 |
|
|
-- VESTs is free software; you can redistribute it and/or modify it
|
7 |
|
|
-- under the terms of the GNU General Public License as published by the
|
8 |
|
|
-- Free Software Foundation; either version 2 of the License, or (at
|
9 |
|
|
-- your option) any later version.
|
10 |
|
|
|
11 |
|
|
-- VESTs is distributed in the hope that it will be useful, but WITHOUT
|
12 |
|
|
-- ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
13 |
|
|
-- FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
14 |
|
|
-- for more details.
|
15 |
|
|
|
16 |
|
|
-- You should have received a copy of the GNU General Public License
|
17 |
|
|
-- along with VESTs; if not, write to the Free Software Foundation,
|
18 |
|
|
-- Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
19 |
|
|
|
20 |
|
|
-- ---------------------------------------------------------------------
|
21 |
|
|
--
|
22 |
|
|
-- $Id: ch_13_fg_13_17.vhd,v 1.2 2001-10-26 16:29:35 paw Exp $
|
23 |
|
|
-- $Revision: 1.2 $
|
24 |
|
|
--
|
25 |
|
|
-- ---------------------------------------------------------------------
|
26 |
|
|
|
27 |
|
|
-- not in book
|
28 |
|
|
entity single_board_computer is
|
29 |
|
|
end entity single_board_computer;
|
30 |
|
|
-- end not in book
|
31 |
|
|
|
32 |
|
|
|
33 |
|
|
architecture structural of single_board_computer is
|
34 |
|
|
|
35 |
|
|
-- . . . -- type and signal declarations
|
36 |
|
|
|
37 |
|
|
-- not in book
|
38 |
|
|
|
39 |
|
|
subtype word is bit_vector(31 downto 0);
|
40 |
|
|
signal sys_clk : bit;
|
41 |
|
|
signal cpu_a_d, latched_addr : word;
|
42 |
|
|
|
43 |
|
|
-- end not in book
|
44 |
|
|
|
45 |
|
|
component processor is
|
46 |
|
|
port ( clk : in bit; a_d : inout word; -- . . . );
|
47 |
|
|
-- not in book
|
48 |
|
|
other_port : in bit := '0' );
|
49 |
|
|
-- end not in book
|
50 |
|
|
end component processor;
|
51 |
|
|
|
52 |
|
|
component memory is
|
53 |
|
|
port ( addr : in bit_vector(25 downto 0); -- . . . );
|
54 |
|
|
-- not in book
|
55 |
|
|
other_port : in bit := '0' );
|
56 |
|
|
-- end not in book
|
57 |
|
|
end component memory;
|
58 |
|
|
|
59 |
|
|
component serial_interface is
|
60 |
|
|
port ( clk : in bit; address : in bit_vector(3 downto 0); -- . . . );
|
61 |
|
|
-- not in book
|
62 |
|
|
other_port : in bit := '0' );
|
63 |
|
|
-- end not in book
|
64 |
|
|
end component serial_interface;
|
65 |
|
|
|
66 |
|
|
begin
|
67 |
|
|
|
68 |
|
|
cpu : component processor
|
69 |
|
|
port map ( clk => sys_clk, a_d => cpu_a_d, -- . . . );
|
70 |
|
|
-- not in book
|
71 |
|
|
other_port => open );
|
72 |
|
|
-- end not in book
|
73 |
|
|
|
74 |
|
|
main_memory : component memory
|
75 |
|
|
port map ( addr => latched_addr(25 downto 0), -- . . . );
|
76 |
|
|
-- not in book
|
77 |
|
|
other_port => open );
|
78 |
|
|
-- end not in book
|
79 |
|
|
|
80 |
|
|
serial_interface_a : component serial_interface
|
81 |
|
|
port map ( clk => sys_clk, address => latched_addr(3 downto 0), -- . . . );
|
82 |
|
|
-- not in book
|
83 |
|
|
other_port => open );
|
84 |
|
|
-- end not in book
|
85 |
|
|
|
86 |
|
|
-- . . .
|
87 |
|
|
|
88 |
|
|
end architecture structural;
|