Chap 5 Computer Architecture
筆記:
作業部分:
Memory
CHIP Memory {
IN in[16], load, address[15];
OUT out[16];
PARTS:
DMux ( in=load , sel=address[14] , a=ri , b=si );
RAM16K ( in=in , load=ri , address=address[0..13] , out=or );
Screen ( in=in , load=si , address=address[0..12] , out=os);
Keyboard ( out=ok );
Mux4Way16 ( a=or , b=or , c=os , d=ok , sel=address[13..14] , out=out );
}
Computer
CHIP Computer {
IN reset;
PARTS:
ROM32K(address=pc, out=instruction);
CPU(inM=inM, instruction=instruction, reset=reset, outM=outM, writeM=writeM, addressM=addressM, pc=pc);
Memory(in=outM, load=writeM, address=addressM, out=inM);
}