KR970011897B1 - Words interpretating device - Google Patents

Words interpretating device Download PDF

Info

Publication number
KR970011897B1
KR970011897B1 KR1019930021236A KR930021236A KR970011897B1 KR 970011897 B1 KR970011897 B1 KR 970011897B1 KR 1019930021236 A KR1019930021236 A KR 1019930021236A KR 930021236 A KR930021236 A KR 930021236A KR 970011897 B1 KR970011897 B1 KR 970011897B1
Authority
KR
South Korea
Prior art keywords
storing
knowledge
input
unit
bus
Prior art date
Application number
KR1019930021236A
Other languages
Korean (ko)
Other versions
KR950012257A (en
Inventor
최종웅
Original Assignee
엘지산전 주식회사
이종수
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by 엘지산전 주식회사, 이종수 filed Critical 엘지산전 주식회사
Priority to KR1019930021236A priority Critical patent/KR970011897B1/en
Publication of KR950012257A publication Critical patent/KR950012257A/en
Application granted granted Critical
Publication of KR970011897B1 publication Critical patent/KR970011897B1/en

Links

Abstract

ROM(1); a memory(2) for storing a user sequence program; CPU(5) for performing an operation program according to a synchronization of a clock of the clock generator(3); RAM(6,7) for storing a command used as a standard of a language interpretation; a battery backup part(8) for storing a RAM's data; an input/output part(9) a knowledge-based element(10) for storing a complier command needed to perform a user sequence program, and comparing it with another command; a computer(11) for correcting and editing the concept of the knowledge-based element(10); and bus for a data input/output communication; a serial input/output part and an input/output interface(13). Accordingly, the processor can vary a command set structure by using a computer, thereby increasing a softness about a language interpretation, and diagnosis function.

Description

언어해석 처리장치Language interpretation processing device

제1도는 종래 언어해석 처리장치의 블록 구성도.1 is a block diagram of a conventional language interpretation processing device.

제2도는 제1도에 있어서, 유저시퀸스 프로그램을 저장하는 메모리에 저장된 언어해석전의 프로그램 형태예를 보여주는 설명도.2 is an explanatory diagram showing an example of a program form before language interpretation stored in a memory storing a user sequence program in FIG.

제3도는 본 발명 언어해석 처리장치의 블록 구성도.Figure 3 is a block diagram of the language interpretation processing device of the present invention.

제4도는 제3도에서, 운영프로그램에서 유지시퀸스 프로그램의 명령어를 해석하는 흐름도.FIG. 4 is a flow chart for interpreting the instructions of the maintenance sequence program in the operating program in FIG.

제5도는 제4도에 있어서, 지식기반 소지부에 기록된 간단한 메모리 저장영역 및 구조도.5 is a simple memory storage area and structure diagram written in the knowledge base holding portion in FIG.

제6도는 본 발명에 있어서, 지식기반 소자부에 저장된 지식기반을 이용하여 운영프로그램에서 유저시퀸스 프로그램의 명령어를 해석하는 신호흐름도.6 is a signal flow diagram for interpreting the instructions of the user sequence program in the operating program using the knowledge base stored in the knowledge base element in the present invention.

* 도면의 주요부분에 대한 부호의 설명* Explanation of symbols for main parts of the drawings

1 : 롬2 : 메모리1: ROM 2: Memory

3 : 클럭발생부4 : 리세트부3: clock generator 4: reset unit

5 : 중앙처리부6,7 : 램5: central processing unit 6, 7: RAM

8 : 밧데리백업부9 : 입출력부8: battery backup unit 9: input / output unit

10 : 지식기반(Knowledge-based)소자부11 : 컴퓨터10: Knowledge-based device unit 11: Computer

12 : 직렬입출력부13 : 통신용 입출력인터페이스,12: serial input and output unit 13: communication input and output interface,

BUS : 버스BUS: Bus

본 발명은 언어해석 처리장치에 관한 것으로, 특히 유사언어나 실수하기 쉬운 구문언어를 하나로 모아지식기반(Knowledge-based)을 구축하여 놓고 다른 유사언어와 비교 및 검색하여 자기학습이 되도록 유연성을 높이고 사용자의 실수를 감소시킬 수 있도록 한 언어해석 처리장치에 관한 것이다.The present invention relates to a language interpretation processing apparatus, and in particular, a knowledge-based collection of similar languages or easy-to-error syntactic languages are put together, and the flexibility and the user can be increased by comparing and searching with other similar languages to be self-learning. An apparatus for interpreting a language that can reduce the number of mistakes.

종래 언어해석 처리장치는, 제1도에 도시된 바와같이, 장치의 동작을 제어하는 운영프로그램을 저장하는 롬(1)과, 유저시퀸스 프로그램을 저장하는 메모리(2)와, 클럭발생부(3)로부터 발생되는 클럭의 동기에 따라 운영프로그램을 수행시키는 중앙처리부(5)와, 상기 중앙처리부(5)에 의한 언어의 해석 및 비교의 기준이 되는 명령어를 저장하는 램(6)(7)과, 상기 램(7)의 데이타가 저장가능하도록 한 밧데리백업부(8)와, 주변입출력기기와 데이타를 주고 받을 수 있도록 한 입출력부(9)와, 상기 각부의 데이타입출력의 통신이 가능하도록 한 버스(BUS)로 구성된다. 그리고 여기서 미설명부호 4는 리세트부이다.The conventional language interpretation processing apparatus includes a ROM (1) for storing an operating program for controlling the operation of the apparatus, a memory (2) for storing a user sequence program, and a clock generator (3), as shown in FIG. A central processing unit (5) which executes an operating program according to the synchronization of the clocks generated from the subfield), a RAM (6) (7) which stores instructions which are a reference for interpretation and comparison of the language by the central processing unit (5); A battery backup unit 8 capable of storing data of the RAM 7, an input / output unit 9 capable of exchanging data with peripheral I / O devices, and data input / output of each unit It consists of a bus. Here, reference numeral 4 is a reset part.

