⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 c-vxsim.html

📁 vxbuild 是一个 CSP/eybuild 的WEB 示例运行于 VxWorks 之上的演示程序.
💻 HTML
📖 第 1 页 / 共 5 页
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"><html><head><title>       </title></head><body bgcolor="FFFFFF"><p class="navbar" align="right"><a href="index.html"><img border="0" alt="[Contents]" src="icons/contents.gif"></a><a href="wintugIX.html"><img border="0" alt="[Index]" src="icons/index.gif"></a><a href="c-config.html"><img border="0" alt="[Prev]" src="icons/prev.gif"></a><a href="c-shell.html"><img border="0" alt="[Next]" src="icons/next.gif"></a></p><font face="Helvetica, sans-serif" class="sans"><h1 class="H1Chapter" align="right"><i><a name="84367"></a>    6</i></h1><h1 align="right"><i>VxSim</i></h1></font><h4 class="Subtitle" align="right"><font face="Helvetica, sans-serif" size="-1" class="sans"><i>Integrated Simulator and Full Simulator (Optional)</i></font></h4><h4 class="Subtitle" align="right"><font face="Helvetica, sans-serif" size="-1" class="sans"><i></i></font></h4><br class="H2"><a name="84372"></a><br class="H2navbar"><font face="Helvetica, sans-serif" class="sans"><h3 class="H2"><i>6.1  &nbsp;&nbsp;Introduction</i></h3></font><dl class="margin"><dl class="margin"><dd><p class="Body"><a name="84373"></a>VxSim, the VxWorks simulator, is a port of VxWorks to the various host architectures. It provides a simulated target for use as a prototyping and test-bed environment. In most regards, its capabilities are identical to a true VxWorks system running on target hardware. Users link in applications and rebuild the VxWorks image exactly as they do in any VxWorks cross-development environment using a standard BSP.</p><dd><p class="Body"><a name="84374"></a>The difference between VxSim and the VxWorks target environment is that in VxSim the image is executed on the host machine itself as a host process. There is no emulation of instructions, because the code is for the host's own architecture. A communication mechanism is provided to allow VxSim to obtain an Internet IP address and communicate with the Tornado tools on the host (or with other nodes on the network) using the VxWorks networking tools. </p><dd><p class="Body"><a name="84375"></a>Because target hardware interaction is not possible, device driver development may not be suitable for simulation. However, the VxWorks scheduler is implemented in the host process, maintaining true tasking interaction with respect to priorities and preemption. This means that any application that is written in a portable style and with minimal hardware interaction should be portable between VxSim and VxWorks.</p><dd><p class="Body"><a name="84376"></a>The basic functionality of VxSim is included with the Tornado tools and is preconfigured to allow immediate access to the simulated target. The integrated simulator does not include networking and provides only single instance usage. The VxSim full simulator is an optional product providing for networking and multiple instance usage. </p><dd><p class="Body"><a name="84377"></a>The key differences between VxSim and other BSPs are summarized below. For a detailed discussion of subtle implementation differences which may affect application development, see <a href="c-vxsim.html#84622"><i class="title">6.4&nbsp;Architecture Considerations</i></a>. </p></dl></dl><dl class="margin"><dd><font face="Helvetica, sans-serif" size="-1" class="sans"><h5 class="HU"><i><a name="84381"></a>Integrated Simulator</i></h5></font><dl class="margin"><dd><p class="Body"><a name="84382"></a>VxSim has only a few differences from VxWorks:</p><ul class="BulletHead-run"><b><li type="disc"><a name="84383"></a><font face="Helvetica, sans-serif" size="-1" class="sans">Drivers.</font></b>&nbsp;&nbsp;</ul><dl class="margin"><dd><div class="Follow"><a name="85448"></a>Because device drivers require direct hardware interaction, most VxWorks device drivers are not available with VxSim.</div><br></dl><ul class="BulletHead-run"><b><li type="disc"><a name="85449"></a><font face="Helvetica, sans-serif" size="-1" class="sans">File System.</font></b>&nbsp;&nbsp;</ul><dl class="margin"><dd><div class="Follow"><a name="85450"></a>VxSim defaults to using a pass-through file system (passFs) to access files directly on the workstation. (See the online reference for <b class="library">passFsLib</b> under <font face="Helvetica, sans-serif" size="-1" class="sans">VxWorks Reference Manual&gt; Libraries</font>.) Most VxWorks targets default to using <b class="library">netDrv</b> to access files on the host.</div><br></dl><ul class="BulletHead-run"><b><li type="disc"><a name="84387"></a><font face="Helvetica, sans-serif" size="-1" class="sans">Networking.</font></b>&nbsp;&nbsp;</ul><dl class="margin"><dd><div class="Follow"><a name="84388"></a>Networking is not available in the base product.</div><br></dl></dl><dd><font face="Helvetica, sans-serif" size="-1" class="sans"><h5 class="HU"><i><a name="84389"></a>Full Simulator</i></h5></font><dl class="margin"><dd><p class="Body"><a name="84390"></a>The VxSim full simulator provides full network capability for your simulator. This optional product also allows you to run more than one instance of VxSim on your host. </p><dd><p class="Body"><a name="87991"></a>In order to simulate the network IP connectivity of a VxWorks target, the VxSim full simulator includes special drivers that operate using IP addresses. The ULIP network interface is available for Windows hosts. </p><dd><p class="Body"><a name="88001"></a>All interfaces provide an I/O-based interface for IP networking that allows VxSim processes to be addressed at the IP level. When multiple programs are run, they can send packets to each other directly. This is because the host hands the packets back and forth; that is, the host OS effectively becomes a router with multiple interfaces. </p></dl></dl><br class="H2"><a name="84413"></a><br class="H2navbar"><font face="Helvetica, sans-serif" class="sans"><h3 class="H2"><i>6.2  &nbsp;&nbsp;Integrated Simulator</i></h3></font><dl class="margin"><dl class="margin"><dd><p class="Body"><a name="84414"></a>All the functionality of the integrated simulator is available with the optional full simulator. All the information in this section applies to both versions of VxSim. For information specific to the full simulator product, see <a href="c-vxsim.html#84752"><i class="title">6.5&nbsp;Configuring the VxSim Full Simulator</i></a>.</p></dl></dl><font face="Helvetica, sans-serif" class="sans"><h4 class="H4"><i><a name="84418"></a>Installation and Configuration</i></h4></font><dl class="margin"><dl class="margin"><dd><p class="Body"><a name="87385"></a>Tornado 2.2 comes configured with basic VxSim on all hosts. Installing and starting Tornado as described in the <i class="title">Tornado Getting Started Guide</i> installs the integrated VxSim. </p></dl></dl><font face="Helvetica, sans-serif" class="sans"><h4 class="H4"><i><a name="84421"></a>Starting VxSim </i></h4></font><dl class="margin"><dl class="margin"><dd><p class="Body"><a name="84422"></a>VxSim automatically starts when you request a function that requires a connection to a target. For example, when you request download of a module, if you have not started a target server VxSim and a target server are automatically started.</p><dd><p class="Body"><a name="84423"></a>You can also start VxSim from the VxSim icon in Tornado environment or from the command line or the <font face="Helvetica, sans-serif" size="-1" class="sans">Start&gt;Run</font> dialog box using the command <b class="command">vxWorks</b>. Available options are:</p></dl><dl class="margin"><dd><div class="Item"><a name="88691"></a><b class="command">-p[rocessorNumber] </b></div><dl class="margin"><dd><div class="Follow"><a name="88720"></a>Set the processor number [0-15] (default is 0)</div><br></dl><dd><div class="Item"><a name="88694"></a><b class="command">-r[am bytes]</b> </div><dl class="margin"><dd><div class="Follow"><a name="88695"></a>Set the memory size in decimal (default is 2Mbytes)</div><br></dl></dl></dl><dl class="margin"><dd><p class="table"><table border="0" cellpadding="2" cellspacing="0"><tr valign="top"><td colspan=1 rowspan=1></td><td><hr></td></tr><tr valign="top"><td><img border="0" alt="*" src="icons/warning.gif">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td><td colspan=1 rowspan=1><div class="CalloutCell"><a name="88784"></a><b class="symbol_UC"><font face="Helvetica, sans-serif" size="-1" class="sans">WARNING:  </font></b>On real targets, you can use <b class="routine">bootChange(&nbsp;)</b> to boot another VxWorks core file on the next reboot. On simulators, changing the core file using <b class="routine">bootChange(&nbsp;)</b> has no effect; in other words, on the next reboot, the simulator will not start with the core file set in the boot line. </div></td></tr><tr valign="top"><td colspan=1 rowspan=1></td><td colspan=1 rowspan=1><hr></td></tr><tr valign="middle"><td colspan="20"></td></tr></table></p></dl><font face="Helvetica, sans-serif" class="sans"><h4 class="H4"><i><a name="85826"></a>Changing the Simulator Boot Line</i></h4></font><dl class="margin"><dl class="margin"><dd><p class="Body"><a name="90377"></a>Because the hardware environment is different from the simulator environment, <b class="routine">bootChange(&nbsp;)</b> does not behave the same way on simulators as it does on real targets.</dl></dl><p class="table"><dl class="margin"><dd><p class="EntityTitle"><a name="90434"></a><font face="Helvetica, sans-serif" size="-1" class="sans">Table 6-1:&nbsp;&nbsp;<b>Simulator Boot Parameters&nbsp;</b></font></p></dl><dl class="margin"><dl class="margin"><dd><table border="0" cellpadding="2" cellspacing="0"><tr><td colspan="20"><hr class="tablerule"></td></tr><tr valign="middle"><td colspan=1 rowspan=1><div align="left"><a name="90438"></a><b><font face="Helvetica, sans-serif" size="-1" class="sans">Parameters</font></b></div></td><td colspan=1 rowspan=1><div align="left"><a name="90440"></a><b><font face="Helvetica, sans-serif" size="-1" class="sans">Comments</font></b></div></td></tr><tr><td colspan="20"><hr class="tablerule2"></td></tr><tr valign="top"><td colspan=1 rowspan=1><div align="left"><a name="90442"></a>boot device </div></td><td colspan=1 rowspan=1><div align="left"><a name="90444"></a>Do not change.</div></td></tr><tr valign="top"><td colspan=1 rowspan=1><div align="left"><a name="90446"></a>processor number </div></td><td colspan=1 rowspan=1><div align="left"><a name="90448"></a>Do not change.</div></td></tr><tr valign="top"><td colspan=1 rowspan=1><div align="left"><a name="90450"></a>host name </div></td><td colspan=1 rowspan=1><div align="left"><a name="90452"></a>Do not change.</div></td></tr><tr valign="top"><td colspan=1 rowspan=1><div align="left"><a name="90454"></a>file name </div></td><td colspan=1 rowspan=1><div align="left"><a name="90456"></a>Ignored by the simulator.</div>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -