Initial commit of OpenSPARC T2 architecture model.
[OpenSPARC-T2-SAM] / sam-t2 / sam / docs / ui-cmds / cmd_expect.html
CommitLineData
920dae64
AT
1<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
2<html>
3<head>
4<title>SPARC Architectural Model: User Commands</title>
5</head>
6<body bgcolor="#FFFFFF" LANG="en-US">
7<div STYLE="margin-bottom: 0cm"></div>&nbsp;
8
9<h2>
10expect
11</h2>
12
13<h4>
14NAME
15</h4>
16<ul>
17expect - fail if not equal
18</ul>
19
20<h4>SYNOPSIS</h4>
21<tt>
22<ul>
23expect i1 i2
24</ul>
25</tt>
26If values i1 and i2 are not equal the simulator will print them and exit
27with error exit(1). Useful when writing scripts that want to check some
28state in the simulator. Works only with integer arguments.
29<h4>DESCRIPTION</h4>
30<ul>
31
32</ul>
33
34<h4>RETURN VALUES</h4>
35<ul>
36Invokes exit(1) if (i1 != i2).
37</ul>
38
39<hr>
40</body>
41</html>