Skip to content

Commit

Permalink
simulate keypad_i2c #798
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul Gardner-Stephen committed Apr 4, 2024
1 parent 997bbb2 commit 5695921
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/vhdl/iomapper.vhdl
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down Expand Up @@ -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";
Expand Down

0 comments on commit 5695921

Please sign in to comment.