Tutorial #1:
-----------
Product Category: All
Family: Spartan3E
Device: XC3S500E
Package: FG320
Speed: -4
------------
[ and_gate.vhd ]
library IEEE;
use IEEE.STD_LOGIC_1164.ALL;
entity and_gate is
Port ( a : in STD_LOGIC;
b : in STD_LOGIC;
c : out STD_LOGIC);
end and_gate;
architecture Behavioral of and_gate is
begin
c <= a and b;
end Behavioral;
------------
[ and_gate_cf.ucf ]
# switch 0
NET "a" LOC = "L13" | IOSTANDARD = LVTTL | PULLUP ;
# switch 1
NET "b" LOC = "L14" | IOSTANDARD = LVTTL | PULLUP ;
# led 0
NET "c" LOC = "F12" | IOSTANDARD = LVTTL | SLEW = SLOW | DRIVE = 8 ;
------------