Advertisement
lutaco

Untitled

May 30th, 2018
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.67 KB | None | 0 0
  1. -------------------------------------------------------------------------------
  2. --
  3. -- Title : JKtrigg
  4. -- Design : lab5
  5. -- Author : ivan
  6. -- Company : lala
  7. --
  8. -------------------------------------------------------------------------------
  9. --
  10. -- File : JKtrigg.vhd
  11. -- Generated : Sun May 27 19:12:23 2018
  12. -- From : interface description file
  13. -- By : Itf2Vhdl ver. 1.20
  14. --
  15. -------------------------------------------------------------------------------
  16. --
  17. -- Description :
  18. --
  19. -------------------------------------------------------------------------------
  20.  
  21. --{{ Section below this comment is automatically maintained
  22. -- and may be overwritten
  23. --{entity {JKtrigg} architecture {JKtrigg}}
  24.  
  25. library IEEE;
  26. use IEEE.STD_LOGIC_1164.all;
  27.  
  28. entity JKtrigg is
  29. port(
  30. Sa : in STD_LOGIC;
  31. J : in STD_LOGIC;
  32. K : in STD_LOGIC;
  33. C : in STD_LOGIC;
  34. Ra : in STD_LOGIC;
  35. Q : out STD_LOGIC;
  36. nQ : out STD_LOGIC
  37. );
  38. end JKtrigg;
  39.  
  40. --}} End of automatically maintained section
  41.  
  42. architecture JKtrigg of JKtrigg is
  43. signal S1, S2, S3, S4, S5, S6, S7, S8:STD_LOGIC;
  44. component and3 is
  45. port(
  46. x1 : in STD_LOGIC;
  47. x2 : in STD_LOGIC;
  48. x3 : in STD_LOGIC;
  49. y : out STD_LOGIC
  50. );
  51. end component and3;
  52. begin
  53.  
  54. -- enter your statements here --
  55. and3_1: and3 port map(S8, J, C, S1);
  56. and3_2: and3 port map(C, S7, K, S2);
  57. and3_3: and3 port map(Sa, S1, S4, S3);
  58. and3_4: and3 port map(S3, S2, Ra, S4);
  59. and3_5: and3 port map(S1, S3, S2, S5);
  60. and3_6: and3 port map(S2, S4, S1, S6);
  61. and3_7: and3 port map(Sa, S5, S8, S7);
  62. and3_8: and3 port map(S7, S6, Ra, S8);
  63. Q <= S7;
  64. nQ <= S8;
  65. end JKtrigg;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement