KR890000805B1 - Memory space mapping system - Google Patents

Memory space mapping system Download PDF

Info

Publication number
KR890000805B1
KR890000805B1 KR1019850009943A KR850009943A KR890000805B1 KR 890000805 B1 KR890000805 B1 KR 890000805B1 KR 1019850009943 A KR1019850009943 A KR 1019850009943A KR 850009943 A KR850009943 A KR 850009943A KR 890000805 B1 KR890000805 B1 KR 890000805B1
Authority
KR
South Korea
Prior art keywords
address
signal
segment
memory
microprocessor
Prior art date
Application number
KR1019850009943A
Other languages
Korean (ko)
Other versions
KR870006472A (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 KR1019850009943A priority Critical patent/KR890000805B1/en
Publication of KR870006472A publication Critical patent/KR870006472A/en
Application granted granted Critical
Publication of KR890000805B1 publication Critical patent/KR890000805B1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F12/00Accessing, addressing or allocating within memory systems or architectures
    • G06F12/02Addressing or allocation; Relocation
    • G06F12/08Addressing or allocation; Relocation in hierarchically structured memory systems, e.g. virtual memory systems

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Storage Device Security (AREA)

Abstract

The method is for extending memory of 8bit microprocessor up to 64KB with a special register and a segment discripter memories. The logical addresses (LAB12-15) are assigned to the address of characteristic register (2) comprised by 8bit characteristic code (2a) and segment address (2b). The segment address signals (SAB0-7) are assigned to the address of a segment discripter (3) comprised by 4bit page address (3a), 16bit base address (3b), and 12bit range code (3c). The page address (PG0-3), the base address (BAB0-15), and the logical address (LAB0-11) signals are mixed in an adder (4) and converted to 20bit physical address signals (PAB0-19).

Description

메모리를 이용한 메모리 스페이스 확장방식Memory Space Expansion Method Using Memory

제1도는 종래의 뱅크방식에 의한 메모리 스페이스 확장방식 개념설명블록도.1 is a block diagram illustrating a concept of a memory space expansion method according to a conventional bank method.

제2도는 종래의 오버래핑(overlapping)방식에 의한 메모리 스페이스 확장방식 개념설명블록도.2 is a conceptual diagram illustrating a memory space expansion method according to a conventional overlapping method.

제3도는 본 발명의 메모리를 이용한 메모리 스페이스 확장방식 설명블록도.3 is a block diagram illustrating a memory space expansion method using a memory of the present invention.

제4도는 본 발명의 방식에 의한 일실시 상세블록도.4 is a detailed block diagram of one embodiment according to the method of the present invention.

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

1 : 마이크로 프로세서 2 : 특성 레지스터1: microprocessor 2: characteristic register

3 : 세그먼트 디스크립터 4 : 합산기3: segment descriptor 4: summer

5 : 특성위반 검출회로 6 : 세그먼트 영역위반 검출회로5: characteristic violation detection circuit 6: segment region violation detection circuit

7 : 다입력 노아게이트 8, 9, 11 : 버퍼7: Multi-input Noah Gate 8, 9, 11: Buffer

10 : 멀티플렉서 12 : 부트룸10: multiplexer 12: bootroom

본 발명은 8비트 마이크로 프로세서에서 메모리 주소지정을 확장하는 방식에 관한 것으로, 특히 별도의 메모리를 사용하여 8비트 마이크로 프로세서의 최대 메모리 스페이스(space)를 64키로 바이트에서 필요한 양의 크기로 확장시킬 수 있도록 함과 동시에 페이지를 포함한 메모리 분할방식에 의해 각 메모리 스페이스 확장방식에 관한 것이다.The present invention relates to a method of extending memory addressing in an 8-bit microprocessor, and in particular, a separate memory can be used to extend the maximum memory space of an 8-bit microprocessor from 64 kilobytes to the required amount of bytes. In addition, the present invention relates to each memory space expansion method by a memory partitioning method including pages.

일반적으로 8비트 마이크로 프로세서는 프로그램을 처리하는데 심한 시간적 제한을 받지않고 데이타의 양이 많을때 하드웨어의 오버헤드(overhead)를 줄이기 위해 사용하는데, 이때 메모리 스페이스를 확장시키기 위해 뱅크방식이나 오버래핑(overl-apping)방식을 사용하고 있다.In general, 8-bit microprocessors are used to reduce hardware overhead when there is a large amount of data, without being severely limited in processing a program. In this case, banking or overlapping to expand memory space is performed. apping) method.

그런데, 상기 뱅크방식은 제1도에 도시한 바와같이 뱅크선택신호

