X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=src%2Fbsv%2Fperipheral_gen%2Fsdram.py;h=58e7c027f2ab3157092f6afcf8c4b45113f2353f;hb=5341c63c67a38fdad72c717ac8584ff31f024b16;hp=79a9741f9f86a4b878baea62eaca750ae60f162d;hpb=38856850bbd0a2b4d66b73f5cb5751863c04046f;p=pinmux.git diff --git a/src/bsv/peripheral_gen/sdram.py b/src/bsv/peripheral_gen/sdram.py index 79a9741..58e7c02 100644 --- a/src/bsv/peripheral_gen/sdram.py +++ b/src/bsv/peripheral_gen/sdram.py @@ -18,6 +18,9 @@ class sdram(PBase): return "// (*always_ready*) interface " + \ "Ifc_sdram_out sdr{0}_out;".format(count) + def get_clk_spc(self, typ): + return "clk0, slow_reset" + def get_clock_reset(self, name, count): return "slow_clock, slow_reset" @@ -39,12 +42,12 @@ class sdram(PBase): def _mk_clk_con(self, name, count, ctype): ret = [PBase._mk_clk_con(self, name, count, ctype)] for pname, sz, ptype in [ - ('cs', 6, 'out'), - ('bwe', 4, 'out'), - ('tsiz', 2, 'out'), - ('ad_out', 32, 'out'), - ('ad_in', 32, 'in'), - ('ad_out_en', 32, 'out'), + ('dqm', 8, 'out'), + ('ba', 2, 'out'), + ('ad', 13, 'out'), + ('d_out', 64, 'out'), + ('d_in', 64, 'in'), + ('d_out_en', 64, 'out'), ]: bitspec = "Bit#(%d)" % sz txt = self._mk_clk_vcon(name, count, ctype, ptype, pname, bitspec) @@ -55,14 +58,14 @@ class sdram(PBase): ret = [PBase._mk_pincon(self, name, count, typ)] assert typ == 'fast' # TODO slow? for pname, stype, ptype in [ - ('cs', 'm_FBCSn', 'out'), - ('bwe', 'm_BWEn', 'out'), - ('tsiz', 'm_TSIZ', 'out'), - ('ad_out', 'm_AD', 'out'), - ('ad_in', 'm_din', 'in'), - ('ad_out_en', 'm_OE32n', 'out'), + ('dqm', 'osdr_dqm', 'out'), + ('ba', 'osdr_ba', 'out'), + ('ad', 'osdr_addr', 'out'), + ('d_out', 'osdr_dout', 'out'), + ('d_in', 'ipad_sdr_din', 'in'), + ('d_out_en', 'osdr_den_n', 'out'), ]: ret.append(self._mk_vpincon(name, count, typ, ptype, pname, - "sdram_side.{0}".format(stype))) + "ifc_sdram_out.{0}".format(stype))) return '\n'.join(ret)