Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
virtuoso schematic composer_5.0.pdf
Скачиваний:
97
Добавлен:
05.06.2015
Размер:
3.8 Mб
Скачать

Virtuoso Schematic Composer User Guide

D

Configuring and Using Kanji Notes

You can configure your system to accessAdd – Note – Kanji Note for instantiating kanji note symbols in your schematic design. The following topics are covered in this chapter.

Overview on page 664

Configuring Your System on page 664

Installing the Required Files on page 664

Uncompressing the Files on page 664

Modifying the Schematic Editor Menu File on page 665

Setting the Environment Variable on page 665

Modifying the Data Registry File on page 666

Using Kanji Notes on page 667

Formats, Files, and Views on page 667

Adding a New Note on page 667

Generating a Symbol from an Existing File on page 668

Generating a Symbol from a New File on page 669

Editing an Existing Note on page 670

Limitations on page 672

Known Problems on page 672

schHiCreateKanjiSymbol on page 674

October 2002

663

Product Version 5.0

Virtuoso Schematic Composer User Guide

Configuring and Using Kanji Notes

Overview

The Virtuoso® schematic composer provides a user interface that lets you create or modify

EUC packed format kanji files. Based on the information in a kanji file, the software generates a symbol cellview that contains kanji character graphics. You can then add documentation to your schematics by placing an instance of the symbol.

Configuring Your System

To enable the user interface, you need to perform the following tasks:

Install (obtain and uncompress) the required vector files

Modify the schematic editor menu file

Set an environment variable

Modify the data registry file (as required)

The following sections describe the configuration tasks you must complete before you can access Add – Note – Kanji Note.

Installing the Required Files

The software uses two vector files to convert EUC-formatted files into schematic composer compatible graphics. The vector files describe the shapes of approximately 5,000 kanji characters.

The two compressed kanji vector files are

kanjiVectors1.Z

kanjiVectors2.Z

The vector files are normally stored in the following location:

your_install_dir/tools/dfII/etc/tools/schematic/

Note: If you do not find the files in the specified location, you can request copies from either CKK or the Cadence Customer Response Center (CRC).

Uncompressing the Files

To uncompress the vector files, type the following commands at the UNIX prompt:

October 2002

664

Product Version 5.0

Virtuoso Schematic Composer User Guide

Configuring and Using Kanji Notes

uncompress kanjiVectors1.Z

uncompress kanjiVectors2.Z

The software creates the following uncompressed vector files:

./tools/dfII/etc/tools/schematic/kanjiVectors1

./tools/dfII/etc/tools/schematic/kanjiVectors2

Note: The software looks for these uncompressed kanji vector files in the three following locations in the specified order:

your_install_dir/tools/dfII/etc/tools/schematic

. (the current working directory)

/tmp

Modifying the Schematic Editor Menu File

You need to modify the schematic menu file so that the users can access theAdd – Note – Kanji Note command from the user interface.

To modify the file, do the following:

1. Use your text editor to open

your_install_dir/etc/tools/menus/schematic.menus

2. Search for the following text:

(NText "Note Text ..." "schHiCreateNoteLabel()" editOnly)

3. Open a line below it, and add the following:

(NKanji "Note Kanji ..." "schHiCreateKanjiSymbol()" editOnly)

4. Search for the following text:

(NoteText "Note Text ..." "schHiCreateNoteLabel()" editonly)

5. Open a line below it, and add the following:

(NoteKanji "Note Kanji ..." "schHiCreateKanjiSymbol()" editOnly)

6. Save the file and quit the editor.

Setting the Environment Variable

The value of the invokeKanjiEditor environment variable determines which kanji EUC text editor you access from the user interface.

October 2002

665

Product Version 5.0

Virtuoso Schematic Composer User Guide

Configuring and Using Kanji Notes

The default value is set to

kterm -km euc -e vi

If the default value does not work for your system, you need to change the default setting in your .cdsenv or .cdsinit file.

Testing the Default Setting

You can test whether the default value works for your system.

At a UNIX prompt, type the default value and append a filename as shown in the example:

unix> kterm -km euc -e vi /tmp/kanji_test

If a kanji editor opens, the default value works for your system.

Modifying the Data Registry File

Unless you register a special view type, as shown below, the software generates the following warning message when users in a TDM workarea save the original EUC file in the same cell as the new kanji symbol:

Warning: Unknown master tool file 'kanjitxt.euc' in view directory...

To register the special view type, do the following:

1.Change directories to the directory that contains your data registry file, which should be one of the following:

.../4.4/share/cdssetup/registry/data/composer.reg

./data.reg

~/data.reg

2. Add the following to the data registry file:

DataFormat kanjiEUCText { // Define kanjiEUCText, non-ascii source text

Pattern

= kanjitxt.euc;

Default_Editor

= NONE;

dfII_ViewType

=

kanjiEUCText;

Co_Managed

=

kanjitxt.euc master.tag;

}

 

 

The online help file appears.

3.Click one of the help topics.

The help file displays information about the topic you selected.

October 2002

666

Product Version 5.0

Соседние файлы в предмете [НЕСОРТИРОВАННОЕ]