Figure kpo00001
로 뱅크
Figure kpo00002
를 선택하여 메모리 스페이스를 확장하는 방식으로서, 일예로 뱅크(BK0)을 선택했을 경우에는 고정뱅크(FBK)의 32키로 바이트와 뱅크0(BK0)의 32키로 바이트가 선택되어 마이크로 프로세서의 메모리 스페이스가 확장되었다. 따라서 이 방식에 있어서는 뱅크선택신호
Figure kpo00003
를 출력하는 뱅크수위치의 크기에 따라 소요되는 양의 크기로 스페이스를 확장시킬 수는 있으나, 데이타의 전송에 있어서 뱅크(BK0-bk7)중 임의의 뱅크의 프로그램이 다른 뱅크의 데이타를 필요로 한 경우 그 데이타를 반드시 고정뱅크(FBK)를 공통영역으로 사용하게 할 수 있으나, 이는 고정뱅크(FBK)의 양이 32키로 바이트로 한정되어 있으므로 프로그램 및 데이타의 분산처리가 어려워지는 결점이 있었다.However, in the bank method, as shown in FIG.
Figure kpo00001
Low bank
Figure kpo00002
In this example, when the bank BK 0 is selected, 32 bytes of the fixed bank (FBK) and 32 bytes of the bank 0 (BK 0 ) are selected to select the memory space of the microprocessor. The space has been expanded. Therefore, in this method, the bank selection signal
Figure kpo00003
Although the space can be expanded to the required amount according to the size of the number of banks to output the data, a program in one bank of the banks (BK 0 -bk 7 ) needs data from another bank to transfer data. In this case, it is possible to use the fixed bank (FBK) as a common area. However, since the amount of the fixed bank (FBK) is limited to 32 kilobytes, it is difficult to distribute the program and data. .

또한, 이 방식에 있어서는 메모리의 분할사용이 각 뱅크 (BK0-BK7)가 32키로 바이트의 영역으로 분할되므로 프로그램의 다중처리시 사용하지 못하는 뱅크가 많이 발생되어 메모리의 사용효율이 저하될 뿐 아니라, 각 뱅크 (BK0-BK7)에 대해 읽기만 하는 영역, 프로그램 영역, 데이타 영역등의 특성만을 부여하게 되므로 메모리 보호는 전혀 고려될 수 없는 결점이 있었다.In addition, in this method, since each bank (BK 0- BK 7 ) is divided into 32-byte byte regions, many banks that cannot be used during the multiprocessing of the program are generated, thereby reducing the memory usage efficiency. On the other hand, since each bank (BK 0 -BK 7 ) has only the characteristics of a read-only area, a program area, and a data area, memory protection cannot be considered at all.

그리고, 상기 오버래핑 방식은 하드웨어의 보완으로 특정한 상황에서만 어드레스가 중첩된 메모리를 억세스하여 마이크로 프로세서의 메모리 스페이스를 확장시키는 방식이다. 즉 오버래핑 방식은 제2도에 도시한 바와같이 특정메모리 선택신호

Figure kpo00004
가 인가된 상태에서 중첩메모리 선택신호
Figure kpo00005
가 인가된 경우에는 오아게이트(OR2)의 출력단자에 저전위 신호가 출력되어 중첩메모리(M1)를 인에이블 상태로 만들고, 보통 메모리 선택신호
Figure kpo00006
가 인가된 경우에는 오아게이트(OR1)의 출력단자에 저전위 신호가 출력되어 보통메모리(M2)를 인에이블 상태로 만드는 방식으로서, 이 방식은 많은 메모리를 사용하지 않는 경우에는 적합하나, 그렇지 않는 경우에는 중첩메모리(M1)의 용량크기에 제한을 받게되고 메모리를 보호할 수 없게되는 결점이 있었다.In addition, the overlapping method is a method of expanding a memory space of a microprocessor by accessing a memory having an overlapping address only in a specific situation as a complement of hardware. In other words, the overlapping scheme uses a specific memory selection signal as shown in FIG.
Figure kpo00004
Overlap Memory Selection Signal
Figure kpo00005
When is applied, a low potential signal is output to the output terminal of the OR gate (OR 2 ) to make the overlapped memory (M 1 ) enabled, and the normal memory selection signal
Figure kpo00006
When is applied, a low potential signal is output to the output terminal of the OR gate (OR 1 ) to make the normal memory (M 2 ) enabled. This method is suitable when not using a lot of memory. Otherwise, there is a drawback that the capacity of the overlapped memory M 1 is limited and the memory cannot be protected.

따라서, 본 발명의 목적은 특정레지스터용 메모리 및 세그멘트 디스크립터용 메모리를 별도로 사용하여 메모리의 용량크기에 제한을 받지않고 마이크로 프로세서의 최대 메모리 스페이스를 64키로 바이트에서 필요한 양의 크기로 확장시킬 수 있는 방식을 제공함에 있다.Accordingly, an object of the present invention is to use a specific register memory and a segment descriptor memory separately, so that the maximum memory space of the microprocessor can be extended from 64 kilobytes to the required amount without being limited by the capacity of the memory. In providing.

본 발명의 또 다른 목적은 페이지를 포함한 메모리 분할방식으로 메모리 스페이스를 확장시켜 각 메모리 세그먼트를 보호할 수 있게 함에 있다.It is another object of the present invention to protect each memory segment by extending the memory space in a memory partitioning method including pages.

이와 같은 목적을 가지는 본 발명을 첨부된 도면에 의해 상세히 설명하면 다음과 같다.The present invention having the above object will be described in detail with reference to the accompanying drawings.

