목록2024/04/30 (3)
코드네임 :
[명령어 실행] MUX 사용하는 이유 : 오는 데이터가 다르면 (0,1) 보낼 때 뭐로 보내야 할지 모르므로 결정해 주는 존개 - Low voltage = 0, High voltage = 1- one wire per bit (라인 하나는 1비트) - 데이터 연산을 해줌- output이 또 input이 되고.. Register : 데이터 저장-> uses Clk (clock signal) to determine when to update the stored value-> (Read) : 항상 읽을 수 있음 (Q값이 계속나옴)-> (Write) : Edge-triggered : Clk가 0에서 1로 바뀔 때 값을 업데이트 (rising edge에서만 값 변경)이거 그런거임.. 그add x10, ..
과제 1. Assembly to C clear1: li x5,0 // i = 0 loop: slli x6,x5,2 // x6 = i * 4 (배열 offset) add x7,x10,x6 // x7 = address of array[i] ( x7 = array[i] ) sw x0,0(x7) // array[i] = 0 addi x5,x5,1 // i += 1 (i++) blt x5,x11,loop // i ⬇️ clear1(int array[], int size){ int i; for (int i = 0; i array[i] =0;} 과제 2. Machine to Assembly# 16진수는 10부터 a# 야 16진수에..