AR# 1027

Foundation Simulator: PRINT command described incorrectly in documentation

描述

The documentation for the Foundation Logic Simulator
describes the syntax of the PRINT command as:

print filename

This syntax is incorrect.

解决方案

The correct syntax is:

print > filename


Here is an example of using the PRINT command in a macro file
for a design containing a counter:

| Restart the simulation
restart

| Set up a bus and signals to WATCH
vector countout countout[7:0]
watch clk countout0 countout1

| Set up the inputs to let the counter run
h ce
l clr
clock clk 0 1

| Every time the clk changes value, print the WATCH list
| into a file
break clk ? do (print > result.dat)

cycle 20
AR# 1027
日期 03/03/1999
状态 Archive
Type 综合文章