이와같이 구성된 회로에 있어서, 먼저 중앙처리부(5)가 버스(BUS)를 통해 언어해석전의 프로그램형태와 같은 제2도에 도시된 명령에서 메모리(2)에 가장 먼저 저장된 하나의 명령을 불러(fetch)하고 롬(1)에 저장된 운영프로그램에 의하여 그 명령이 어떤 코드값을 갖는지 번역을 한다.In the circuit configured in this way, the central processing unit 5 first fetches one instruction stored in the memory 2 first from the instruction shown in FIG. 2, such as a program form before language interpretation, via the bus BUS. Then, the operating program stored in the ROM 1 translates the code value of the command.

예를들어, 제2도에 도시된 LOAD라는 명령인 경우에는 OEED(16진수 기계코드(Machine-Code임)라는 중앙처리부(5)가 갖는 고유의 특성코드를 번역해준다.For example, in the case of the LOAD command shown in FIG. 2, the unique characteristic code of the central processing unit 5 called OEED (Machine-Code) is translated.

그 다음 오퍼랜드(Operand)에 따라오는 번지(예를들어 15.7)를 16진수 내지 2진수를 대치시켜 이 모든 내용을 순차적으로 램(6)(7) 등에 보관해 나간다.The address followed by the operand (for example, 15.7) is replaced by hexadecimal to binary numbers and all of this is stored in RAM 6 and 7 sequentially.

이렇게 유저시퀸스 프로그램을 저장한 메모리(2)의 마지막점까지 그 언어를 해석하여 종료시킨다.The language is interpreted and terminated to the last point of the memory 2 in which the user sequence program is stored.

그러나 이와같은 종래의 회로에 있어서, 운영프로그램을 저장하는 롬의 내용을 사용자가 수정할 수 없으므로, 사용자가 예를들어 LOAD명령을 MOV라고 정하고 싶던가 LOAD명령을 L의 약자로 정하고 싶다던가 LOAD라고 할 것을 실수로 LOA만 썼을 경우 에러를 유발시켜 유연성과 단축명령사용 등에 문제점이 따른다.However, in such a conventional circuit, since the user cannot modify the contents of the ROM that stores the operating program, the user wants to specify, for example, the LOAD command as MOV or the LOAD command as L abbreviation or LOAD. If you use only LOA by mistake, it will cause errors and you will have problems with flexibility and use of shortcut commands.

따라서 종래의 문제점을 해결하기 위하여 본 발명은 동일한 명령어나 혼돈하기 쉬운 구문 및 단축명령어 등을 모아 그 숫자를 기록해 놓고 그 다음 명령에 세트를 저장한 다음 그 모든 명령어가 기계코드로 어떤 값을 가지는지를 보관시켜둠과 아울러 통신보드를 통하여 컴퓨터가 명령어 세트등 지식기반(Knowledge-based)소자 내용을 사용자가 변경할 수 있도록 하여 유연성 및 진단기능을 증대시키도록 한 언어해석 처리장치를 창안한 것으로, 이하 첨부한 도면을 참조하여 상세히 설명하면 다음과 같다Therefore, in order to solve the conventional problem, the present invention collects the same command or confusion syntax and abbreviated command, records the numbers, stores the set in the next command, and then, what values all the commands have in machine code. In addition, the company has created a language interpretation processing device that allows users to change the contents of knowledge-based devices such as instruction sets through the communication board to increase flexibility and diagnostic functions. Referring to the drawings in detail as follows:

제3도는 본 발명의 언어해석 처리장치 구성도로서, 이에 도시한 바와같이, 장치의 동작을 제어하는 운영프로그램을 저장하는 롬(1)과, 유저시퀸스 프로그램을 저장하는 메모리(2)와, 클럭발생부(3)로부터 발생되는 클럭의 동기에 따라 운영프로그램을 수행시키는 중앙처리부(5)와, 상기 중앙처리부(5)에 의한 언어의 해석 및 비교의 기준이 되는 명령어를 저장하는 램(6)(7)과, 상기 램(7)의 데이타가 저장가능하도록 한 밧데리백업부(8)와, 주변입출력기기와 데이타를 주고 받을 수 있도록 한 입출력부(9)와, 상기 유저시퀸스 프로그램 수행에 필요한 컴파일러형 명령어를 저장하여 다른 명령어와 비교 검색하는데 쓰이도록 한 지식기반(Knowledge-based) 소자부(10)와, 상기 지식기반(Knowledge-based) 소자부(10)에 저장된 지식기반(Knowledge-based) 내용을 수정 및 편집이 가능하도록 한 컴퓨터(11)와, 상기 각 부의 데이타입출력의 통신이 가능하도록 한 버스(BUS)와, 상기 지식기반 소자부(10)와 컴퓨터(11)를 버스(BUS)를 통하여 데이타를 주고 받을 수 있도록 한 직렬입출력부(12) 및 통신용 입출력인터페이스(13)로 구성한다.3 is a block diagram of a language interpretation processing apparatus according to the present invention. As shown therein, a ROM 1 for storing an operating program for controlling the operation of the apparatus, a memory 2 for storing a user sequence program, and a clock are shown. A central processing unit (5) for executing an operating program according to the synchronization of the clocks generated from the generating unit (3), and a RAM (6) for storing instructions which are a reference for interpretation and comparison of languages by the central processing unit (5) (7), a battery backup unit (8) for storing data of the RAM (7), an input / output unit (9) for exchanging data with peripheral I / O devices, and for performing the user sequence program. A knowledge-based device unit 10 for storing a compiler-type instruction for comparison and searching with other commands, and a knowledge-based device stored in the knowledge-based device unit 10. Edit and edit the content A computer (11) capable of communicating with each other, a bus (BUS) enabling communication of data input / output of the respective parts, and data transfer between the knowledge-based device unit (10) and the computer (11) via a bus (BUS). A serial I / O unit 12 and a communication I / O interface 13 are configured.

이와같이 구성된 본 발명의 작용 및 효과에 대하여 상세히 설명하면 다음과 같다.Referring to the operation and effects of the present invention configured as described above in detail.

제6도의 흐름도에서와 같이 중앙처리부(5)는 유저시퀸스 프로그램을 저장한 메모리(2)에서 하나의 명령어(예를 들어 LOAD)를 불러(fetch)와서 램(6)(7) 내부의 버퍼에 일시적으로 저장하여 둔다.As shown in the flowchart of FIG. 6, the central processing unit 5 fetches one instruction (e.g., LOAD) from the memory 2 that stores the user sequence program, and stores it in a buffer inside the RAM 6 (7). Save it temporarily.

그 다음 상기 중앙처리부(5)는 불러들인 명령이 단축명령인지 유사한 명령으로 실수를 한 것인지를 판단하기 위하여 제5도에 도시한 지식기반 소자부(10)의 간단한 메모리저장 영역 및 구조에 동일한 명령어 세트의 모음에서 한개씩 버퍼를 불러와 비교해 나간다. 즉, LOAD→LOA→LO→L.→L……등의 순서대로, 해당되는 스트링(STRING)이 지식기반 소자부(10)내에 있으면 중앙처리부(5) 고유의 기계코드(Machine-Code)로, 여기서는 OEED값의 해석결과를 저장하는 램(6)(7)에 순차적으로 저장해 나간다.Then, the central processing unit 5 has the same command in the simple memory storage area and structure of the knowledge-based device unit 10 shown in FIG. 5 to determine whether the imported command is a short command or a similar command. Retrieve and compare buffers one by one from a collection of sets. That is, LOAD → LOA → LO → L. → L…. … If the corresponding string STRING is in the knowledge-based device unit 10, the RAM- 6 storing the analysis result of the OEED value is a machine code unique to the central processing unit 5, in this order. Store them sequentially in (7).

상기에서와 같은 방법으로 해석을 행함에 있어, 컴퓨터(11)의 워드프로세서 혹은 텍스트 편집을 사용해서 16진수 코드로 작성한후 그 파일(FILE)을 통신용 입출력인터페이스(13) 및 직렬입출력부(12)를 통하여 버스(BUS)로 실려진다.In performing the analysis in the same manner as described above, the file FILE is written in hexadecimal code using a word processor or text editing of the computer 11, and the file FILE is communicated with the input / output interface 13 and the serial input / output unit 12. Via bus.

그러면 상기 중앙처리부(5)는 상기 버스(BUS)에 실련진 데이타를 중앙처리부(5)의 지령에 의하여 지식기반 소자부(10)의 메모리에 순차적으로 제5도에서와 같은 순서로 저장 기록된다.Then, the central processing unit 5 stores and writes the data trained on the bus in the memory of the knowledge-based device unit 10 in the order as shown in FIG. 5 by the command of the central processing unit 5. .

이상에서 설명한 사용자시퀸스 프로그램 해석의 절차를 제4도를 참조하여 살펴보면 먼저 유저시퀸스 프로그램을 저장하는 메모리(2)에서 한개의 명령을 불러와 명령어를 램(6)(7)의 버퍼에 저장한 다음 버퍼의 내용과 운영프로그램내의 명령어 내용과 비교한다.Referring to Fig. 4 for the procedure of interpreting the user sequence program described above, first, one instruction is called from the memory (2) storing the user sequence program, and the instruction is stored in the buffer of the RAM (6) (7). Compare the contents of the buffer with the instructions in the operating program.

비교된 명령어의 내용이 일치하면 해당 명령어에 해당하는 중앙처리부(5) 고유의 기계코드(Machine-Code)로 대체하여 램(6)(7)에 순차적으로 저장하고 비교내용이 일치하지 않으면 계속해서 명령어의 내용을 비교하도록 한다.If the contents of the compared instructions match, they are replaced with the machine code unique to the central processing unit (5) corresponding to the instructions, and are sequentially stored in the RAM (6) (7). Compare the contents of the commands.

상기의 지식기반 내용을 수정하거나 편집하는 방법에 대하여 살펴보면, 컴퓨터(11)의 워드프로세서 혹은 텍스트 에디터를 사용해서 16진수 코드로 작성한 후, 이 작성한 파일을 통신용 입출력인터페이스(13) 및 직렬입출력부(12)를 통하여 버스(BUS)로 실려진다.The method of modifying or editing the above knowledge base contents is described in the form of hexadecimal code by using a word processor or a text editor of the computer 11, and then the created file is used as the communication input / output interface 13 and the serial input / output unit ( 12) via bus.

그러면 상기 중앙처리부(5)는 상기 버스(BUS)에 실려간 데이터를 중앙처리부(5)의 지령에 의하여 지식기반 소자부(10)의 메모리에 순차적으로 저장한다.Then, the central processing unit 5 sequentially stores the data carried on the bus BUS in the memory of the knowledge-based device unit 10 by the command of the central processing unit 5.

또한, 지식기반 내용을 수정하거나 다시 새롭게 편집하고 싶을 때에는 상기 방법의 역순으로 하면 된다.In addition, if the knowledge-based content is to be corrected or edited again, the method may be reversed.

즉, 중앙처리부(5)에서 지식기반 소자부(10)에 저장된 기존의 데이터를 버스(BUS)에 실어 직렬입출력부(12) 및 통신 입출력인터페이스(13)을 통해 최초 컴퓨터에서 작성한 상대로 불러와 여기에서 수정 및 편집을 하여 다시 같은 방법으로 지식기반 소자부(10)의 메모리에 저장하면 된다.In other words, the central processing unit 5 loads existing data stored in the knowledge-based device unit 10 on the bus and loads it into a counterpart created by the first computer through the serial input / output unit 12 and the communication input / output interface 13. In the same manner and modified and edited again in the memory of the knowledge-based device unit 10 may be stored.

이상에서 상세히 설명한 바와같이 본 발명은 동일한 명령어나 혼돈하기 쉬운 구문 및 단축변열어 등을 모아 그 숫자를 기록한 후 그 다음 명령어 세트를 순차적으로 저장하고 모든 명령어가 기계코드(Machine-Code)로 어떤 값을 가지는지 지식기반(Knowledge-based) 소자에 저장하고 중앙처리부가 운영프로그램에 따라 사용자시퀸스 프로그램을 해석해 나가도록 함과 아울러 컴퓨터에 의하여 상기 지식기반(Knowledge-based) 소자에 기록된 명령어세트를 변경가능하도록 한 효과가 있다.As described in detail above, the present invention collects the same instruction or confusion syntax and abbreviated word, records the numbers, stores the next instruction set sequentially, and stores all instructions as machine-code. Change the instruction set recorded in the knowledge-based device by a computer, and store the data in a knowledge-based device and allow the central processing unit to interpret a user sequence program according to an operating program. It has the effect of making it possible.

Claims (1)

장치의 동작을 제어하는 운영프로그램을 저장하는 롬(1)과, 유저시퀸스 프로그램을 저장하는 메모리(2)와, 클럭발생부(3)로부터 발생되는 클럭의 동기에 따라 운영프로그램을 수행시키는 중앙처리부(5)와, 상기 중앙처리부(5)에 의한 언어의 해석 및 비교의 기준이 되는 명령어를 저장하는 램(6)(7)과, 상기 램(7)의 데이타가 저장가능하도록 한 밧데리백업부(8)와, 주변입출력기기와 데이타를 주고 받을 수 있도록 한 입출력부(9)와, 상기 유저시퀸스 프로그램 수행에 필요한 컴파일러형 명령어를 저장하여 다른 명령어와 비교 검색하는데 쓰이도록 한 지식기반 소자부(10)와, 상기 지식기반 소자부(10)에 저장된 지식기반(Knowledge-based) 내용을 수정 및 편집이 가능하도록 한 컴퓨터(11)와, 상기 각 부의 데이타입출력의 통신이 가능하도록 한 버스(BUS)와, 상기 지식기반 소자부(10)와 컴퓨터(11)를 버스(BUS)를 통하여 데이타를 주고 받을 수 있도록 한 직렬입출력부(12) 및 통신용 입출력인터페이스(13)로 구성된 언어해석 처리장치.A central processing unit for executing an operating program according to synchronization of a clock generated from a ROM (1) storing an operating program controlling an operation of the apparatus, a memory (2) storing a user sequence program, and a clock generator (3) (5), a RAM (6) (7) for storing instructions used as a reference for interpretation and comparison of the language by the central processing unit (5), and a battery backup unit for storing data of the RAM (7) (8), an input / output unit 9 for exchanging data with peripheral I / O devices, and a knowledge-based device unit for storing and comparing compiler-type instructions necessary for executing the user sequence program to be used for comparison with other instructions. 10), a computer 11 capable of modifying and editing the knowledge-based contents stored in the knowledge-based device unit 10, and a bus enabling communication of data input / output of the respective parts. ) And the above Based on the element section 10 and the computer 11, a bus (BUS) language interpretation processing apparatus consisting of a serial input-output unit 12 and a communication input-output interface 13 to exchange data via a.
KR1019930021236A 1993-10-13 1993-10-13 Words interpretating device KR970011897B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1019930021236A KR970011897B1 (en) 1993-10-13 1993-10-13 Words interpretating device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1019930021236A KR970011897B1 (en) 1993-10-13 1993-10-13 Words interpretating device

