116 lines
3.0 KiB
VHDL
116 lines
3.0 KiB
VHDL
-- Copyright (C) 2020 Intel Corporation. All rights reserved.
|
|
-- Your use of Intel Corporation's design tools, logic functions
|
|
-- and other software and tools, and any partner logic
|
|
-- functions, and any output files from any of the foregoing
|
|
-- (including device programming or simulation files), and any
|
|
-- associated documentation or information are expressly subject
|
|
-- to the terms and conditions of the Intel Program License
|
|
-- Subscription Agreement, the Intel Quartus Prime License Agreement,
|
|
-- the Intel FPGA IP License Agreement, or other applicable license
|
|
-- agreement, including, without limitation, that your use is for
|
|
-- the sole purpose of programming logic devices manufactured by
|
|
-- Intel and sold by Intel or its authorized distributors. Please
|
|
-- refer to the applicable agreement for further details, at
|
|
-- https://fpgasoftware.intel.com/eula.
|
|
|
|
-- VENDOR "Altera"
|
|
-- PROGRAM "Quartus Prime"
|
|
-- VERSION "Version 20.1.1 Build 720 11/11/2020 SJ Lite Edition"
|
|
|
|
-- DATE "02/18/2023 14:55:13"
|
|
|
|
--
|
|
-- Device: Altera EP4CE115F29C7 Package FBGA780
|
|
--
|
|
|
|
--
|
|
-- This VHDL file should be used for ModelSim-Altera (VHDL) only
|
|
--
|
|
|
|
LIBRARY CYCLONEIVE;
|
|
LIBRARY IEEE;
|
|
USE CYCLONEIVE.CYCLONEIVE_COMPONENTS.ALL;
|
|
USE IEEE.STD_LOGIC_1164.ALL;
|
|
|
|
ENTITY GateDemo IS
|
|
PORT (
|
|
LEDR : OUT std_logic_vector(0 DOWNTO 0);
|
|
SW : IN std_logic_vector(1 DOWNTO 0)
|
|
);
|
|
END GateDemo;
|
|
|
|
ARCHITECTURE structure OF GateDemo IS
|
|
SIGNAL gnd : std_logic := '0';
|
|
SIGNAL vcc : std_logic := '1';
|
|
SIGNAL unknown : std_logic := 'X';
|
|
SIGNAL devoe : std_logic := '1';
|
|
SIGNAL devclrn : std_logic := '1';
|
|
SIGNAL devpor : std_logic := '1';
|
|
SIGNAL ww_devoe : std_logic;
|
|
SIGNAL ww_devclrn : std_logic;
|
|
SIGNAL ww_devpor : std_logic;
|
|
SIGNAL ww_LEDR : std_logic_vector(0 DOWNTO 0);
|
|
SIGNAL ww_SW : std_logic_vector(1 DOWNTO 0);
|
|
SIGNAL \LEDR[0]~output_o\ : std_logic;
|
|
SIGNAL \SW[1]~input_o\ : std_logic;
|
|
SIGNAL \SW[0]~input_o\ : std_logic;
|
|
SIGNAL \inst~combout\ : std_logic;
|
|
|
|
BEGIN
|
|
|
|
LEDR <= ww_LEDR;
|
|
ww_SW <= SW;
|
|
ww_devoe <= devoe;
|
|
ww_devclrn <= devclrn;
|
|
ww_devpor <= devpor;
|
|
|
|
\LEDR[0]~output\ : cycloneive_io_obuf
|
|
-- pragma translate_off
|
|
GENERIC MAP (
|
|
bus_hold => "false",
|
|
open_drain_output => "false")
|
|
-- pragma translate_on
|
|
PORT MAP (
|
|
i => \inst~combout\,
|
|
devoe => ww_devoe,
|
|
o => \LEDR[0]~output_o\);
|
|
|
|
\SW[1]~input\ : cycloneive_io_ibuf
|
|
-- pragma translate_off
|
|
GENERIC MAP (
|
|
bus_hold => "false",
|
|
simulate_z_as => "z")
|
|
-- pragma translate_on
|
|
PORT MAP (
|
|
i => ww_SW(1),
|
|
o => \SW[1]~input_o\);
|
|
|
|
\SW[0]~input\ : cycloneive_io_ibuf
|
|
-- pragma translate_off
|
|
GENERIC MAP (
|
|
bus_hold => "false",
|
|
simulate_z_as => "z")
|
|
-- pragma translate_on
|
|
PORT MAP (
|
|
i => ww_SW(0),
|
|
o => \SW[0]~input_o\);
|
|
|
|
inst : cycloneive_lcell_comb
|
|
-- Equation(s):
|
|
-- \inst~combout\ = (\SW[1]~input_o\ & \SW[0]~input_o\)
|
|
|
|
-- pragma translate_off
|
|
GENERIC MAP (
|
|
lut_mask => "1000100010001000",
|
|
sum_lutc_input => "datac")
|
|
-- pragma translate_on
|
|
PORT MAP (
|
|
dataa => \SW[1]~input_o\,
|
|
datab => \SW[0]~input_o\,
|
|
combout => \inst~combout\);
|
|
|
|
ww_LEDR(0) <= \LEDR[0]~output_o\;
|
|
END structure;
|
|
|
|
|