Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

sram: fix sub-word write

  • Loading branch information...
commit 58f4f78d2c6337017a0da0a32dc85ab68d6cc84c 1 parent 5cde57c
@sbourdeauducq sbourdeauducq authored
Showing with 2 additions and 2 deletions.
  1. +1 −1  milkymist/sram/__init__.py
  2. +1 −1  top.py
View
2  milkymist/sram/__init__.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)
View
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()
Please sign in to comment.
Something went wrong with that request. Please try again.