Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
mlouielu committed Jul 3, 2017
1 parent 7930323 commit b8125e0
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions nand2vm/seq/ram.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#
# Copyright (c) 2017 Louie Lu. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
#

from .clock import ClockPhase
from .register import Register
from .. import gate


class RAM8(object):
def __init__(self):
self.a = Register()
self.b = Register()
self.c = Register()
self.d = Register()
self.e = Register()
self.f = Register()
self.g = Register()
self.h = Register()
self.clock = ClockPhase.HIGH

def update(self, soruce: BitArray, load: bool, select: BitArray,
clock: ClockPhase=None) -> BitArray:

0 comments on commit b8125e0

Please sign in to comment.