1 |
63 |
olivier.gi |
//----------------------------------------------------------------------------
|
2 |
|
|
// Copyright (C) 2001 Authors
|
3 |
|
|
//
|
4 |
|
|
// This source file may be used and distributed without restriction provided
|
5 |
|
|
// that this copyright statement is not removed from the file and that any
|
6 |
|
|
// derivative work contains the original copyright notice and the associated
|
7 |
|
|
// disclaimer.
|
8 |
|
|
//
|
9 |
|
|
// This source file is free software; you can redistribute it and/or modify
|
10 |
|
|
// it under the terms of the GNU Lesser General Public License as published
|
11 |
|
|
// by the Free Software Foundation; either version 2.1 of the License, or
|
12 |
|
|
// (at your option) any later version.
|
13 |
|
|
//
|
14 |
|
|
// This source is distributed in the hope that it will be useful, but WITHOUT
|
15 |
|
|
// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
16 |
|
|
// FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
|
17 |
|
|
// License for more details.
|
18 |
|
|
//
|
19 |
|
|
// You should have received a copy of the GNU Lesser General Public License
|
20 |
|
|
// along with this source; if not, write to the Free Software Foundation,
|
21 |
|
|
// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
22 |
|
|
//
|
23 |
|
|
//----------------------------------------------------------------------------
|
24 |
|
|
//
|
25 |
|
|
// *File Name: openMSP430_fpga_top.v
|
26 |
|
|
//
|
27 |
|
|
// *Author(s):
|
28 |
|
|
// - Olivier Girard, olgirard@gmail.com
|
29 |
|
|
//
|
30 |
|
|
//----------------------------------------------------------------------------
|
31 |
|
|
// $Rev: 37 $
|
32 |
|
|
// $LastChangedBy: olivier.girard $
|
33 |
|
|
// $LastChangedDate: 2009-12-29 21:58:14 +0100 (Tue, 29 Dec 2009) $
|
34 |
|
|
//----------------------------------------------------------------------------
|
35 |
|
|
|
36 |
|
|
//=============================================================================
|
37 |
|
|
// FPGA Specific modules
|
38 |
|
|
//=============================================================================
|
39 |
|
|
`include "../src/arch.v"
|
40 |
|
|
`include "../src/openMSP430_fpga.v"
|
41 |
|
|
|
42 |
|
|
`ifdef CYCLONE_II
|
43 |
|
|
`include "../src/megawizard/cyclone2_pmem.v"
|
44 |
|
|
`include "../src/megawizard/cyclone2_dmem.v"
|
45 |
|
|
`endif
|
46 |
|
|
`ifdef CYCLONE_III
|
47 |
|
|
`include "../src/megawizard/cyclone3_pmem.v"
|
48 |
|
|
`include "../src/megawizard/cyclone3_dmem.v"
|
49 |
|
|
`endif
|
50 |
|
|
`ifdef CYCLONE_IV_GX
|
51 |
|
|
`include "../src/megawizard/cyclone4gx_pmem.v"
|
52 |
|
|
`include "../src/megawizard/cyclone4gx_dmem.v"
|
53 |
|
|
`endif
|
54 |
|
|
`ifdef ARRIA_GX
|
55 |
|
|
`include "../src/megawizard/arriagx_pmem.v"
|
56 |
|
|
`include "../src/megawizard/arriagx_dmem.v"
|
57 |
|
|
`endif
|
58 |
|
|
`ifdef ARRIA_II_GX
|
59 |
|
|
`include "../src/megawizard/arria2gx_pmem.v"
|
60 |
|
|
`include "../src/megawizard/arria2gx_dmem.v"
|
61 |
|
|
`endif
|
62 |
|
|
`ifdef STRATIX
|
63 |
|
|
`include "../src/megawizard/stratix_pmem.v"
|
64 |
|
|
`include "../src/megawizard/stratix_dmem.v"
|
65 |
|
|
`endif
|
66 |
|
|
`ifdef STRATIX_II
|
67 |
|
|
`include "../src/megawizard/stratix2_pmem.v"
|
68 |
|
|
`include "../src/megawizard/stratix2_dmem.v"
|
69 |
|
|
`endif
|
70 |
|
|
`ifdef STRATIX_III
|
71 |
|
|
`include "../src/megawizard/stratix3_pmem.v"
|
72 |
|
|
`include "../src/megawizard/stratix3_dmem.v"
|
73 |
|
|
`endif
|
74 |
|
|
|
75 |
|
|
|
76 |
|
|
//=============================================================================
|
77 |
|
|
// openMSP430
|
78 |
|
|
//=============================================================================
|
79 |
|
|
|
80 |
|
|
`include "../../../rtl/verilog/openMSP430.v"
|
81 |
|
|
`include "../../../rtl/verilog/omsp_frontend.v"
|
82 |
|
|
`include "../../../rtl/verilog/omsp_execution_unit.v"
|
83 |
|
|
`include "../../../rtl/verilog/omsp_register_file.v"
|
84 |
|
|
`include "../../../rtl/verilog/omsp_alu.v"
|
85 |
134 |
olivier.gi |
`include "../../../rtl/verilog/omsp_sfr.v"
|
86 |
|
|
`include "../../../rtl/verilog/omsp_clock_module.v"
|
87 |
63 |
olivier.gi |
`include "../../../rtl/verilog/omsp_mem_backbone.v"
|
88 |
|
|
`include "../../../rtl/verilog/omsp_watchdog.v"
|
89 |
111 |
olivier.gi |
`include "../../../rtl/verilog/omsp_sync_cell.v"
|
90 |
134 |
olivier.gi |
`include "../../../rtl/verilog/omsp_sync_reset.v"
|
91 |
63 |
olivier.gi |
|
92 |
|
|
`include "../src/openMSP430_defines.v"
|
93 |
|
|
`ifdef DBG_EN
|
94 |
|
|
`include "../../../rtl/verilog/omsp_dbg.v"
|
95 |
|
|
`include "../../../rtl/verilog/omsp_dbg_uart.v"
|
96 |
|
|
`include "../src/openMSP430_defines.v"
|
97 |
|
|
`ifdef DBG_HWBRK_0
|
98 |
|
|
`include "../../../rtl/verilog/omsp_dbg_hwbrk.v"
|
99 |
|
|
`endif
|
100 |
|
|
`endif
|
101 |
68 |
olivier.gi |
`include "../src/openMSP430_defines.v"
|
102 |
|
|
`ifdef MULTIPLIER
|
103 |
|
|
`include "../../../rtl/verilog/omsp_multiplier.v"
|
104 |
|
|
`endif
|