Initial commit of OpenSPARC T2 architecture model.
[OpenSPARC-T2-SAM] / sam-t2 / sam / docs / ui-cmds / cmd_expect.html
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>
<head>
<title>SPARC Architectural Model: User Commands</title>
</head>
<body bgcolor="#FFFFFF" LANG="en-US">
<div STYLE="margin-bottom: 0cm"></div>&nbsp;
<h2>
expect
</h2>
<h4>
NAME
</h4>
<ul>
expect - fail if not equal
</ul>
<h4>SYNOPSIS</h4>
<tt>
<ul>
expect i1 i2
</ul>
</tt>
If values i1 and i2 are not equal the simulator will print them and exit
with error exit(1). Useful when writing scripts that want to check some
state in the simulator. Works only with integer arguments.
<h4>DESCRIPTION</h4>
<ul>
</ul>
<h4>RETURN VALUES</h4>
<ul>
Invokes exit(1) if (i1 != i2).
</ul>
<hr>
</body>
</html>