Each Powerview project is configured with the viewdraw.ini file that resides in the project directory. The DIR statements at the end of viewdraw.ini are paths to library directories that are used by the various Powerview applications. Figure 1 shows a sample of the DIR statements that are required to use the libraries.
Figure 1. Excerpt from viewdraw.ini
DIR [pw] |
. |
DIR [r] |
/usr/maxplus2/vwlogic/library/alt_max2 (alt_max2) |
DIR [r] |
/usr/maxplus2/vwlogic/library/max2sim (max2_sim) |
DIR [r] |
/usr/maxplus2/vwlogic/library/synlib (altera) |
DIR [r] |
/usr/maxplus2/vwlogic/library/alt_mf (alt_mf) |
DIR [r] |
/usr/maxplus2/vwlogic/library/alt_vtl (alt_vtl) |
DIR [rm] |
/<Powerview system directory>/lib/builtin (builtin) |
DIR [rm] |
/<Powerview system directory>/simmods/vl/dip/74ls (vl74ls) |
DIR [rm] |
/<Powerview system directory>/symsets/vl/dip/74ls (vl74ls) |
DIR [r] |
/<Powerview system directory>/lib/vdpath (vdpath) |
| When you add the libraries to the /usr/maxplus2/vwlogic/standard/viewdraw.ini file, they are automatically set when you create a new project. Powerview tools search these libraries sequentially, so it is important to add them in the order in which they are listed in Figure 1. |
Table 1 shows the libraries that must be specified in the DIR statements in the viewdraw.ini file.
Table 1. Powerview Application Libraries
| Library | Library Alias | Source | Topics |
|---|---|---|---|
| alt_max2 | alt_max2 |
Altera | Graphical elements for ViewDraw |
| max2sim | max2_sim |
Altera | Models for project simulation |
| synlib | altera |
Altera | VHDL synthesis library for the MAX+PLUS |
| alt_mf | alt_mf |
Altera | VHDL models of MAX+PLUSÂ II logic functions |
| alt_vtl | alt_vtl |
Altera | VITAL-compliant primitives |
| builtin | builtin |
Altera | Basic primitives such as INPUT pins, OUTPUT pins, AND gates, OR gates, etc. |
| 74ls | vl74ls |
Viewlogic | 74-series macrofunctions |
| vdpath | vdpath |
Viewlogic | Standard library of parameterized modules (LPM) functions |
| The Altera-provided libraries must be listed before the Viewlogic-provided libraries in the viewdraw.ini file to ensure that the correct versions of the megafunctions, macrofunctions, and primitives are used. |
Related Topics:
- Go to Altera-Provided Logic & Symbol Libraries for more information on Altera-supplied libraries. Refer to the Powerview documentation for more information on setting up the viewdraw.ini file.
Feedback
Did this information help you?
If no, please log onto mySupport to file a technical request or enhancement.
Altera does not warrant that this solution will work for the customer's intended purpose and disclaims all liability for use of or reliance on the solution.
