Skip to content
Permalink
Browse files
sram: fix sub-word write
  • Loading branch information
Sebastien Bourdeauducq committed Feb 6, 2012
1 parent 5cde57c commit 58f4f78d2c6337017a0da0a32dc85ab68d6cc84c
Showing with 2 additions and 2 deletions.
  1. +1 −1 milkymist/sram/__init__.py
  2. +1 −1 top.py
@@ -9,7 +9,7 @@ def __init__(self, depth):
def get_fragment(self):
# generate write enable signal
we = Signal(BV(4))
comb = [we[i].eq(self.bus.cyc_i & self.bus.stb_i & self.bus.we_i & self.bus.sel_i[3-i])
comb = [we[i].eq(self.bus.cyc_i & self.bus.stb_i & self.bus.we_i & self.bus.sel_i[i])
for i in range(4)]
# split address
nbits = bits_for(self.depth-1)
2 top.py
@@ -8,7 +8,7 @@
def get():
MHz = 1000000
clk_freq = 80*MHz
sram_size = 4096 # in kilobytes
sram_size = 4096 # in bytes

clkfx_sys = clkfx.ClkFX(50*MHz, clk_freq)
reset0 = m1reset.M1Reset()

0 comments on commit 58f4f78

Please sign in to comment.