---------------------------------------------------------------------------- -- top.vhd -- MicroZed EMIO Test -- Version 1.0 -- -- Copyright (C) 2020 H.Poetzl -- -- This program is free software: you can redistribute it and/or -- modify it under the terms of the GNU General Public License -- as published by the Free Software Foundation, either version -- 2 of the License, or (at your option) any later version. -- -- Vivado 2020.1: -- mkdir -p build.vivado -- (cd build.vivado && vivado -mode tcl -source ../vivado.tcl) ---------------------------------------------------------------------------- library IEEE; use IEEE.std_logic_1164.ALL; use IEEE.numeric_std.ALL; library unisim; use unisim.VCOMPONENTS.ALL; use work.vivado_pkg.ALL; -- Vivado Attributes entity top is end entity top; architecture RTL of top is -------------------------------------------------------------------- -- PS7 EMIO GPIO Signals -------------------------------------------------------------------- signal emio_gpio_i : std_logic_vector(63 downto 0); signal emio_gpio_o : std_logic_vector(63 downto 0); signal emio_gpio_t_n : std_logic_vector(63 downto 0); begin -------------------------------------------------------------------- -- PS7 Interface -------------------------------------------------------------------- ps7_stub_inst : entity work.ps7_stub port map ( emio_gpio_i => emio_gpio_i, emio_gpio_o => emio_gpio_o, emio_gpio_t_n => emio_gpio_t_n); emio_gpio_i(0) <= '1'; emio_gpio_i(1) <= emio_gpio_o(2); emio_gpio_i(2) <= emio_gpio_o(0); emio_gpio_o(3) <= emio_gpio_o(4); end RTL;