add rst0 to sdram
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Thu, 2 Aug 2018 11:31:32 +0000 (12:31 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Thu, 2 Aug 2018 11:31:32 +0000 (12:31 +0100)
src/bsv/bsv_lib/soc_template.bsv
src/bsv/peripheral_gen/sdram.py

index 342a21d5bf608d99a5312a0e9c3ccdf8f92a559e..cd2fcefb7066beb3d48502d4d09aba337fbe83d9 100644 (file)
@@ -110,7 +110,7 @@ package socgen;
     (*synthesize*)
     module mkSoc #(Bit#(`VADDR) reset_vector,
                  Clock slow_clock, Reset slow_reset, Clock uart_clock, 
-                 Reset uart_reset, Clock clk0, Clock tck, Reset trst
+                 Reset uart_reset, Clock clk0, Reset rst0, Clock tck, Reset trst
                  `ifdef PWM_AXI4Lite ,Clock ext_pwm_clock `endif )(Ifc_Soc);
         Clock core_clock <-exposeCurrentClock; // slow peripheral clock
         Reset core_reset <-exposeCurrentReset; // slow peripheral reset
index ce6ba4364e43fd3492b531e64389c13434afa2fa..afc6908ede4b9fbac49f40397ade261c274511f4 100644 (file)
@@ -19,13 +19,13 @@ class sdram(PBase):
                 "Ifc_sdram_out sdr{0}_out;".format(count)
 
     def get_clk_spc(self, typ):
-        return "clk0, slow_reset"
+        return "clk0, rst0"
 
     def get_clock_reset(self, name, count):
         return "slow_clock, slow_reset"
 
     def mkfast_peripheral(self):
-        return "Ifc_sdr_slave sdr{0} <- mksdr_axi4_slave(clk0);"
+        return "Ifc_sdr_slave sdr{0} <- mksdr_axi4_slave(clk0, rst0);"
 
     def _mk_connection(self, name=None, count=0):
         return ["sdr{0}.axi4_slave_sdram",