Return to Support Page
 homesearchagentssupportask xilinxmap

Answers Database


Foundation Simulator: PRINT command described incorrectly in documentation


Record #1027

Product Family:  Software

Product Line:  Aldec

Problem Title:
Foundation Simulator: PRINT command described incorrectly in
documentation



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

print filename

This syntax is incorrect.


Solution 1:

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



End of Record #1027

For the latest news, design tips, and patch information on the Xilinx design environment, check out the Xilinx Expert Journals!

© 1998 Xilinx, Inc. All rights reserved
Trademarks and Patents