@ -158,8 +158,7 @@ begin
has_dram: if USE_LITEDRAM generate
has_dram: if USE_LITEDRAM generate
signal dram_init_done : std_ulogic;
signal dram_init_done : std_ulogic;
signal dram_init_error : std_ulogic;
signal dram_init_error : std_ulogic;
signal soc_rst_0 : std_ulogic;
signal dram_sys_rst : std_ulogic;
signal soc_rst_1 : std_ulogic;
begin
begin
-- Eventually dig out the frequency from the generator
-- Eventually dig out the frequency from the generator
@ -168,15 +167,17 @@ begin
reset_controller: entity work.soc_reset
reset_controller: entity work.soc_reset
generic map(
generic map(
RESET_LOW => RESET_LOW
RESET_LOW => RESET_LOW,
PLL_RESET_BITS => 18,
SOC_RESET_BITS => 1
)
)
port map(
port map(
ext_clk => ext_clk,
ext_clk => ext_clk,
pll_clk => system_clk,
pll_clk => system_clk,
pll_locked_in => system_clk_locked,
pll_locked_in => '1',
ext_rst_in => ext_rst,
ext_rst_in => ext_rst,
pll_rst_out => pll_rst,
pll_rst_out => pll_rst,
rst_out => soc_rst_0
rst_out => open
);
);
dram: entity work.litedram_wrapper
dram: entity work.litedram_wrapper
@ -188,7 +189,7 @@ begin
clk_in => ext_clk,
clk_in => ext_clk,
rst => pll_rst,
rst => pll_rst,
system_clk => system_clk,
system_clk => system_clk,
system_reset => soc_rst_1,
system_reset => soc_rst,
core_alt_reset => core_alt_reset,
core_alt_reset => core_alt_reset,
pll_locked => system_clk_locked,
pll_locked => system_clk_locked,
@ -223,7 +224,6 @@ begin
led0_b_pwm <= not dram_init_done;
led0_b_pwm <= not dram_init_done;
led0_r_pwm <= dram_init_error;
led0_r_pwm <= dram_init_error;
led0_g_pwm <= dram_init_done and not dram_init_error;
led0_g_pwm <= dram_init_done and not dram_init_error;
soc_rst <= soc_rst_0 or soc_rst_1;
end generate;
end generate;