제3도는 본 발명의 메모리를 이용한 메모리 스페이스 확장방식 블록도로서 이에 도시한 바와같이, 마이크로 프로세서(1)에서 출력되는 로지컬 어드레스신호(Logical address)(LAB12-15)로 8비트 특성코드(2a) 및 세그먼트 어드레스(2b)로 구성된 특정레지스터(2)의 어드레스를 지정하게 하고, 이 특성레지스터(2)의 세그먼트 어드레스 (2b)에서 출력되는 어드레스신호(SAB0-7)로 4비트의 페이지 어드레스(3a) 및 16비트의 베이스 어드레스(3b), 12비트의 최대한범위코드(3c)로 구성된 세그먼트 디스크립터(3)의 어드레스를 지정하게하며, 이 세그먼트 디스크립터(3)의 페이지 어드레스 (3a) 및 베이스 어드레스(3b)에서 출력되는 어드레스신호(PG0-7), (BAB0-15)와 상기 마이크로 프로세서(1)에서 출력되는 로지컬 어드레스신호(LAB0-11)를 합산기(4)에서 20비트 피지컬 어드레스(physical address)신호(PAB0-19)로 합산하여 외부메모리의 어드레스를 지정하게 한다. 또한 상기 특성레지스터(2)의 특성코드(2a)에서 출력되는 특성코드신호(CC0-7)를 특성위반 검출회로(5)에서 검출하여 마이크로 프로세서(1)에 에러 인터럽트신호

Figure kpo00007
로 인가하고, 또한 상기 로지컬 어드레스신호(LAB0-11)가 세그먼트 디스크립터(3)의 최대 제한범위 코드(3a)에 기록된 제한범위 코드신호(BAB0-11)에 위반되는가를 세그먼트 영역위반 검출회로(6)에서 검출하여 마이크로 프로세서 (1)에 에어러인터럽트신호
Figure kpo00008
로 인가하게 구성한 것으로, 도면의 설명중 미설명부호 7은 다입력노아게이트를 나타낸다.The third turning memory space as an expansion method block diagram shown to this, the logical address signal (Logical address) (LAB 12 - 15) that is output from the microprocessor (1) using a memory of the present invention to an 8-bit attribute code (2a ) and the segment address (2b) to specify the address of a specific register (2), and the attribute register (2), segment addresses (2b) address signal (SAB 0 output from the consisting of-page address of 4 bits to 7) An address of the segment descriptor 3 composed of (3a) and a 16-bit base address (3b) and a 12-bit maximum range code (3c), and the page address (3a) and the base of the segment descriptor (3). address output from the address (3b) signal (PG 0 - 7), 20 bits in the adder 4, the - - (11 LAB 0) ( BAB 0 15) and the microprocessor (1) the logical address signals output from the Physical Les (physical address) signal (PAB 0 - 19) combined with it will be specified the address of the external memory. In addition, the characteristic register (2) of attribute code (2a) attribute code signal that is output from-error interrupt signal (CC 0 7) to detect violations in the characteristic detection circuit 5, the microprocessor (1)
Figure kpo00007
As is, and also the logical address signal (LAB 0 - 11), the segment descriptor (3) up to the limit recorded in the cord (3a) the limit code signal (BAB 0 - 11) of the Is in violation of the segment region violation detection Detected by the circuit (6) and the air interrupt signal to the microprocessor (1)
Figure kpo00008
In the drawing, reference numeral 7 denotes a multi-input NOR gate.

이와같이된 본 발명의 어드레스가 변화과정을 마이크로 프로세서(1)에서 510 0h번지의 메모리의 내용을 읽는 예를 들어 설명한다. 단, 이때 특정레지스터(2)의 5번지에기록된 세그먼트 어드레스(2b)의 값이 10h이고, 10h에 해당되는 세그먼트 디스크립터(3)의내용이 11000FFFh라고 가정한다.The process of changing the address of the present invention as described above will be described with an example of reading the contents of the memory at address 510 0h in the microprocessor 1. However, at this time, it is assumed that the value of the segment address 2b recorded at address 5 of the specific register 2 is 10h, and the content of the segment descriptor 3 corresponding to 10h is 11000FFFh.

따라서, 마이크로 프로세서(1)에서 5100h의 로지컬 어드레스신호가 출력되면, 그 로지컬 어드레스신호중 로지컬 어드레스신호(LAB22-15)에 해당되는 5h(0101B)에 의해 특정레지스터(2)의 5번지를 지정하게 되므로, 그 5번지에 기록되어 있는 세그먼트 어드레스(2b)의 10h 8비트 세그먼트 어드레스 신호가 출력되며, 10h 세그먼트 어드레스 신호는 세그먼트 디스크립터(3)의 10h 번지의 세그먼트를 지정하게 되므로 그 10h번지에 기록되어 있는 페이지 어드레스(3a)에서 1h(0001B)가 출력되고, 베이스 어드레서(3b)에서 1000h(0001 0000 0000 0000 B)가 출력되어 합산기(4)에 인가된다. 이에따라, 상기 마이크로 프로세서(1)에서 출력된 로지컬 어드레서 신호중 로지컬 어드레스 신호(LAB0-11)에 해당되는 신호 100h에 세그먼트 디스클립터(3)의 베이스 어드레서(3b)에서 출력된 페이지 어드레스신호 1h가 다시 합해저 11100h의 어드레스 신호로 변환되며, 이와같이 합산기(4)에서 20비트의 피지컬 어드레스 신호로 합산된 신호 11100h는 외부메모리 인가되어 그의 번지를 지정하게 된다. 즉, 피지컬 어드레스 신호 11100h는 64키로 바이트 블록의 페이지 1에서 베이스 어드레스가 1000h이고 오프세트(off set)가 100h인 메모리를 지정하게 된다.Therefore, when a logical address signal of 5100h output from the microprocessor (1), the logical address sinhojung logical address signals (LAB 22 - 15) to specify a 5-address of the particular register 2 by a 5h (0101B) corresponding to Therefore, a 10h 8-bit segment address signal of the segment address 2b recorded at address 5 is outputted, and the 10h segment address signal is designated at the 10h address of the segment descriptor 3 because it designates a segment of the 10h address. 1h (0001B) is output from the page address 3a, and 1000h (0001 0000 0000 0000 B) is output from the base addresser 3b and applied to the summer 4. Yiettara, the logical addressable sinhojung logical address signals (LAB 0 - 11) received from the microprocessor (1) a page address signal output from the base addressable (3b) of the segment display clip emitter 3 to the signal 100h corresponding to 1h is further converted into an address signal of the bottom 11100h, and the signal 11100h, which is added to the 20-bit physical address signal in the summer 4, is applied to an external memory to designate its address. That is, the physical address signal 11100h designates a memory having a base address of 1000h and an offset of 100h in page 1 of the byte block with 64 keys.

