fixed hyperram pin names which was stopping verilator (and pretty much
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sat, 19 Mar 2022 12:37:33 +0000 (12:37 +0000)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sat, 19 Mar 2022 12:37:33 +0000 (12:37 +0000)
everything) from working.  HyperRAMResource had a name "clk" as a pin
which was obviously getting merged with sys_clk, sigh

src/ls2.py

index 4f63cc33ef89b1bae4a92e8ee59f763559228f5d..c664ccc25afc7d64f3a1e75c96b6b1f5fbfdd34d 100644 (file)
@@ -406,7 +406,8 @@ class DDR3SoC(SoC, Elaboratable):
         # Esden, sold by 1bitsquared, only doing one CS_N enable at the
         # moment
         if hyperram_pins is not None:
-            self.hyperram = HyperRAM(io=hyperram_pins, phy_kls=HyperRAMPHY)
+            self.hyperram = HyperRAM(io=hyperram_pins, phy_kls=HyperRAMPHY,
+                                     features={'stall'})
             self._decoder.add(self.hyperram.bus, addr=hyperram_addr)
 
         self.memory_map = self._decoder.bus.memory_map
@@ -618,16 +619,13 @@ if __name__ == "__main__":
     if platform is not None and fpga in ['versa_ecp5']:
         hyperram_ios = HyperRAMResources(cs_n="B1",
                                          dq="D0 D1 D2 D3 D4 D7 D6 D7",
-                                         rwds="B2", rst_n="B3", clk_p="B4",
+                                         rwds="B2", rst_n="B3", ck_p="B4",
                                          attrs=IOStandard("LVCMOS33"))
         self.platform.add_extension(hyperram_ios)
         hyperram_pins = self.platform.request("hyperram")
     else:
         hyperram_pins = HyperRAMPads()
 
-    # broken at the moment
-    hyperram_pins = None
-
     # set up the SOC
     soc = DDR3SoC(fpga=fpga, dram_cls=dram_cls,
                   # check microwatt_soc.h for these