Exemplo n.º 1
0
def ram64(in_, load, address):
    "Memory of 64 registers, each 16-bit wide."
    rams = tuple(
        ram8(in_, load & select, address[-3:])
        for select in gates.dmux8way(hi, address[:3]))
    return gates.mux8way16(*(rams + (address[:3], )))
Exemplo n.º 2
0
def ram64(in_, load, address):
    "Memory of 64 registers, each 16-bit wide."
    rams = tuple(ram8(in_, load & select, address[-3:])
                 for select in gates.dmux8way(hi, address[:3]))
    return gates.mux8way16(*(rams + (address[:3],)))
Exemplo n.º 3
0
def ram8(in_, load, address):
    "Memory of 8 registers, each 16-bit wide."
    registers = tuple(
        register(in_, load & select) for select in gates.dmux8way(hi, address))
    return gates.mux8way16(*(registers + (address, )))
Exemplo n.º 4
0
def ram8(in_, load, address):
    "Memory of 8 registers, each 16-bit wide."
    registers = tuple(register(in_, load & select)
                      for select in gates.dmux8way(hi, address))
    return gates.mux8way16(*(registers + (address,)))