이상에서와 같이 마이크로 프로세서(1)에서 출력되는 로지컬 어드레스 신호와합산기(4)에서 출력되는 피지컬 어드레스 신호의 관계는 특정레지스터(2)의 값이나 세그먼트 디스크립터(3)의 값에 의해 변화될 수 있음을 알 수 있으며, 이는 곧 모든 피지컬 어드레스에 해당되는 메모리에 프로그램이나 데이타가 있을때, 이들의 처리는 특성레지스터(2)와 세그먼트 디스크립터(3)의 값만 바꾸어주면 가능함을 나타낸다.As described above, the relationship between the logical address signal output from the microprocessor 1 and the physical address signal output from the summer 4 may be changed by the value of the specific register 2 or the value of the segment descriptor 3. This indicates that when there are programs or data in the memory corresponding to all physical addresses, their processing can be performed only by changing the values of the property registers 2 and the segment descriptors 3.

다음은 마이크로 프로세서(1)에서 6300h 번지에 데이타를 쓰는 경우를 예로들어 메모리의 보호관점에 대하여 설명한다. 단, 이때 특정레지스터(2)의 6번지에 기록된 특성코드(2a)의 값이 80h이고, 세그먼트 어드레스(2b)의 값이 11h이며, 이 11h 번지에 해당되는 세그먼트 디스크립터(3)의 값이 03000100h라고 가정한다.Next, the protection aspect of the memory will be described taking the case where data is written to the address 6300h in the microprocessor 1 as an example. However, at this time, the value of the characteristic code 2a recorded at address 6 of the specific register 2 is 80h, the value of the segment address 2b is 11h, and the value of the segment descriptor 3 corresponding to the address 11h is Assume 03000100h.

따라서, 마이크로 프로세서(1)에서 6300h의 로지컬 어드레스 신호가 지정되므로, 그 6번지에 기록되어 있는 특성코드(2a)에서 80h의 특성코드 신호가 출력되고, 세그먼트 어드레스(2b)에서 11h의 세그먼트 어드레스 신호가 출력되며, 이때 상기 특성코드 (2a)에서 출력된 80h의 특성코드 신호는 특성위반 검출회로(5)에서 검출된 후 노아게이트(7)를 마이크로 프로세서(1)에 에러 인터럽트 신호

Figure kpo00009
로 인가되므로 그 마이크 프로세서(1)는 외부 메모리에 데이타를 기록할 수 없게된다.Therefore, since the 6300h logical address signal is designated by the microprocessor 1, the characteristic code signal of 80h is output from the characteristic code 2a recorded at the address 6, and the segment address signal of 11h from the segment address 2b. The characteristic code signal of 80h output from the characteristic code (2a) is detected by the characteristic violation detection circuit (5), and then the error gate signal is transmitted to the microprocessor (1).
Figure kpo00009
The microphone processor 1 cannot write data to the external memory because it is applied.

그리고, 이때 상기 특성코드(2a)의 특성코드신호가 00h이어서 쓰기위반이 없는 경우라고 가정하면, 상기와 같이 특정레지스터(2)의 세그먼트 어드레스(2b)에서 11h의 세그먼트 어드레스 신호가 출력되어 세그먼트 디스크립터(3)의 번지를 지정하게되므로, 세그먼트 디스크립터(3)의 페이지 어드레스(3a)에서는 0h의 페이지 어드레스 신호가 출력되고, 베이스 어드레스(3b)에서는 3000h의 베이스 어드레스 신호가 출력되며, 최대제한 범위코드(3c)에서는 100h의 제한범위 코드신호가 출력된다.In this case, when the characteristic code signal of the characteristic code 2a is 00h and there is no writing violation, the segment address signal of 11h is output from the segment address 2b of the specific register 2 as described above, and the segment descriptor is outputted. Since the address of (3) is specified, a page address signal of 0h is output at the page address 3a of the segment descriptor 3, and a base address signal of 3000h is output at the base address 3b, and the maximum limit range code. In (3c), a limited range code signal of 100h is output.

