From 569592166951be358ace3c5adf984734ca618680 Mon Sep 17 00:00:00 2001 From: Paul Gardner-Stephen Date: Fri, 5 Apr 2024 01:08:04 +1030 Subject: [PATCH] simulate keypad_i2c #798 --- src/vhdl/iomapper.vhdl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/vhdl/iomapper.vhdl b/src/vhdl/iomapper.vhdl index d1c0bdd98..b91f705e7 100644 --- a/src/vhdl/iomapper.vhdl +++ b/src/vhdl/iomapper.vhdl @@ -1421,7 +1421,7 @@ begin end generate i2cperiph_megaphone; i2cperiph_keypad: - if target = nexys4 generate + if (target = nexys4) or (target = simulation) generate i2c_keypad: entity work.keypad_i2c generic map ( clock_frequency => cpu_frequency) port map ( @@ -2186,7 +2186,7 @@ begin end if; end if; - if (target = nexys4) then + if (target = nexys4) or (target = simulation) then if address(19 downto 8) = x"D75" then i2ckeypad_cs <= '1'; report "i2ckeypad_cs asserted";