diff options
author | Julian T <julian@jtle.dk> | 2021-02-22 14:06:19 +0100 |
---|---|---|
committer | Julian T <julian@jtle.dk> | 2021-02-22 14:06:19 +0100 |
commit | 29d49ef6cf9f84e922ef91a2921129ecc97cbf55 (patch) | |
tree | 712b5e011faf303376e9053d2f747218095150db /sem6/dig/m4/dflip.vhdl | |
parent | 4377c42e7c6a46f5eeaae2f1bcf08a909caf35af (diff) |
Working exercise for m4
Diffstat (limited to 'sem6/dig/m4/dflip.vhdl')
-rw-r--r-- | sem6/dig/m4/dflip.vhdl | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/sem6/dig/m4/dflip.vhdl b/sem6/dig/m4/dflip.vhdl deleted file mode 100644 index 5f722d3..0000000 --- a/sem6/dig/m4/dflip.vhdl +++ /dev/null @@ -1,26 +0,0 @@ -LIBRARY IEEE; -USE IEEE.STD_LOGIC_1164.all; - -ENTITY dflip IS - PORT( - d: IN STD_LOGIC; - clk: IN STD_LOGIC; - q: OUT STD_LOGIC; - nq: OUT STD_LOGIC - ); -END dflip; - -ARCHITECTURE impl OF dflip IS - SIGNAL qi : STD_LOGIC; -BEGIN - nq <= NOT qi; - q <= qi; - PROCESS (clk) - BEGIN - -- Check if high edge - if (clk'event and clk = '1') then - qi <= d; - end if; - END PROCESS; -END IMPL; - |