따라서, 상기 마이크로 프로세서(1)에서 출력된 로지컬 어드레스 신호중 로지컬 어드레스 신호(LAB0-11)에 해당하는 300h 신호가 1000h의 제한범위 코드신호를 초과하게 되고, 이를 세그먼트 영역위반 검출회로(6)에서 검출한 후 노아게이트(7)를 통해 마이크로 프로세서(1)에 에러 인터럽트신호

Figure kpo00010
로 인가되므로 외부메모리 번지의 지정을 할 수 없게된다.Accordingly, the logical address sinhojung logical address signals (LAB 0 - 11) received from the microprocessor (1) is 300h signal corresponding to and which exceeds the limit code signal 1000h, it in the segment region violation detection circuit 6 Error detection signal to the microprocessor 1 through the noah gate 7 after detection
Figure kpo00010
Since it is applied as, the external memory address cannot be designated.

제4도는 제3도의 일실시 상세블록도로서, 마이크로 프로세서(1)에서 출력되는 로지컬 어드레스신호(LAB0-15)중 로지컬 어드레스신호(LAB12-15)로 특성레지스터 (2)의 어드레스를 지정하게 하고, 이 특성레지스터(2)의 세그먼트 어드레스(2b)에서 출력되는 세그먼트 어드레스신호(SAB0-7)로 세그먼트 디스크립터(3)의 어드레스를 지정하게 하며, 이 세그먼트 디스크립터(3)의 페이지 어드레스(3a)에서 출력되는 페이지 베이스 어드레스신호(PG0-3)와 베이스 어드레스(3b)에서 출력되는 베이스 어드레스신호(BAB0-15)를 합산기(4)에서 상기 로지컬 어드레스신호(LAB0-19)로 변환한 후 외부 메모리의 어드레스를 지정하게 한다. 한편 특성레지스터(2)의 특성코드(2a)에서 출력되는 특성코드신호(CC0-7)를 프로세서 제어신호(PS)에 의해 특성위반 검출회로 (5)에서 검출하고, 상기 로지컬 어드레스신호(LAB0-15)가 세그먼트 디스크립터(3)의 최대 제한범위코드(3)에서 출력되는 제한범위 코드신호(BAB0-15)에 위반되는가를 세그먼트 위반검출회로(6)로 검출한 후 다입력 노아게이트(7)를 통해 상기 마이크로 프로세서(1)에 에러 인터럽트신호

