OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [ecos-2.0/] [doc/] [html/] [user-guide/] [setup-mn10300-sim.html] - Blame information for rev 811

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 28 unneback
<!-- Copyright (C) 2003 Red Hat, Inc.                                -->
2
<!-- This material may be distributed only subject to the terms      -->
3
<!-- and conditions set forth in the Open Publication License, v1.0  -->
4
<!-- or later (the latest version is presently available at          -->
5
<!-- http://www.opencontent.org/openpub/).                           -->
6
<!-- Distribution of the work or derivative of the work in any       -->
7
<!-- standard (paper) book form is prohibited unless prior           -->
8
<!-- permission is obtained from the copyright holder.               -->
9
<HTML
10
><HEAD
11
><TITLE
12
>MN10300 Architectural Simulator Setup</TITLE
13
><meta name="MSSmartTagsPreventParsing" content="TRUE">
14
<META
15
NAME="GENERATOR"
16
CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+
17
"><LINK
18
REL="HOME"
19
TITLE="eCos User Guide"
20
HREF="ecos-user-guide.html"><LINK
21
REL="UP"
22
TITLE="Target Setup"
23
HREF="appendix-target-setup.html"><LINK
24
REL="PREVIOUS"
25
TITLE="Target Setup"
26
HREF="appendix-target-setup.html"><LINK
27
REL="NEXT"
28
TITLE="AM33 STB Hardware Setup"
29
HREF="setup-am33-stb.html"></HEAD
30
><BODY
31
CLASS="SECT1"
32
BGCOLOR="#FFFFFF"
33
TEXT="#000000"
34
LINK="#0000FF"
35
VLINK="#840084"
36
ALINK="#0000FF"
37
><DIV
38
CLASS="NAVHEADER"
39
><TABLE
40
SUMMARY="Header navigation table"
41
WIDTH="100%"
42
BORDER="0"
43
CELLPADDING="0"
44
CELLSPACING="0"
45
><TR
46
><TH
47
COLSPAN="3"
48
ALIGN="center"
49
>eCos User Guide</TH
50
></TR
51
><TR
52
><TD
53
WIDTH="10%"
54
ALIGN="left"
55
VALIGN="bottom"
56
><A
57
HREF="appendix-target-setup.html"
58
ACCESSKEY="P"
59
>Prev</A
60
></TD
61
><TD
62
WIDTH="80%"
63
ALIGN="center"
64
VALIGN="bottom"
65
>Appendix A. Target Setup</TD
66
><TD
67
WIDTH="10%"
68
ALIGN="right"
69
VALIGN="bottom"
70
><A
71
HREF="setup-am33-stb.html"
72
ACCESSKEY="N"
73
>Next</A
74
></TD
75
></TR
76
></TABLE
77
><HR
78
ALIGN="LEFT"
79
WIDTH="100%"></DIV
80
><DIV
81
CLASS="SECT1"
82
><H1
83
CLASS="SECT1"
84
><A
85
NAME="SETUP-MN10300-SIM">MN10300 Architectural Simulator Setup</H1
86
><P
87
>The MN10300 simulator is an architectural simulator for the
88
Matsushita MN10300 that implements all features of the microprocessor
89
 necessary to run eCos. The current implementation provides accurate
90
simulation of the instruction set, interrupt controller, timers,
91
and  serial I/O.</P
92
><P
93
>In this release, you can run the same eCos binaries in the
94
simulator that can run on target hardware, if built for ROM start-up,
95
with the  exception of those that use the watchdog timer.</P
96
><P
97
>However, note that AM33 devices required to run eCos are not
98
simulated; therefore you cannot run eCos binaries built for the
99
AM33 under the simulator. For the AM33, the simulator is effectively
100
an instruction-set only simulator.</P
101
><P
102
>To simplify connection to the simulator, you are advised to
103
create a GDB macro by putting the following code in your personal
104
GDB start-up file (gdb.ini on Windows and .gdbinit on UNIX).</P
105
><TABLE
106
BORDER="5"
107
BGCOLOR="#E0E0F0"
108
WIDTH="70%"
109
><TR
110
><TD
111
><PRE
112
CLASS="PROGRAMLISTING"
113
>define msim
114
 target sim --board=stdeval1 --memory-region 0x34004000,0x8
115
 
116
 rbreak cyg_test_exit
117
 rbreak cyg_assert_fail
118
end</PRE
119
></TD
120
></TR
121
></TABLE
122
><P
123
>You can then connect to the simulator by invoking the command <TABLE
124
BORDER="5"
125
BGCOLOR="#E0E0F0"
126
WIDTH="70%"
127
><TR
128
><TD
129
><PRE
130
CLASS="PROGRAMLISTING"
131
>msim</PRE
132
></TD
133
></TR
134
></TABLE
135
> on
136
the command line:</P
137
><TABLE
138
BORDER="5"
139
BGCOLOR="#E0E0F0"
140
WIDTH="70%"
141
><TR
142
><TD
143
><PRE
144
CLASS="PROGRAMLISTING"
145
>(gdb) msim</PRE
146
></TD
147
></TR
148
></TABLE
149
><P
150
>You can achieve the same effect by typing out the macro&#8217;s
151
content on  the command line if necessary.</P
152
></DIV
153
><DIV
154
CLASS="NAVFOOTER"
155
><HR
156
ALIGN="LEFT"
157
WIDTH="100%"><TABLE
158
SUMMARY="Footer navigation table"
159
WIDTH="100%"
160
BORDER="0"
161
CELLPADDING="0"
162
CELLSPACING="0"
163
><TR
164
><TD
165
WIDTH="33%"
166
ALIGN="left"
167
VALIGN="top"
168
><A
169
HREF="appendix-target-setup.html"
170
ACCESSKEY="P"
171
>Prev</A
172
></TD
173
><TD
174
WIDTH="34%"
175
ALIGN="center"
176
VALIGN="top"
177
><A
178
HREF="ecos-user-guide.html"
179
ACCESSKEY="H"
180
>Home</A
181
></TD
182
><TD
183
WIDTH="33%"
184
ALIGN="right"
185
VALIGN="top"
186
><A
187
HREF="setup-am33-stb.html"
188
ACCESSKEY="N"
189
>Next</A
190
></TD
191
></TR
192
><TR
193
><TD
194
WIDTH="33%"
195
ALIGN="left"
196
VALIGN="top"
197
>Target Setup</TD
198
><TD
199
WIDTH="34%"
200
ALIGN="center"
201
VALIGN="top"
202
><A
203
HREF="appendix-target-setup.html"
204
ACCESSKEY="U"
205
>Up</A
206
></TD
207
><TD
208
WIDTH="33%"
209
ALIGN="right"
210
VALIGN="top"
211
>AM33 STB Hardware Setup</TD
212
></TR
213
></TABLE
214
></DIV
215
></BODY
216
></HTML
217
>

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.