본문 바로가기

전공 노트4

캐시 메모리 //Cache The Cache is a place where recently accessed data can be stored so that it can be accessed more quickly next time 현재 사용한 데이터를 임시로 저장하는 공간이며, 다음에 더 빨리 해당 데이터를 찾기 쉽게하기 위한 메모리이다. //Memory Hierarchy Registers L1 Primary Cache L2 Secondary Cache Main Memory Virtual Memory //How to move data between Cache and Memory? 캐시와 메모리 사이에서 데이터를 이동시키는 방법 Cache: Faster, smaller 빠르지만, 용량이 작다. Memory: Slowe.. 2020. 12. 21.
메모리 RAM, ROM //Memory 메모리 종류: RAM, ROM 2가지 1) RAM : Random Access Memory(랜덤 액세스 메모리) *랜덤 액세스: 어느 주소든 동일한 시간에 접근할 수 있음을 나타냄. - Can Read and Write - Data is lost without power - 2 kinds of RAM Static Memory - Do not need to refresh data (리프레시가 필요없는 메모리) Dynamic Memory - Need to refrsh data regulary (주기적인 리프레시가 필요한 메모리) 2) ROM : Read Only Memory(읽기 전용 메모리) - Can generally only Read(Can write in some situations).. 2020. 12. 21.
CPU와 Device사이의 데이터 교환 Lecture11 //Two ways a device can send a message to the CPU 1) continuous Polling from the CPU 2) Interrupt from the Device 장치가 CPU에 정보를 전달하는 방법은 1) CPU로부터의 지속적인 Polling, 2) 장치로부터의 Interrupt 두 가지가 있으며, 두 방법은 각기 다른 장단점을 갖고 있다. //Interrupt configuration 1) Shared Interrupt Request Line(INTR) + One-Time polling(INTA) 2) Shared Interrupt Request Line(INTR) + Daisy Chained Interrupt Acknowledge Line(.. 2020. 12. 16.
마이크로프로세서 Lecture1 마이크로프로세서 - 메인 메모리가 외부에 존재하는 CPU ( 마이크로컨트롤러: 메인 메모리가 내부에 존재하는 CPU) - 어셈블리어를 이용한 프로그램을 통해 제어 ex) MOV R3, #4: R3에 4를 저장 - 구성: Control Unit / Registers / ALU(Arithmetic Logic Unit) / Memory Unit - BUS를 통해 입출력장치들과 연결 - 마이크로프로세서마다 고유의 어셈블리어를 가짐 마이크로프로세서의 성능과 관련된 값 Instruction Count(IC): 과제를 완료하기 위해 필요한 instruction의 수 Cycles Per Instruction(CPI): 한 instruction 당 필요한 cycle의 수 Clock Cycle Time(C.. 2020. 12. 15.