Figure kpo00011
로 인가하게 하며 또한 상기 특성위반 검출회로(5) 및 세그먼트 영역위반 검출회로(6)의 위반검출신호를 에러리드신호
Figure kpo00012
에 의해 버퍼(8)를 통해 마이크로 프로세서(1)의 데이타 버스(DB0-7)로 인가하게 하고, 또한 마이크로 프로세서(1)의 데이타 신호를 엠엠유(MMU) 라이트신호
Figure kpo00013
에 의해 버퍼(9)를 통해 특성 레지스터(2)의 특성코드신호(CC0-7) 및 세그먼트 어드레스신호 (SAB0-7)와, 세그먼트 디스크립터(3)의 페이지 어드레스신호(PG0-3) 및 베이스 어드레스신호(BAB0-15), 제한범위 코드신호(OAB0-11)를 엠엠유리드신호
Figure kpo00014
에 의해 멀티플렉서(10)를 통해 마이크로 프로세서(1)에서 읽을 수 있게 한다. 또한 마이크로 프로세서(1)에서 외부라이트(EXWR)에 의해 버퍼(11)를 통해 외부메모리에 데이타를 기록할 수 있게하고, 외부리드신호
Figure kpo00015
에 의해 외부메모리의 데이타를 버퍼 (11)를 통해 읽을 수 있게한다.Specifies the address of a characteristic register (2), the fourth turning third degree exemplary detail a block diagram of a microprocessor 1, a logical address signal that is output from-logical address signal (15 LAB 12) of (LAB 0 15) that is, the attribute register (2) segment address output from the segment address (2b) signal (SAB 0 - 7) of the page address and to specify the address of a segment descriptor (3), the segment descriptor (3) ( 3a) page base address signal (PG 0 output from said logical address signals a 15) from the summator (4) (LAB 0 - - 3) and the base address signal (BAB 0 outputted from the base address (3b) 19) After converting to, specify the address of the external memory. The characteristic features output from the attribute code (2a) of the register (2) code signal (CC 0 - 7) for the detection in a characteristic violation detection circuit 5 by the processor control signal (PS), and a logical address signal (LAB 0 is input NOR gate after detecting 15) segment violation detection circuit 6 for is contrary to - 15), the segment descriptor (3) up to the limit code (3) limits the code signal (BAB 0 output from the Error interrupt signal to the microprocessor (1) through (7)
Figure kpo00011
And the violation detection signal of the characteristic violation detection circuit 5 and the segment region violation detection circuit 6 to the error lead signal.
Figure kpo00012
Through a buffer 8 by the data bus of the microprocessor (1) to be applied (DB 0 7), and also the MMC data signal of the microprocessor (1) u (MMU) light signal
Figure kpo00013
Attribute code signal attribute register (2) through a buffer (9) by (CC 0 - 7) and the segment address signal (SAB 0 - 7), and a page address signal of the segment descriptor (3) (PG 0 - 3 ) and a base address signal (BAB 0 - 15), the limit code signal - the (OAB 0 11) MMC Ulead signal
Figure kpo00014
To allow the microprocessor 1 to read through the multiplexer 10. In addition, the microprocessor 1 allows data to be written to the external memory through the buffer 11 by an external write signal EXWR, and an external read signal.
Figure kpo00015
By this, data of the external memory can be read through the buffer 11.

그리고, 파워온리세트신호

Figure kpo00016
또는 부트롬선택신호
Figure kpo00017
에 의해 부트롬(12)을 동작시켜 시스템의 초기치를 결정할 수 있게 한 것으로, 이의 동작과정은 제3도의 동작과정과 동일하다.And power-on reset signal
Figure kpo00016
Or bootrom selection signal
Figure kpo00017
By operating the boot ROM 12 to determine the initial value of the system, its operation is the same as the operation of FIG.

전원이 인가되어 파워온리세트신호

Figure kpo00018
가 플립플롭(13)의 프리세트단자
Figure kpo00019
에 인가되면 그의 출력단자
Figure kpo00020
에 저전위 신호가 출력되어 부트롬(12)의 인에블단자
Figure kpo00021
에 인가되므로그 부트롬(12)의 내용을 읽어 시스템의 각 초기치를 결정함과 아울러 특성레지스터(2) 및 세그먼트 디스크립터(3)의 초기치를 결정하게 되고, 이후 부트오프 명령신호
Figure kpo00022
가 출력되어 플립플롭(13)의 클리어단자
Figure kpo00023
에 인가되면 그의 출력단자
Figure kpo00024
에 고전위 신호가 출력되므로 부트롬(12)은 그의 구동을 중지하게 된다. 이때 플립플롭(13)의 출력단자
Figure kpo00025
에서 출력되는 고전위 신호를 이용하여 마이크로 프로세서(1)에 리세트를 걸어주게 되면, 이때부터 마이크로 프로세서(1)는 로지컬 어드레스신호 (LAB0-15)를 출력하여 정상적인 프로그램 수행이 가능하게 된다.Power-On Reset Signal with Power Supply
Figure kpo00018
Preset terminal of the flip-flop 13
Figure kpo00019
When applied to his output terminal
Figure kpo00020
Low potential signal is output to enable terminal of bootrom 12
Figure kpo00021
Since the initial value of the system is determined by reading the contents of the boot ROM 12, the initial values of the property registers 2 and the segment descriptors 3 are determined.
Figure kpo00022
Is output to the clear terminal of the flip-flop 13
Figure kpo00023
When applied to his output terminal
Figure kpo00024
Since the high potential signal is output to the boot ROM 12, the driving thereof is stopped. At this time, the output terminal of the flip-flop (13)
Figure kpo00025
If granted by the high potential signal outputted from the walking reset the microprocessor (1), wherein the microprocessor (1) from the logical address signals, it is possible to perform a normal program and outputting (LAB 0 15).

즉, 마이크로 프로세서(1)에서 로지컬 어드레스신호(LAB0-15)가 출력되면, 그 로지컬 어드레스 신호중 로지컬 어드레스신호(LAB12-15)는 특정레지스터(2)의 번지를 지정하게 되므로, 그 지정된 번지에 기록된 특정레지스터(2)의 세그먼트 어드레스신호(SAB0-7)가 출력되어 세그먼트 디스크립터(3)의 번지를 지정하게 되고, 이에따라 그 지정된 번지에 기억된 세그먼트 디스크립터(3)의 페이지 어드레스신호(PG0-3)와 베이스 어드레스신호(BAB0-15)가 출력되고, 이 신호는 합산기(4)에서 상기 로지컬 어드레스신호(LAB0-11)와 합해져 20비트의 피지컬 어드레스신호(PAB0-19)로 변환된 후 외부 메모리의 어드레스를 지정하게 되고, 이때 특성레지스터(2)에서 출력되는 특성크드신호(CC0-7) 및 세그먼트 어드레스신호(SAB0-7)와, 세그먼트 디스크립터(3)에서 출력되는 페이지 어드레스신호(PG0-3) 및 베이스 어드레스신호(BAB0-15) 제한범위 코드신호(OAB0-11)를 엠엠유리드

Figure kpo00026
에 의해 멀리플렉서(10)를 통해 마이크로 프로세서(1)에서 읽을 수 있게된다.That is, the logical address signal (LAB 0 - 15) from the microprocessor (1) if the output, that the logical address sinhojung logical address signals (LAB 12 - 15) is therefore to specify an address of a specific register (2), the specified address The segment address signals SAB 0-7 of the specific register 2 recorded in " 1 " are output to designate the address of the segment descriptor 3, and accordingly the page address signal of the segment descriptor 3 stored at the designated address. PG 0 - 3) and the base address signal (BAB 0 - 15) is output, the signal adder 4 in the logical address signal (LAB 0 - 11) and haphaejyeo the 20-bit physical address signal (PAB 0 - 19 is to specify the address of the external memory after a) convert, wherein characteristic features output from the register 2 keudeu signal (CC 0 - 7) and the segment address signal (SAB 0 - 7), and a segment descriptor (3) in Output page address signal (PG 0 - 3) and the base address signal (BAB 0 - 15) limits the code signal - the (OAB 0 11) MMC Ulead
Figure kpo00026
This allows the microprocessor 1 to read through the multiplexer 10.

