Dokument erweitert
This commit is contained in:
@@ -1,20 +1,14 @@
|
||||
// This file is part of www.nand2tetris.org
|
||||
// and the book "The Elements of Computing Systems"
|
||||
// by Nisan and Schocken, MIT Press.
|
||||
// File name: tools/builtIn/RAM8.hdl
|
||||
|
||||
// File name: tools/builtInChips/RAM8.hdl
|
||||
/**
|
||||
* Memory of 8 registers, each 16-bit wide.
|
||||
* The chip facilitates read and write operations, as follows:
|
||||
* Read: out(t) = RAM8[address(t)](t)
|
||||
* Write: If load(t-1) then RAM8[address(t-1)](t) = in(t-1)
|
||||
* In words: the chip always outputs the value stored at the memory
|
||||
* location specified by address. If load == 1, the in value is loaded
|
||||
* into the memory location specified by address. This value becomes
|
||||
* available through the out output starting from the next time step.
|
||||
* Memory of eight 16-bit registers.
|
||||
* If load is asserted, the value of the register selected by
|
||||
* address is set to in; Otherwise, the value does not change.
|
||||
* The value of the selected register is emitted by out.
|
||||
*/
|
||||
|
||||
CHIP RAM8 {
|
||||
CHIP RAM8 {
|
||||
|
||||
IN in[16], load, address[3];
|
||||
OUT out[16];
|
||||
|
||||
Reference in New Issue
Block a user