mirror of
https://github.com/ibm2030/IBM2030.git
synced 2026-01-11 23:52:47 +00:00
40 lines
797 B
VHDL
40 lines
797 B
VHDL
----------------------------------------------------------------------------------
|
|
-- Company:
|
|
-- Engineer:
|
|
--
|
|
-- Create Date: 15:25:51 06/17/2015
|
|
-- Design Name:
|
|
-- Module Name: FLL - Behavioral
|
|
-- Project Name:
|
|
-- Target Devices:
|
|
-- Tool versions:
|
|
-- Description:
|
|
--
|
|
-- Dependencies:
|
|
--
|
|
-- Revision:
|
|
-- Revision 0.01 - File Created
|
|
-- Additional Comments:
|
|
--
|
|
----------------------------------------------------------------------------------
|
|
library IEEE;
|
|
use IEEE.STD_LOGIC_1164.ALL;
|
|
|
|
-- FLL is a level-triggered SR flip-flop
|
|
|
|
entity FLL is port(S,R: in STD_LOGIC; signal Q:out STD_LOGIC); end;
|
|
|
|
architecture slt of FLL is
|
|
begin
|
|
process(S,R)
|
|
begin
|
|
if (S='1') then -- Set takes priority
|
|
Q<='1' after 1ns;
|
|
elsif (R='1') then
|
|
Q<='0' after 1ns;
|
|
end if;
|
|
end process;
|
|
end slt;
|
|
|
|
|