Publications (2)

Publication Number Publication Date
KR950012257A KR950012257A (en) 1995-05-16
KR970011897B1 true KR970011897B1 (en) 1997-07-18

Family

ID=19365770

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1019930021236A KR970011897B1 (en) 1993-10-13 1993-10-13 Words interpretating device

Country Status (1)

Country Link
KR (1) KR970011897B1 (en)

Also Published As

Publication number Publication date
KR950012257A (en) 1995-05-16

Similar Documents

Publication Publication Date Title
US5701487A (en) Method and apparatus for displaying locations of errors detected inside software macro calls
US5860008A (en) Method and apparatus for decompiling a compiled interpretive code
JPH01306923A (en) System for connecting different languages
US20040154004A1 (en) Web application code conversion system
KR970011897B1 (en) Words interpretating device
JPH03208159A (en) Extended software function for multiprocessor system
KR100417655B1 (en) Regulating information generator and program development system composed of regulator
JPH05346332A (en) Execution method for test program
Naur The design of the GIER ALGOL compiler
Rather et al. The FORTH approach to operating systems
Morris et al. A system program generator
Goos Language characteristics programming languages as a tool in writing system software
Reiser BAIL
Sloman et al. PoPLoo: A MULTILANGUAGE PROGRAM
Wasserman et al. A balanced view of MUMPS
JPH11154093A (en) Program compiler and storage medium recording compiler program
JP2662533B2 (en) Logic analyzer
JP2811804B2 (en) Variable output range specification method
JPS5894041A (en) Debug backup device for high-class language
Verhelst et al. PEP: An interactive programming system with an Algol‐like programming language
JP2507676B2 (en) Index I / O statement execution processing method
Vel'bitskiy Metalanguage for formal definition of semantics of programming languages
Pensom On the classification and selection of small-to medium-sized computers for real-time applications
JPH0498322A (en) Generation method for compiler
Gallacher Software for hardware engineers

Legal Events

Date Code Title Description
A201 Request for examination
N231 Notification of change of applicant
E902 Notification of reason for refusal
G160 Decision to publish patent application
G162 Publication of registration [patent]: decision on publication of application
E701 Decision to grant or registration of patent right
GRNT Written decision to grant
FPAY Annual fee payment

Payment date: 20000630

Year of fee payment: 4

LAPS Lapse due to unpaid annual fee