3.1.2 Create New CUPL Design File

The next step in the design development process is to create a new CUPL design (.PLD) file using the built-in text editor in WinCUPL II.

In WinCUPL II, select the Design Flow tab and then click the NEW/EDIT button under Design File Manager to launch the text editor. The software will automatically create a new CUPL design file named “AND_2.pld”, based on the file name used for the project file.

Figure 3-3. Design File Manager

In the text editor, select FileSave to save the CUPL design file. This design file will be saved as AND_2.pld in the AND_2 project directory (for example, ~\WinCUPL\Tutorial\Tutorial_1).

Enter the following CUPL code for the AND_2 design into the text editor:

Note: The CUPL compiler and simulator require a carriage return to be present at the end of the CUPL design and simulation input files.