Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create blank.yml #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Create blank.yml #1

wants to merge 1 commit into from

Conversation

ChristyRachel
Copy link
Owner

@ChristyRachel ChristyRachel commented Feb 28, 2020

library IEEE;
use IEEE.STD_LOGIC_1164.ALL;
entity DflipflopIF is
Port ( D : in STD_LOGIC;
CLK : in STD_LOGIC;
QOUT : out STD_LOGIC);
end entity DflipflopIF;

architecture Exp of DflipflopIF is
begin

process (CLK)
begin
if (CLK = '1') then QOUT <= D;
end if;
end process;
end architecture Exp;

library IEEE;
use IEEE.STD_LOGIC_1164.ALL;

entity Dflipflop is
port ( D0 : in STD_LOGIC;
CLK : in STD_LOGIC;
OUT1 : out STD_LOGIC);
end entity Dflipflop;

architecture Expression of Dflipflop is

component DflipflopIF is
port ( D,CLK : in STD_LOGIC; QOUT : out STD_LOGIC);
end component DflipflopIF;

signal Q0,Q1 : STD_LOGIC;
begin

F1 : DflipflopIF port map(D=>D0,CLK=>CLK,QOUT=>Q0);
F2 : DflipflopIF port map(D=>Q0,CLK=>CLK,QOUT=>Q1);
F3 : DflipflopIF port map(D=>Q1,CLK=>CLK,QOUT=>OUT1);

end architecture Expression;
Screenshot (29)
Screenshot (24)
Screenshot (13)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant