JP2900893B2 - Model conversion device - Google Patents
Model conversion deviceInfo
- Publication number
- JP2900893B2 JP2900893B2 JP8244906A JP24490696A JP2900893B2 JP 2900893 B2 JP2900893 B2 JP 2900893B2 JP 8244906 A JP8244906 A JP 8244906A JP 24490696 A JP24490696 A JP 24490696A JP 2900893 B2 JP2900893 B2 JP 2900893B2
- Authority
- JP
- Japan
- Prior art keywords
- word
- model
- logic circuit
- characters
- unit
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Lifetime
Links
Landscapes
- Devices For Executing Special Programs (AREA)
Description
【発明の属する技術分野】本発明は、モデル変換装置に
関し、特に一つの機能記述言語で記述された論理回路モ
デルを他の機能記述言語で記述されたモデルに変換する
モデル変換装置に関する。The present invention relates to a model conversion device, and more particularly to a model conversion device for converting a logic circuit model described in one function description language into a model described in another function description language.
【0001】[0001]
【従来の技術】従来この種のモデル変換装置では、論理
回路モデルの記述を統一させるために、一つの機能記述
言語で記述されたモデルをVHDL(VHSIC Ha
rdware Description Langua
ge)等の他の機能記述言語で記述された論理回路モデ
ルに変換することが行われる。このとき、変換される論
理回路モデルを記述している機能記述言語によっては、
論理設計者にとって該論理回路モデルをよりわかりやす
くするために非常に長い単語が用いられているものがあ
る。しかしながら、従来のモデル変換装置では使用でき
る単語の長さに制限があり、このような長い単語を含む
論理回路モデルのモデル変換をすることができないとい
う問題があった。2. Description of the Related Art Conventionally, in this type of model conversion apparatus, a model described in one functional description language is converted to a VHDL (VHSIC Ha) in order to unify the description of a logic circuit model.
rdware Description Langua
ge) is converted into a logic circuit model described in another functional description language. At this time, depending on the function description language describing the logic circuit model to be converted,
In some cases, very long words are used to make the logic circuit model more understandable to a logic designer. However, the conventional model conversion device has a limitation on the length of words that can be used, and there is a problem that a logic circuit model including such a long word cannot be model-converted.
【0002】このため、変換されるモデル内に長い単語
が含まれている場合には、論理設計者の手により置き換
えが行われていた。すなわち、論理設計者がモデル全体
にわたり長い単語を探索し、モデル変換装置で変換可能
な長さの単語に置き換えねばならなかった。For this reason, when a long word is included in a model to be converted, replacement is performed by a logic designer. That is, the logic designer has to search for a long word throughout the model and replace it with a word of a length that can be converted by the model conversion device.
【0003】この種のモデル変換装置としては、例え
ば、特開平1−169578号公報に、A社のCAD
(Computer Aided Design)装置
装置により設計したネットリストをB社のネットリスト
に変換させる構成が開示されている。しかしながら、こ
の公報記載のモデル変換装置では、論理回路モデルに含
まれる長い単語については全く考慮されていないため、
長い単語が含まれている場合には依然として論理設計者
の手により変換が行わなければならない。A model conversion apparatus of this type is disclosed in, for example, Japanese Patent Application Laid-Open No. 1-169578.
(Computer Aided Design) Apparatus A configuration for converting a netlist designed by an apparatus into a netlist of Company B is disclosed. However, in the model conversion device described in this publication, long words included in a logic circuit model are not considered at all.
When long words are included, conversion must still be performed by the logic designer.
【0004】[0004]
【発明が解決しようとする課題】上述の従来技術では、
変換される論理回路モデル内に長い単語が含まれている
場合には、論理設計者の手によってモデル変換装置でモ
デル変換可能な長さの単語に置き換えねばならないとい
う問題があった。さらに、人手により探索および置換が
行われるために、単語の置き換え洩れが発生しやすいと
いう問題もあった。In the above-mentioned prior art,
When a long word is included in the logic circuit model to be converted, there is a problem that the logic designer must replace the word with a word whose length can be converted by the model conversion device. Furthermore, since search and replacement are performed manually, there is a problem that word replacement is likely to occur.
【0005】また、置き換えた単語を元の長い単語に戻
すことができなかったため、モデル変換後には論理回路
モデルの内容が非常にわかりにくくなってしまうという
問題があった。Further, since the replaced word cannot be returned to the original long word, there is a problem that the contents of the logic circuit model become very difficult to understand after model conversion.
【0006】本発明の目的は、論理設計者が論理回路モ
デルに含まれる長い単語を探索して短い単語に変換する
必要の無いモデル変換装置を提供することにある。It is an object of the present invention to provide a model conversion apparatus which does not require a logic designer to search for a long word included in a logic circuit model and convert it into a short word.
【0007】また、本発明の他の目的は、モデル変換後
に元の長い単語に置き戻すことができ、内容がわかりや
すい論理回路モデルに変換することのできるモデル変換
装置を提供することにある。Another object of the present invention is to provide a model conversion device which can be replaced with a long word after the model conversion and can be converted into a logic circuit model whose contents can be easily understood.
【0008】[0008]
【課題を解決するための手段】上記課題を解決するため
に本発明のモデル変換装置は、第1の機能記述言語で記
載された第1の論理回路モデルを第2の機能記述言語で
記載された第2の論理回路モデルに変換する場合に変換
対象の前記第1の論理回路モデルに含まれる単語の文字
数が所定数以下であるときのみ該単語を変換可能なモデ
ル変換装置において、前記第1の論理回路モデルに含ま
れる単語のうち文字数が前記所定数より多い第1の単語
を探索する探索手段と、この探索手段により探索された
前記第1の単語に対して、文字数が前記所定数以下の第
2の単語を生成する単語生成手段と、前記第1のモデル
において、前記探索手段により探索された前記第1の単
語にかえて前記単語生成手段により生成された前記2の
単語を配置する置換手段とを含む。In order to solve the above-mentioned problems, a model conversion apparatus according to the present invention is provided in which a first logic circuit model described in a first function description language is described in a second function description language. A model conversion device capable of converting a word included in the first logic circuit model to be converted only when the number of characters of the word is equal to or less than a predetermined number when converting the word into the second logic circuit model; Searching means for searching for a first word in which the number of characters is greater than the predetermined number among words included in the logic circuit model, and for the first word searched by the searching means, the number of characters is equal to or less than the predetermined number. Word generating means for generating a second word, and in the first model, the second word generated by the word generating means is arranged in place of the first word searched by the searching means. Place And means.
【0009】また、本発明の他のモデル変換装置は、前
記探索手段が、この単語抽出手段により抽出された単語
からモデルの機能を表す単語でないものを抽出する抽出
手段と、この抽出手段により抽出された単語の文字数を
調べて所定数よりも文字数の多い単語を抽出する文字数
検査手段とを含む。In another model conversion apparatus according to the present invention, the searching means extracts from the words extracted by the word extracting means those which are not words representing the function of the model, and the extracting means extracts the words. Character number checking means for checking the number of characters of the selected word and extracting a word having a number of characters larger than a predetermined number.
【0010】また、本発明の他のモデル変換装置は、前
記探索手段により探索された前記第1の単語と、前記単
語生成手段により生成された前記第2の単語とを対にし
て格納する単語格納手段をさらに含む。[0010] Further, another model conversion apparatus of the present invention comprises a word storing a pair of the first word searched by the search means and the second word generated by the word generation means. It further includes storage means.
【0011】また、本発明の他のモデル変換装置は、前
記生成手段は単語格納手段を含み、前記単語探索手段に
より探索された前記第1の単語を該単語格納手段に格納
し、該単語格納手段の前記第1の単語が格納されたアド
レスの情報を用いて前記第2の単語を生成することを特
徴とする。In another model conversion apparatus of the present invention, the generation means includes a word storage means, wherein the first word searched by the word search means is stored in the word storage means, and the word storage means The second word is generated using information on an address at which the first word of the means is stored.
【0012】また、本発明の他のモデル変換装置は、前
記生成手段は前記単語格納手段の前記第1の単語が格納
された先頭アドレスの下位の所定ビットを用いて前記第
2の単語を生成することを特徴とする。In another model conversion apparatus according to the present invention, the generation means generates the second word using predetermined lower bits of a head address of the word storage means in which the first word is stored. It is characterized by doing.
【0013】また、本発明の他のモデル変換装置は、前
記置換手段により置換された前記第1の論理回路モデル
のモデル変換を行う変換手段と、この変換手段から得ら
れる変換結果に含まれる前記第2の単語を、該第2の単
語に対応する前記第1の単語に置き戻す置き戻し手段と
をさらに含む。Further, another model conversion apparatus of the present invention includes a conversion unit for performing model conversion of the first logic circuit model replaced by the replacement unit, and the conversion unit included in the conversion result obtained from the conversion unit. A repositioning means for reverting a second word to the first word corresponding to the second word.
【0014】[0014]
【発明の実施の形態】次に本発明について図面を参照し
て詳細に説明する。DESCRIPTION OF THE PREFERRED EMBODIMENTS Next, the present invention will be described in detail with reference to the drawings.
【0015】図1を参照すると、本発明のモデル変換装
置が対象とする論理回路100の一例が示される。論理
回路100は信号AおよびBを入力して出力ENABLE_SIG
NALを出力する回路である。Referring to FIG. 1, there is shown an example of a logic circuit 100 to which the model conversion device of the present invention is applied. Logic circuit 100 receives signals A and B and outputs ENABLE_SIG
This is a circuit that outputs NAL.
【0016】図2を参照すると、本発明のモデル変換装
置によりモデル変換が施される論理回路100の論理回
路モデル200は、第1の機能記述言語Uによって記述
されている。論理回路モデル200は予約語201と、
文字数が所定数よりも多い単語202と、コメント指定
語203とを含む。Referring to FIG. 2, a logic circuit model 200 of a logic circuit 100 to which model conversion is performed by the model conversion apparatus of the present invention is described in a first function description language U. The logic circuit model 200 includes a reserved word 201,
A word 202 having a number of characters larger than a predetermined number and a comment designation word 203 are included.
【0017】予約語201は、論理回路モデルの機能を
定める単語である。本実施例では、置き換えが必要な長
さの単語を文字数が8文字より多いもの、すなわち、所
定数が8であるとする。よって、単語202は文字数が
8文字より多い単語である。コメント指定語203はこ
れ以降の文字が単なるコメントであって論理回路モデル
200の機能および変数にはなんら影響を与えないこと
を示し、論理回路モデル200の内容をより明確にする
ために記述されるものである。The reserved word 201 is a word that determines the function of the logic circuit model. In the present embodiment, it is assumed that words having a length that requires replacement have more than eight characters, that is, the predetermined number is eight. Therefore, the word 202 is a word having more than eight characters. The comment designation word 203 indicates that the subsequent characters are mere comments and have no effect on the functions and variables of the logic circuit model 200, and are described to further clarify the contents of the logic circuit model 200. Things.
【0018】図3を参照すると、本発明の第一の実施例
のモデル変換装置は、第1の機能記述言語Uで記述され
た変換前のモデルに含まれる単語のうち文字数が8文字
より多い単語202を探索する単語探索部20と、この
単語探索部20により探索された単語202に対して、
文字数が8文字以下の単語204を生成して割り当てる
単語生成部30と、論理回路モデル200において単語
探索部20により探索された単語202にかえて単語生
成部30により生成された単語204を配置する置換部
40とを含む。Referring to FIG. 3, the model conversion apparatus according to the first embodiment of the present invention has a number of characters of more than eight characters in words included in a model before conversion described in first function description language U. For a word search unit 20 that searches for a word 202, and for a word 202 searched by the word search unit 20,
A word generation unit 30 that generates and assigns a word 204 whose number of characters is 8 characters or less and a word 204 generated by the word generation unit 30 in place of the word 202 searched by the word search unit 20 in the logic circuit model 200 are arranged. And a replacement unit 40.
【0019】また、モデル変換装置100は、モデル格
納部10および50を含む。モデル格納部10は、モデ
ル変換の対象となる論理回路モデル200を格納する。
モデル格納部50には置換部50により単語202が単
語204により置換された論理回路モデル300が格納
される。The model conversion device 100 includes model storage units 10 and 50. The model storage unit 10 stores a logic circuit model 200 to be converted.
A logic circuit model 300 in which the word 202 is replaced by the word 204 by the replacement unit 50 is stored in the model storage unit 50.
【0020】図4を参照すると、モデル変換装置は、さ
らに、置換部40により文字数が8文字より多い単語2
02が8文字以下の単語204に置換された論理回路モ
デル200のモデル変換を行うモデル変換部60と、こ
のモデル変換部60から得られる変換結果に含まれる単
語204を、該単語204に対応する単語202に置き
戻す単語返却部80とを含む。Referring to FIG. 4, the model conversion apparatus further includes a replacing unit 40 for converting a word 2 having more than eight characters into two words.
A model conversion unit 60 that performs model conversion of the logic circuit model 200 in which 02 is replaced with a word 204 having eight characters or less, and a word 204 included in the conversion result obtained from the model conversion unit 60 corresponds to the word 204 And a word return unit 80 to be replaced with the word 202.
【0021】また、モデル変換装置は、モデル格納部7
0および90を含む。モデル格納部70にはモデル変換
後の論理回路モデルが格納される。モデル格納部90に
はモデル変換装置の出力、すなわち、求める論理回路モ
デルが格納される。Further, the model conversion device includes a model storage unit 7.
0 and 90 are included. The model storage unit 70 stores the logic circuit model after the model conversion. The model storage unit 90 stores the output of the model conversion device, that is, the desired logic circuit model.
【0022】図5を参照すると、単語探索部20は、単
語抽出部21と非予約語抽出部22と、単語格納部23
と、文字数検査部24とを含む。Referring to FIG. 5, word search unit 20 includes word extraction unit 21, non-reserved word extraction unit 22, and word storage unit 23.
And a character number inspection unit 24.
【0023】単語抽出部21はモデル格納部10に格納
されたモデル変換の対象となるモデル200を探索し
て、予め許可された文字で記述された単語を抽出する。
予め許可された文字とは論理回路モデル200の機能や
変数に含まれる文字である。また、許可されない文字と
しては、コメント指定語203「--」や演算記号「+」
等がある。非予約語抽出部22は単語抽出部21により
抽出された単語から、予約語201を除いた単語を抽出
する。予約語201を除いた単語としては、入出力端子
の端子名等がある。単語格納部23は非予約語抽出部2
2により抽出された予約語201以外の単語が格納され
る。文字数検査部24は単語格納部23に格納されてい
る予約語201以外の単語の全てに対して該単語の長
さ、すなわち、文字数を検査して文字数が8文字よりも
多い単語202を抽出する。The word extracting unit 21 searches for a model 200 to be subjected to model conversion stored in the model storage unit 10, and extracts a word described in a previously permitted character.
The characters permitted in advance are characters included in the functions and variables of the logic circuit model 200. The characters that are not permitted include the comment designation word 203 “-” and the operation symbol “+”.
Etc. The non-reserved word extracting unit 22 extracts a word obtained by removing the reserved word 201 from the words extracted by the word extracting unit 21. The words excluding the reserved word 201 include the names of input / output terminals. The word storage unit 23 is a non-reserved word extraction unit 2
Words other than the reserved word 201 extracted in Step 2 are stored. The number-of-characters checking unit 24 checks the length of each word other than the reserved word 201 stored in the word storage unit 23, that is, the number of characters, and extracts the word 202 having more than eight characters. .
【0024】図6を参照すると、単語生成部30は、ユ
ニーク単語供与部31と、ユニーク単語格納部32とを
含む。Referring to FIG. 6, the word generator 30 includes a unique word provider 31 and a unique word storage 32.
【0025】ユニーク単語供与部31は、単語格納部2
3に格納された予約語201以外の単語および文字数が
8文字より多い単語202から、ユニークかつ8文字以
下の単語204を作成して文字数検査部24から出力さ
れた単語202と対にして出力する。ユニークな単語と
は単語202の種類毎に固有な単語のことである。ユニ
ーク単語格納部32はユニーク単語供与部31から出力
される単語204と8文字より多い単語202とを対に
し、これをユニーク単語テーブル210として格納す
る。The unique word providing unit 31 includes the word storage unit 2
3 and a word 204 having a unique number of eight or less characters is created from the words other than the reserved word 201 and the word 202 having more than eight characters, and output in pairs with the word 202 output from the character number checking unit 24. . The unique word is a word unique to each type of the word 202. The unique word storage unit 32 pairs the word 204 output from the unique word providing unit 31 with the word 202 having more than eight characters, and stores this as a unique word table 210.
【0026】図3を参照すると、置換部40はモデル格
納部10に格納されたモデル変換対象のモデル200と
ユニーク単語格納部32に格納されたユニーク単語テー
ブル210とから、論理回路モデル200に含まれる文
字数が8文字より多い単語202をこれと対になった単
語204に置き換える。モデル格納部50は置換部40
からの出力結果、すなわち、文字数が8文字より多い単
語202が単語204に置換された論理回路モデル30
0を格納する。Referring to FIG. 3, the replacing unit 40 includes the model 200 to be model-converted stored in the model storage unit 10 and the unique word table 210 stored in the unique word storage unit 32 in the logic circuit model 200. The word 202 having more than eight characters is replaced with a paired word 204. The model storage unit 50 is a replacement unit 40
, That is, the logic circuit model 30 in which the word 202 having more than eight characters is replaced with the word 204
0 is stored.
【0027】図4を参照すると、モデル変換部60はモ
デル格納部50に格納された置換語のモデルをVHDL
により記述された論理回路モデルにモデル変換して出力
する。モデル格納部70はモデル変換部60から出力さ
れるVHDLにより記述された論理回路モデルを格納す
る。単語返却部80はモデル格納部70に格納されたV
HDLにより記述された論理回路モデルに含まれる単語
204を、ユニーク単語テーブル210を参照して、対
応する単語202に置き戻す。モデル格納部90は求め
るモデル変換後の論理回路モデル、すなわち、単語返却
手段80から得られる文字数が8文字より多いの単語2
02が置き戻されたVHDLモデルを格納する。Referring to FIG. 4, model conversion unit 60 converts the model of the replacement word stored in model storage unit 50 into VHDL
The model is converted to a logic circuit model described by (1) and output. The model storage unit 70 stores a logic circuit model described by VHDL output from the model conversion unit 60. The word return unit 80 stores the V stored in the model storage unit 70.
The word 204 included in the logic circuit model described by the HDL is replaced with the corresponding word 202 with reference to the unique word table 210. The model storage unit 90 stores the logic circuit model after the model conversion, that is, the word 2 whose number of characters obtained from the word return means 80 is more than 8 characters.
02 stores the replaced VHDL model.
【0028】次に、本実施例の動作を説明する。Next, the operation of this embodiment will be described.
【0029】図3および図5を参照すると、単語抽出部
21はモデル格納部10に格納された論理回路モデル2
00を探索して予め許可された文字で記述された単語を
抽出する。Referring to FIG. 3 and FIG. 5, the word extracting unit 21 stores the logic circuit model 2 stored in the model storing unit 10.
00 is searched to extract a word described in a previously permitted character.
【0030】図7を参照すると、単語抽出部21による
抽出結果では、コメントを示す「-」や「=」および
「+」は予め許可されていない文字であるため抽出され
ない。Referring to FIG. 7, in the extraction result by the word extraction unit 21, "-", "=", and "+" indicating a comment are not extracted because they are characters that are not permitted in advance.
【0031】図5において、非予約語抽出部22は単語
抽出部21の抽出結果から予約語を除いた単語を抽出し
て単語格納部23に格納する。In FIG. 5, the non-reserved word extracting unit 22 extracts a word obtained by removing the reserved word from the extraction result of the word extracting unit 21 and stores the extracted word in the word storing unit 23.
【0032】図8を参照すると、非予約語抽出部22に
よる抽出結果では、「IN」や「OUT」が予約語201で
あるため抽出されない。Referring to FIG. 8, in the extraction result by the non-reserved word extracting unit 22, "IN" and "OUT" are not extracted because they are reserved words 201.
【0033】図5および図6を参照すると、文字数検査
部24は単語格納部23に格納された予約語201以外
の単語から文字数が8文字より多い単語を抽出してユニ
ーク単語供与部31に出力する。Referring to FIGS. 5 and 6, the character number checking unit 24 extracts a word having more than eight characters from words other than the reserved word 201 stored in the word storage unit 23 and outputs the extracted word to the unique word providing unit 31. I do.
【0034】ユニーク単語供与部31は単語格納部23
に格納された予約語201以外の単語および文字数が8
文字より多い単語202からユニークかつ8文字以下の
単語204を作成して文字数検査部24から出力された
単語202と対にしてユニーク単語格納部32に出力す
る。ユニーク単語供与部31が単語格納部23に格納さ
れた予約後201以外の単語を参照しているのは、生成
した単語204が該単語格納部23に含まれる単語と一
致してしまうのを防ぐためである。ユニーク単語格納部
32はユニーク単語供与部31から出力される単語20
4と8文字より多い単語202とを対にし、これをユニ
ーク単語テーブル210として格納する。The unique word providing section 31 is provided in the word storage section 23
The number of words and characters other than the reserved word 201 stored in
A unique word 204 having eight or less characters is created from the word 202 having more than characters, and is output to the unique word storage 32 in pairs with the word 202 output from the character number inspection unit 24. The reason that the unique word providing unit 31 refers to a word other than the reserved word 201 stored in the word storage unit 23 is to prevent the generated word 204 from being matched with the word included in the word storage unit 23. That's why. The unique word storage unit 32 stores the word 20 output from the unique word provider 31.
A pair of 4 and a word 202 having more than 8 characters is stored as a unique word table 210.
【0035】図9を参照すると、ユニーク単語テーブル
210には文字数が8文字より多い単語202「input_
port1」、「input_port2」および「ENABLE_SIGNAL」に
対して、単語204「aaaa0001」、「aaaa0002」および
「aaaa0003」がそれぞれ対応して格納される。単語20
4の生成方法は、初期値「aaaa0001」を与えておき、1
番最初に出現した単語202にこの「aaaa0001」を割り
当てる。次の単語202からは出現順に該「aaaa0001」
の値を1づつインクリメントさせた値を生成する。「aa
aa9999」まで生成させた後には、「aaab0001」割り当
て、さらに単語202が続くならばこの値を1づつイン
クリメントさせていく。Referring to FIG. 9, the unique word table 210 stores a word 202 "input_input_number" having more than eight characters.
The words 204 “aaaa0001”, “aaaa0002”, and “aaaa0003” are stored corresponding to “port1”, “input_port2”, and “ENABLE_SIGNAL”, respectively. Word 20
The method of generating 4 is to assign an initial value “aaaa0001”
This “aaaa0001” is assigned to the first word 202 that appears. From the next word 202, "aaaa0001"
Is incremented by one to generate a value. "Aa
After generating “aa9999”, “aaab0001” is assigned, and if the word 202 continues, this value is incremented by one.
【0036】図3を参照すると、置換部40はモデル格
納部10に格納されたモデル変換対象の論理回路モデル
200とユニーク単語格納部32に格納されたユニーク
単語テーブル210とから、論理回路モデル200に含
まれる文字数が8文字より多い単語202をこれと対に
なった単語204に置き換え、モデル格納部50に格納
する。Referring to FIG. 3, the replacement unit 40 obtains the logic circuit model 200 from the logic circuit model 200 to be model-converted stored in the model storage unit 10 and the unique word table 210 stored in the unique word storage unit 32. Is replaced with a word 204 paired with the word 202 having more than eight characters, and stored in the model storage unit 50.
【0037】図10を参照すると、論理回路モデル30
0には、論理回路モデル200の文字数が8文字より多
い単語が単語格納部23に格納された単語204により
置換され、文字数が8文字より多い単語は存在しない。Referring to FIG. 10, the logic circuit model 30
In the case of 0, a word having more than eight characters in the logic circuit model 200 is replaced by the word 204 stored in the word storage unit 23, and there is no word having more than eight characters.
【0038】図4を参照すると、モデル変換部60はモ
デル格納部50に格納された置換後の論理回路モデルを
VHDLにより記述された論理回路モデルに変換してモ
デル格納部70に格納する。Referring to FIG. 4, model conversion unit 60 converts the replaced logic circuit model stored in model storage unit 50 into a logic circuit model described by VHDL and stores it in model storage unit 70.
【0039】図11を参照すると、VHDLにより記述
された論理回路モデルは単語204を含む。Referring to FIG. 11, the logic circuit model described by VHDL includes a word 204.
【0040】図4において、単語返却部80はモデル格
納部70に格納されたVHDLにより記述された論理回
路モデルに含まれる単語204を、ユニーク単語格納部
32に格納されたユニーク単語テーブル210を用い
て、対応する文字数が8文字より多い単語202に置き
戻しモデル格納部90に格納する。In FIG. 4, the word return unit 80 uses the unique word table 210 stored in the unique word storage unit 32 to store the words 204 included in the logic circuit model described by VHDL stored in the model storage unit 70. Then, the corresponding characters are replaced with words 202 having more than eight characters and stored in the model storage unit 90.
【0041】図12を参照すると、モデル格納部90に
格納された論理回路モデルには単語204は含まれてい
ない。Referring to FIG. 12, the logic circuit model stored in model storage unit 90 does not include word 204.
【0042】本実施例において、モデル格納部10、5
0、60、90、単語格納部23およびユニーク単語格
納部32を別々に設ける構成としたが、これらは設計に
応じた構成を採用することができ、例えば、全てを1つ
のモデル格納部10により兼ねさせてもよい。In this embodiment, the model storage units 10, 5
Although 0, 60, and 90, the word storage unit 23, and the unique word storage unit 32 are provided separately, a configuration according to the design can be adopted. For example, all of them are provided by one model storage unit 10. They may be combined.
【0043】このように、本実施例では、モデル変換対
象の論理回路モデル200における文字数が8文字より
多い単語202を求める単語探索部20と、単語探索部
20により求められた単語202に対応するユニークな
単語204を生成する単語生成部と、論理回路モデル2
00の単語202に替えて単語204を置換する置換部
40とを設けたため、論理回路モデル200に含まれる
8文字より多い単語202を自動的に単語204に置き
換えることができる。As described above, in the present embodiment, the word search unit 20 finds the word 202 having more than eight characters in the logic circuit model 200 to be model-converted, and the word 202 found by the word search unit 20. A word generator for generating a unique word 204, and a logic circuit model 2
Since the replacement unit 40 for replacing the word 204 in place of the word 202 of 00 is provided, the word 202 having more than eight characters included in the logic circuit model 200 can be automatically replaced with the word 204.
【0044】また、単語204に置き換えられた論理回
路モデル200に対してモデル変換を行って論理回路モ
デル300を求めた後、該論理回路モデル300に含ま
れる単語204をこれに対応する元の8文字より多い単
語202に置き戻す単語返却部80を設けたため、人手
によらずモデル変換後の論理回路モデルをより分かりや
すいものにすることができる。After the logic circuit model 200 replaced with the word 204 is subjected to model conversion to obtain a logic circuit model 300, the word 204 included in the logic circuit model 300 is replaced with the original 8 corresponding to the word. Since the word return unit 80 that replaces the words 202 with more words than characters is provided, the logic circuit model after the model conversion can be made easier to understand regardless of manual operation.
【0045】次に、本発明の第二の実施例について、図
面を参照して詳細に説明する。この第二の実施例の特徴
は文字数が8文字より多い単語202に対する文字数が
8文字以下の単語の生成の仕方にある。他の構成は第一
実施例のものと同様である。Next, a second embodiment of the present invention will be described in detail with reference to the drawings. A feature of the second embodiment lies in a method of generating a word having a character number of 8 or less for a word 202 having a character number of more than 8 characters. Other configurations are the same as those of the first embodiment.
【0046】図13を参照すると、ユニーク単語テーブ
ル220に文字数が8文字より多い単語202が順に格
納される。ユニーク単語供与部31は文字数検査部24
から与えられる文字数が8文字より多い単語202を、
同一の単語であるなしにかかわらずユニーク単語テーブ
ル220に順に格納していく。このとき、単語202
「input_port1」、「input_port2」および「ENABLE_SIG
NAL」はそれぞれアドレスa、アドレスbおよびアドレスc
を先頭アドレスとして格納される。Referring to FIG. 13, words 202 having more than eight characters are stored in the unique word table 220 in order. The unique word providing unit 31 is a character number checking unit 24
A word 202 having more than eight characters given by
Regardless of whether they are the same word or not, they are sequentially stored in the unique word table 220. At this time, the word 202
"Input_port1", "input_port2" and "ENABLE_SIG
NAL '' is address a, address b, and address c, respectively.
Is stored as the start address.
【0047】置換部40は、単語「input_port1」を置
換するために、ユニーク単語テーブル220中の単語
「input_port1」を探索し、該単語「input_port1」が格
納されている先頭アドレスaの値を用いて単語204を
生成する。より具体的には、先頭アドレスaの下位8ビ
ットをそのまま単語204として用いる。The replacement unit 40 searches for the word “input_port1” in the unique word table 220 to replace the word “input_port1”, and uses the value of the leading address “a” where the word “input_port1” is stored. Generate the word 204. More specifically, the lower 8 bits of the head address a are used as the word 204 as it is.
【0048】本実施例では、単語202を同一の単語で
あっても次々ユニーク単語テーブル220に格納させる
ようにしたが、同一の単語はユニーク単語テーブル22
0に格納させず既に格納されたものを用いるようにして
もよい。In this embodiment, even if the word 202 is the same word, it is stored in the unique word table 220 one after another.
It is also possible to use an already stored one instead of storing it in 0.
【0049】また、本実施例では、先頭アドレスの下位
8ビットをそのまま単語204として用いるようにした
が、これに限定されず様々な方法で単語204を生成さ
せることができる。例えば、先頭アドレスの下位数ビッ
トと他の文字とを組み合わせるようにしてもよい。In this embodiment, the lower 8 bits of the head address are used as they are as the word 204. However, the present invention is not limited to this, and the word 204 can be generated by various methods. For example, the lower few bits of the head address may be combined with other characters.
【0050】このように、本実施例では、ユニーク単語
テーブル220に格納された文字数が8文字より多い単
語202の先頭アドレスを用いて文字数が8文字以下の
単語を生成させるため、ユニーク単語テーブル220の
ための記憶領域をより小さくすることができる。As described above, in the present embodiment, a word having a character number of 8 or less is generated using the head address of the word 202 stored in the unique word table 220 and having a character number of more than 8 characters. Storage area can be made smaller.
【0051】本実施例では文字数の所定数を8文字とし
たが、これに限定されず任意の数値が定められる。In this embodiment, the predetermined number of characters is eight. However, the present invention is not limited to this, and an arbitrary numerical value is determined.
【0052】[0052]
【発明の効果】以上の説明で明らかなように、本発明に
よると、モデル変換対象の論理回路モデルにおける文字
数が所定数より多い単語を求める単語探索部と、単語探
索部により求められた第1の単語に対応するユニークな
第2の単語を生成する単語生成部と、論理回路モデルの
第1の単語に替えて第2の単語を置換する置換部とが設
けられる。このため、論理回路モデルに含まれる文字数
が所定文字数より多い第1の単語を自動的に第2の単語
に置き換えることができる。As is apparent from the above description, according to the present invention, the word search unit for obtaining a word having a number of characters larger than a predetermined number in the logic circuit model to be model-converted and the first word search unit obtained by the word search unit. And a replacement unit that replaces the first word of the logic circuit model with the second word and generates a unique second word corresponding to the word. Therefore, the first word in which the number of characters included in the logic circuit model is larger than the predetermined number of characters can be automatically replaced with the second word.
【0053】また、第2の単語に置き換えられた論理回
路モデルに対してモデル変換を行って変換後の論理回路
モデルを求めた後、該変換後の論理回路モデルに含まれ
る第2の単語をこれに対応する元の文字数が所定値より
多い第1の単語に置き戻す単語返却部を設けたため、人
手によらずモデル変換後の論理回路モデルをより分かり
やすいものにすることができる。After the model conversion is performed on the logic circuit model replaced by the second word to obtain a converted logic circuit model, the second word included in the converted logic circuit model is determined. Since the word return unit corresponding to this is replaced with the first word whose original number of characters is larger than the predetermined value, the logic circuit model after the model conversion can be made easier to understand without manual operation.
【図1】本発明の論理回路モデルに対応する論理回路1
00を示す図である。FIG. 1 shows a logic circuit 1 corresponding to a logic circuit model of the present invention.
FIG.
【図2】本発明のモデル変換対象の論理回路モデル20
0を示す図である。FIG. 2 shows a logic circuit model 20 to be model-converted according to the present invention.
FIG.
【図3】本発明の第一実施例のブロック図である。FIG. 3 is a block diagram of a first embodiment of the present invention.
【図4】本発明の第一実施例のブロック図である。FIG. 4 is a block diagram of a first embodiment of the present invention.
【図5】本発明の単語探索部20のブロック図である。FIG. 5 is a block diagram of a word search unit 20 of the present invention.
【図6】本発明の単語生成部30のブロック図である。FIG. 6 is a block diagram of a word generator 30 according to the present invention.
【図7】本発明の単語抽出部21の抽出結果を示す図で
ある。FIG. 7 is a diagram showing an extraction result of the word extraction unit 21 of the present invention.
【図8】本発明の非予約語抽出部22の抽出結果を示す
図である。FIG. 8 is a diagram showing an extraction result of a non-reserved word extraction unit 22 of the present invention.
【図9】本発明のユニーク単語テーブル210を示す図
である。FIG. 9 is a diagram showing a unique word table 210 according to the present invention.
【図10】本発明の論理回路モデル300を示す図であ
る。FIG. 10 is a diagram showing a logic circuit model 300 of the present invention.
【図11】本発明のモデル変換部60の出力を示す図で
ある。FIG. 11 is a diagram showing an output of the model conversion unit 60 of the present invention.
【図12】本発明のモデル変換装置の出力を示す図であ
る。FIG. 12 is a diagram showing an output of the model conversion device of the present invention.
【図13】本発明のユニーク単語テーブル220を示す
図である。FIG. 13 is a diagram showing a unique word table 220 of the present invention.
10、50、70、90 モデル格納部 20 単語探索部 21 単語抽出部 22 非予約語抽出部 23 単語格納部 24 文字数検査部 30 単語生成部 31 ユニーク単語供与部 32 ユニーク単語格納部 40 置換部 60 モデル変換部 80 単語返却部 100 論理回路 200、300 論理回路モデル 210、220 ユニーク単語テーブル 10, 50, 70, 90 Model storage unit 20 Word search unit 21 Word extraction unit 22 Non-reserved word extraction unit 23 Word storage unit 24 Character number inspection unit 30 Word generation unit 31 Unique word provision unit 32 Unique word storage unit 40 Substitution unit 60 Model conversion unit 80 Word return unit 100 Logic circuit 200, 300 Logic circuit model 210, 220 Unique word table
───────────────────────────────────────────────────── フロントページの続き (58)調査した分野(Int.Cl.6,DB名) G06F 17/50 G06F 9/45 ──────────────────────────────────────────────────続 き Continued on front page (58) Field surveyed (Int.Cl. 6 , DB name) G06F 17/50 G06F 9/45
Claims (6)
論理回路モデルを第2の機能記述言語で記載された第2
の論理回路モデルに変換する場合に変換対象の前記第1
の論理回路モデルに含まれる単語の文字数が所定数以下
であるときのみ該単語を変換可能なモデル変換装置にお
いて、 前記第1の論理回路モデルに含まれる単語のうち文字数
が前記所定数より多い第1の単語を探索する探索手段
と、 この探索手段により探索された前記第1の単語に対し
て、文字数が前記所定数以下の第2の単語を生成する単
語生成手段と、 前記第1のモデルにおいて、前記探索手段により探索さ
れた前記第1の単語にかえて前記単語生成手段により生
成された前記2の単語を配置する置換手段とを含むこと
を特徴とするモデル変換装置。1. A first logic circuit model described in a first function description language is replaced with a second logic circuit model described in a second function description language.
When converting to the logic circuit model of
A model conversion device capable of converting a word included in the first logic circuit model only when the number of characters of the word included in the first logic circuit model is equal to or less than a predetermined number. Searching means for searching for one word; word generating means for generating a second word having a number of characters equal to or less than the predetermined number for the first word searched by the searching means; , A replacement means for arranging the two words generated by the word generation means in place of the first word searched by the search means.
能を表す単語でないものを抽出する抽出手段と、 この抽出手段により抽出された単語の文字数を調べて所
定数よりも文字数の多い単語を抽出する文字数検査手段
とを含むことを特徴とする請求項1記載のモデル変換手
段。2. The searching means comprises: extracting means for extracting, from the words extracted by the word extracting means, those which are not words representing the function of the model; and checking the number of characters of the words extracted by the extracting means to determine a predetermined number of words. 2. The model converting means according to claim 1, further comprising a character number checking means for extracting a word having a larger number of characters.
の単語と、前記単語生成手段により生成された前記第2
の単語とを対にして格納する単語格納手段をさらに含む
ことを特徴とする請求項1記載のモデル変換装置。3. The method according to claim 1, wherein the first means searched by the search means.
And the second word generated by the word generating means.
2. The model conversion apparatus according to claim 1, further comprising word storage means for storing the word in pairs.
記単語探索手段により探索された前記第1の単語を該単
語格納手段に格納し、該単語格納手段の前記第1の単語
が格納されたアドレスの情報を用いて前記第2の単語を
生成することを特徴とする請求項1記載のモデル変換装
置。4. The word generating means includes word storing means, and stores the first word searched by the word searching means in the word storing means, wherein the first word of the word storing means is stored. 2. The model conversion apparatus according to claim 1, wherein the second word is generated using information on the address.
第1の単語が格納された先頭アドレスの下位の所定ビッ
トを用いて前記第2の単語を生成することを特徴とする
請求項4記載のモデル変換装置。5. The apparatus according to claim 4, wherein said generating means generates said second word using predetermined lower bits of a head address of said word storing means in which said first word is stored. Model conversion device.
の論理回路モデルのモデル変換を行う変換手段と、 この変換手段から得られる変換結果に含まれる前記第2
の単語を、該第2の単語に対応する前記第1の単語に置
き戻す置き戻し手段とをさらに含むことを特徴とする請
求項1記載のモデル変換装置。6. The first device replaced by the replacement means.
Conversion means for performing model conversion of the logic circuit model of the above, and the second means included in the conversion result obtained from the conversion means.
2. The model conversion apparatus according to claim 1, further comprising: a replacement unit that replaces the word of the first word with the first word corresponding to the second word.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP8244906A JP2900893B2 (en) | 1996-09-17 | 1996-09-17 | Model conversion device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP8244906A JP2900893B2 (en) | 1996-09-17 | 1996-09-17 | Model conversion device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH1091669A JPH1091669A (en) | 1998-04-10 |
| JP2900893B2 true JP2900893B2 (en) | 1999-06-02 |
Family
ID=17125731
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP8244906A Expired - Lifetime JP2900893B2 (en) | 1996-09-17 | 1996-09-17 | Model conversion device |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP2900893B2 (en) |
-
1996
- 1996-09-17 JP JP8244906A patent/JP2900893B2/en not_active Expired - Lifetime
Also Published As
| Publication number | Publication date |
|---|---|
| JPH1091669A (en) | 1998-04-10 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US7191177B2 (en) | Keyword extracting device | |
| Giri et al. | MTStemmer: A multilevel stemmer for effective word pre-processing in Marathi | |
| US12518102B2 (en) | Meaning representation analyzing system and meaning representation analyzing method | |
| JP2004246440A (en) | Morphemic analyzing device, natural language processor, and morphemic analyzing method and program | |
| JP2900893B2 (en) | Model conversion device | |
| JP2002032426A (en) | Circuit simulation device, circuit simulation method, and recording medium recording circuit simulation program | |
| JP3330719B2 (en) | Text-to-speech conversion system | |
| JP2000311168A (en) | System and method for analyzing morpheme and recording medium recording morpheme analysis program | |
| CN117406996A (en) | Semantic analysis method and device for hardware description code | |
| JPH10307835A (en) | Information processing apparatus and method | |
| EP3255558A1 (en) | Syntax analyzing device, learning device, machine translation device and recording medium | |
| JP4682627B2 (en) | Document retrieval apparatus and method | |
| JP2001101186A (en) | Machine translating device | |
| JPH1115826A (en) | Document analysis apparatus and method | |
| JP4298138B2 (en) | Information retrieval method, apparatus for implementing the same, and recording medium recording the processing program | |
| JP3003459B2 (en) | Program creation support device | |
| JPH0512374A (en) | Logic circuit design equipment | |
| JP3385206B2 (en) | Natural language processor | |
| Stroud | KSL: University of Kentucky Simulation Language | |
| JP2984514B2 (en) | Machine translation equipment | |
| JP3087699B2 (en) | Standard information simple input system and standard information simple input method | |
| JP2982076B2 (en) | Text processing apparatus and method | |
| JP2947554B2 (en) | Machine translation equipment | |
| JP2001265802A (en) | Apparatus and method for calculating similarity between words in a thesaurus and recording medium | |
| JPH07175845A (en) | Circuit conversion method for logic simulation |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 19990216 |