Пример #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], )))
Пример #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],)))
Пример #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, )))
Пример #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,)))