]> rtime.felk.cvut.cz Git - fpga/rpi-motor-control.git/blob - pmsm-control/dff.vhdl
Current measurment bits transferring via SPI from FPGA to RPi extended from 12 to...
[fpga/rpi-motor-control.git] / pmsm-control / dff.vhdl
1 library ieee;
2 use ieee.std_logic_1164.all;
3 use ieee.std_logic_arith.all;
4 use ieee.std_logic_unsigned.all;
5 use ieee.numeric_std.all;
6
7 entity dff is
8   port (
9     clock: in std_logic;
10     d: in std_logic;
11     q: out std_logic
12   );
13 end dff;
14
15 architecture behavioral of dff is
16   signal data: std_logic := '0';
17 begin
18   q <= data;
19
20   process
21   begin
22     wait until clock'event and clock = '1';
23     data <= d;
24   end process;
25
26 end behavioral;