📄 x-vxsim1.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"><html><head><link rel="STYLESHEET" type="text/css" href="wrs.css"><title> VxSim </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="GuideIX.html"><img border="0" alt="[Index]" src="icons/index.gif"></a><a href="x-vxsim.html"><img border="0" alt="[Top]" src="icons/top.gif"></a><a href="x-vxsim.html"><img border="0" alt="[Prev]" src="icons/prev.gif"></a><a href="x-vxsim2.html"><img border="0" alt="[Next]" src="icons/next.gif"></a></p><font face="Helvetica, sans-serif" class="sans"><h3 class="H2"><i><a name="84372">H.1 Introduction</a></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 optional component of VxSim provides the simulator with networking capability.</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="x-vxsim4.html#84622"><i class="title">H.4 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">Built-In Simulator</a></i></h5></font><dl class="margin"><dd><p class="Body"><a name="84382"> </a>VxSim has only a few differences from VxWorks:</p></dl><dl class="margin"><dd><div class="Item"><a name="84383"> </a>Drivers</div><dl class="margin"><dd><div class="Indent"><a name="85448"> </a>Because device drivers require direct hardware interaction, most VxWorks device drivers are not available with VxSim.</div><br></dl><dd><div class="Item"><a name="85449"> </a>File System</div><dl class="margin"><dd><div class="Indent"><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 <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">VxWorks Reference Manual> Libraries</font></b>.) Most VxWorks targets default to using <b class="library">netDrv</b> to access files on the host.</div><br></dl><dd><div class="Item"><a name="84387"> </a>Networking</div><dl class="margin"><dd><div class="Indent"><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">Optional Product</a></i></h5></font><dl class="margin"><dd><p class="Body"><a name="84390"> </a>The optional VxSim component provides full network capability for your simulator. The optional product also allows you to run more than one instance of VxSim on your host. </p><dd><p class="Body"><a name="84391"> </a>In order to simulate the network IP connectivity of a VxWorks target, VxSim includes special drivers which operate using IP addresses. The following network interfaces are available, depending on your host type:<p class="table"><table border="0" cellpadding="0" cellspacing="0"><tr valign="top"><td colspan=1 rowspan=1><p class="BodyLeft"><a name="84394"> </a>ULIP</p></td><td colspan=1 rowspan=1><p class="BodyLeft"><a name="84396"> </a>User-Level Internet Protocol</p></td><td colspan=1 rowspan=1><p class="BodyLeft"><a name="84398"> </a> Solaris 2, Windows NT</p></td></tr><tr valign="top"><td colspan=1 rowspan=1><p class="BodyLeft"><a name="84400"> </a>PPP</p></td><td colspan=1 rowspan=1><p class="BodyLeft"><a name="84402"> </a>Point-to-Point Protocol</p></td><td colspan=1 rowspan=1><p class="BodyLeft"><a name="84404"> </a>Solaris 2 </p></td></tr><tr valign="top"><td colspan=1 rowspan=1><p class="BodyLeft"><a name="84406"> </a>SLIP</p></td><td colspan=1 rowspan=1><p class="BodyLeft"><a name="84408"> </a>Serial Line Internet Protocol</p></td><td colspan=1 rowspan=1><p class="BodyLeft"><a name="84410"> </a>HP-UX 10</p></td></tr><tr valign="middle"><td colspan="20"></td></tr></table></p></p><dd><p class="Body"><a name="84411"> </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><dd><p class="Body"><a name="84412"> </a>For more information on PPP and SLIP, see the <i class="title">VxWorks Networking Guide</i>. For information on the ULIP-specific library <b class="library">if_ulip</b>, see the <i class="title">VxWorks Reference Manual</i>.</p></dl></dl><a name="foot"><hr></a><p class="navbar" align="right"><a href="index.html"><img border="0" alt="[Contents]" src="icons/contents.gif"></a><a href="GuideIX.html"><img border="0" alt="[Index]" src="icons/index.gif"></a><a href="x-vxsim.html"><img border="0" alt="[Top]" src="icons/top.gif"></a><a href="x-vxsim.html"><img border="0" alt="[Prev]" src="icons/prev.gif"></a><a href="x-vxsim2.html"><img border="0" alt="[Next]" src="icons/next.gif"></a></p></body></html><!---by WRS Documentation (), Wind River Systems, Inc. conversion tool: Quadralay WebWorks Publisher 4.0.11 template: CSS Template, Jan 1998 - Jefro --->
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -