fork download
  1. LIBRARY ieee;
  2. USE ieee.std_logic_1164.all;
  3. USE ieee.std_logic_arith.all;
  4.  
  5. ENTITY T_1 IS
  6. port ( CLOCK: in std_logic; Q, T: in std_logic;
  7. QNEXT: out std_logic);
  8. END ENTITY T_1;
  9.  
  10. ARCHITECTURE TFF OF T_1 IS
  11. SIGNAL QTEMP: std_logic;
  12. BEGIN
  13.  
  14. QNEXT<=QTEMP;
  15.  
  16. PROCESS(CLOCK)
  17. BEGIN
  18.  
  19. IF RISING_EDGE(CLOCK) THEN
  20.  
  21. if(T='0' AND Q='0') then
  22. QTEMP<='0';
  23. elsif(T='0' AND Q='1') then
  24. QTEMP<='1';
  25. elsif(T='1' AND Q='0') then
  26. QTEMP<='1';
  27. else
  28. QTEMP<= '0';
  29.  
  30. end if;
  31.  
  32. end if;
  33. end process;
  34.  
  35. END ARCHITECTURE TFF;
  36.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp:1: error: ‘LIBRARY’ does not name a type
prog.cpp:2: error: ‘USE’ does not name a type
prog.cpp:3: error: ‘USE’ does not name a type
prog.cpp:5: error: ‘ENTITY’ does not name a type
prog.cpp:6: error: expected constructor, destructor, or type conversion before ‘,’ token
prog.cpp:6: error: a function-definition is not allowed here before ‘:’ token
prog.cpp:7: error: function definition does not declare parameters
prog.cpp:8: error: ‘END’ does not name a type
prog.cpp:10: error: ‘ARCHITECTURE’ does not name a type
prog.cpp:12: error: ‘BEGIN’ does not name a type
prog.cpp:16: error: expected constructor, destructor, or type conversion before ‘(’ token
prog.cpp:23: error: expected constructor, destructor, or type conversion before ‘(’ token
prog.cpp:25: error: expected constructor, destructor, or type conversion before ‘(’ token
prog.cpp:27: error: expected unqualified-id before ‘else’
prog.cpp:30: error: expected constructor, destructor, or type conversion before ‘if’
prog.cpp:32: error: expected constructor, destructor, or type conversion before ‘if’
prog.cpp:33: error: ‘end’ does not name a type
prog.cpp:35: error: ‘END’ does not name a type
stdout
Standard output is empty