soc: Work around compile error with ghdl 0.37-dev

The ghdl packaged in Fedora 31 doesn't like a port map of the form
"rst => rst or core_reset", so this works around the problem by
doing the OR in a separate statement.

Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
jtag-port
Paul Mackerras 5 years ago
parent c164a2f4ea
commit 941499133e

@ -74,6 +74,7 @@ architecture behaviour of soc is
-- Syscon signals -- Syscon signals
signal dram_at_0 : std_ulogic; signal dram_at_0 : std_ulogic;
signal core_reset : std_ulogic; signal core_reset : std_ulogic;
signal do_core_reset : std_ulogic;
signal wb_syscon_in : wishbone_master_out; signal wb_syscon_in : wishbone_master_out;
signal wb_syscon_out : wishbone_slave_out; signal wb_syscon_out : wishbone_slave_out;


@ -112,6 +113,7 @@ architecture behaviour of soc is
begin begin


-- Processor core -- Processor core
core_reset <= rst or do_core_reset;
processor: entity work.core processor: entity work.core
generic map( generic map(
SIM => SIM, SIM => SIM,
@ -120,7 +122,7 @@ begin
) )
port map( port map(
clk => system_clk, clk => system_clk,
rst => rst or core_reset, rst => core_reset,
alt_reset => alt_reset, alt_reset => alt_reset,
wishbone_insn_in => wishbone_icore_in, wishbone_insn_in => wishbone_icore_in,
wishbone_insn_out => wishbone_icore_out, wishbone_insn_out => wishbone_icore_out,
@ -254,7 +256,7 @@ begin
wishbone_in => wb_syscon_in, wishbone_in => wb_syscon_in,
wishbone_out => wb_syscon_out, wishbone_out => wb_syscon_out,
dram_at_0 => dram_at_0, dram_at_0 => dram_at_0,
core_reset => core_reset, core_reset => do_core_reset,
soc_reset => open -- XXX TODO soc_reset => open -- XXX TODO
); );



Loading…
Cancel
Save