Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
sram: fix sub-word write
  • Loading branch information
Sebastien Bourdeauducq committed Feb 6, 2012
1 parent 5cde57c commit 58f4f78
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion milkymist/sram/__init__.py
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion top.py
Expand Up @@ -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()
Expand Down

0 comments on commit 58f4f78

Please sign in to comment.