또한, 이때 특성레지스터(2)에서 출력되는 특성코드신호(CC0-7)를 특성위반 검출회로(5)에서 검출하고, 상기 로지컬 어드레스신호(LAB0-11)가 세그먼트 디스크립터(3)에서 출력되는 제한범위 코드신호(OAB0-11)에 위반되는가를 세그먼트 영역위반 검출회로(6)에서 검출한 후 노아게이트(7)를 통해 마이크로 프로세서(1)에 에러인터럽트신호

Figure kpo00027
를 인가하면, 마이크로 프로세서(1)는 인터럽트 상태로 된 후 에러리드신호
Figure kpo00028
에 의해 상기 특성위반 검출회로(5) 및 세그먼트 영역위반 검출회로 (6)의 에러위반신호를 버퍼(8)를 통해 읽어 판별하게 된다.Further, at this time attribute register (2) attribute code signal being output on the output from a segment descriptor (3) (CC 0 - - 7) a characteristic violation detection circuit is detected in (5), wherein the logical address signals (11 LAB 0) limit code signal (OAB 0 - 11) that are then detected in the segment region violation detection circuit 6 is a violation of the error to the microprocessor 1 through the NOR gate 7, an interrupt signal
Figure kpo00027
If the microprocessor 1 is applied, the microprocessor 1 enters into an interrupt state and then an error read signal.
Figure kpo00028
By this, the error violation signal of the characteristic violation detection circuit 5 and the segment region violation detection circuit 6 is read through the buffer 8 and discriminated.

또한 상기와 같이 합산기(4)에서 출력된 피지컬 어드레스신호(PAB0-19)로 외부메모리의 어드레스를 지정한 후, 그 번지에 외부 라이트신호(EXWR)에 의해서는 마이크로 프로세서(1)에서 버퍼(11)를 통해 데이타를 기록하게 되고 반대로 외부리드신호

Figure kpo00029
에 의해서는 그 지정된 번지에 기록된 데이타를 마이크로 프로세서(1)에서 버퍼(11)를 통해 읽게된다.In addition, the summer 4, a physical address signal output from the as above-buffer from a microprocessor (1) by the (PAB 0 19) to specify the address of the external memory, the external write signal (EXWR) to the address ( 11) Data is recorded via the external lead signal.
Figure kpo00029
By reading the data recorded at the designated address from the microprocessor (1) through the buffer (11).

그리고, 마이크로프로세서(1)에서 특성레지스터(2) 및 세그먼트 디스크립터 (3)에 데이타를 기록하는 경우에는 특성코드 선택신호

Figure kpo00030
또는 세그먼트 선택신호
Figure kpo00031
로 특성레지스터(2) 또는 세그먼트 디스크립터(3)를 선택한 후 엠엠유 라이트신호
Figure kpo00032
에 의해 버퍼(9)를 통해 그 특성레지스터(2) 또는 세그먼트 디스크립터(3)의 지정된 번지에 데에타를 기록하게 된다.When the data is recorded in the characteristic register 2 and the segment descriptor 3 in the microprocessor 1, the characteristic code selection signal
Figure kpo00030
Or segment selection signal
Figure kpo00031
After selecting the characteristic register (2) or segment descriptor (3),
Figure kpo00032
By means of the buffer 9, the data is recorded at the designated address of the property register 2 or the segment descriptor 3.

이상에서와 같이 본 발명은 특정레지스터용 메모리 및 세그먼트 디스크립터용 메모리를 별도로 사용하므로 메모리의 용량크기에 제한을 받지않고 마이크로 프로세서의 최대 메모리 스페이스를 64키로 바이트에서 필요한 양의 크기로 확장시킬 수 있으며, 페이지를 포함한 메모리분할 방식으로 메모리를 확장시키게 되므로 각 메모리 세그먼트를 보호할 수 있게되는 이점이 있게된다.As described above, since the present invention uses a specific register memory and a segment descriptor memory separately, the maximum memory space of the microprocessor can be extended from 64 kilobytes to the required amount without being limited by the capacity of the memory. Since memory is expanded in a memory partitioning scheme including pages, there is an advantage of protecting each memory segment.

Claims (3)

마이크로 프로세서(1)에서 출력되는 로지컬 어드레스신호(LAB0-15)중 신호( LAB12-15)로 8비트의 특성코드(2a) 및 세그먼트 어드레스(2b)로 구성된 특성레지스터(2)의 어드레서를 지정하고, 이 특정레지스터(2)의 세그먼트 어드레스신호 (SAB0-7)로 4비트의 페이지 어드레스(3a) 및 16비트의 베이스 어드레스(3b), 12비트의 최대제한 범위코드(3c)로 구성된 세그먼트 디스크립터(3)의 어드레스를 지정하며, 이 세그먼트 디스크립터(3)의 페이지 어드레스신호(PG0-3)와 베이스 어드레스신호(BAB0-15)를 합산기(4)에서 상기 로지컬 어드레스신호(LAB0-11)와 합해 20비트의 피지컬 어드레스신호(PAB0-19)로 변환한 후 외부메모리의 어드레스를 지정하게 함을 특징으로 하는 메모리를 이용한 메모리 스페이스 확장방식.Logical address signals output from the microprocessor (1) addressable in the characteristics of the 8-bit code (2a), and consisting of a segment address (2b) attribute register (2) (LAB 0 - - 15) of the signal (15 LAB 12) to the page of a four-bit address (3a) and a 16-bit base address (3b), a 12-bit up to the limit code (3c) - the specified and, if a particular register (2) segment address signal (7 SAB 0) of specifies the address of the segment descriptor (3) is configured, the page address signal (PG 0 - 3) of the segment descriptor (3) and the base address signal from a summer (4) for (BAB 0 15) the logical address signals ( LAB 0 - 11) combined with the physical address signal (PAB 0 in 20-bit - and then converted to 19) memory space expansion method using a memory, it characterized in that it specifies the address of the external memory. 제1항에 있어서, 특정레지스터(2)의 특성코드신호(CC0-7)를 특성위반 검출회로(5)에서 검출하여 마이크로 프로세서(1)에 에러 인터럽트
Figure kpo00033
로 인가하게 함을 특징으로 하는 메모리를 이용한 메모리 스페이스 확장방식
The method of claim 1, wherein the characteristics of a particular register (2) code signal (CC 0 - 7) are detected in the characteristic violation detection circuit 5, an error interrupt to the microprocessor (1)
Figure kpo00033
Memory space expansion method using the memory characterized in that
제1항에 있어서, 마이크로 프로세서(1)에서 출력되는 로지컬 어드레스신호 (LAB0-11)가 세그먼트 디스크립터(3)에서 출력되는 제한범위 코드신호(OAB0-11)에 위반되는가를 세그먼트 영역위반 검출회로(6)에서 검출하여 마이크로 프로세서(1)에 에러 인터립트신호
Figure kpo00034
로 인가하게 함을 특징으로 하는 메모리를 이용한 메모리 스페이스 확장방식.
According to claim 1, wherein the microprocessor (1) the output is a logical address signal (LAB 0 - 11) in a segment descriptor (3) limits the code signal (OAB 0 - 11) that is output from the violation happens the segment area violation detected in Error Interrupt Signal Detected by the Circuit 6 to the Microprocessor 1
Figure kpo00034
Memory space expansion method using a memory, characterized in that the application.
KR1019850009943A 1985-12-28 1985-12-28 Memory space mapping system KR890000805B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1019850009943A KR890000805B1 (en) 1985-12-28 1985-12-28 Memory space mapping system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1019850009943A KR890000805B1 (en) 1985-12-28 1985-12-28 Memory space mapping system

Publications (2)

Publication Number Publication Date
KR870006472A KR870006472A (en) 1987-07-11
KR890000805B1 true KR890000805B1 (en) 1989-04-07

Family

ID=19244486

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1019850009943A KR890000805B1 (en) 1985-12-28 1985-12-28 Memory space mapping system

Country Status (1)

Country Link
KR (1) KR890000805B1 (en)

Also Published As

Publication number Publication date
KR870006472A (en) 1987-07-11

Similar Documents

Publication Publication Date Title
US4145738A (en) Plural virtual address space processing system
US4777589A (en) Direct input/output in a virtual memory system
JP3670041B2 (en) Nonvolatile memory chip enable encoding method, computer system, and memory controller
JPH11161547A (en) Storage device for data processor and method for accessing storage place
WO2002052416A1 (en) Flash memory system
US4613953A (en) Paging register for memory devices
JP2001243110A (en) Memory controller, flash memory system and access method to flash memory
KR890002469B1 (en) Memory paging system in a micro computer
JPH06332806A (en) Storage system with flash memory as storage medium and control method therefor
EP0438808A2 (en) Microprocessor incorporating cache memory
KR920001281B1 (en) Information processing apparatus
JP3209013B2 (en) System and method for protecting address space
US7343469B1 (en) Remapping I/O device addresses into high memory using GART
US4805092A (en) Electronic circuit for extending the addressing capacity of a processor
US5339402A (en) System for connecting an IC memory card to a central processing unit of a computer
KR19990036893A (en) Processor Architecture for Execution of Multiple Addressing Modes and Its Design Method
EP0214490A2 (en) Data processing apparatus with a virtual storage address boundary check circuit
US5127096A (en) Information processor operative both in direct mapping and in bank mapping, and the method of switching the mapping schemes
US5329631A (en) Microprocessor system for effectively using a part of an address space
WO1985002040A1 (en) Microcomputer having an internal address mapper
JPH11149372A (en) Forced page zero paging system for micro controller using data ram
KR890000805B1 (en) Memory space mapping system
US4089051A (en) Alternative direct and indirect addressing
JP2002196977A (en) Memory controller, flash memory system with memory controller, and control method for flash memory
US5247631A (en) Programmable control of EMS page register addresses

Legal Events

Date Code Title Description
A201 Request for examination
N231 Notification of change of applicant
G160 Decision to publish patent application
E701 Decision to grant or registration of patent right
GRNT Written decision to grant
FPAY Annual fee payment

Payment date: 19930218

Year of fee payment: 6

LAPS Lapse due to unpaid annual fee