Guest User

Untitled

a guest
Jul 21st, 2018
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.95 KB | None | 0 0
  1. -- Round 1, Step 1
  2. Inst_func1: func1 GENERIC MAP(
  3. rotate_left_bits => 7
  4. )
  5. PORT MAP(
  6. a_i => buf0,
  7. b_i => buf1,
  8. c_i => buf2,
  9. d_i => buf3,
  10. x_i => input(0),
  11. ac_i => x"D76AA478",
  12. result_o => step1
  13. );
  14.  
  15. -- Round 1, Step 2
  16. Inst_func2: func1 GENERIC MAP(
  17. rotate_left_bits => 12
  18. )
  19. PORT MAP(
  20. a_i => buf3,
  21. b_i => step1,
  22. c_i => buf1,
  23. d_i => buf2,
  24. x_i => input(1),
  25. ac_i => x"E8C7B756",
  26. result_o => step2
  27. );
  28.  
  29. -- Round 1, Step 3
  30. -- step1 buf1 buf2 step2
  31. Inst_func3: func1 GENERIC MAP(
  32. rotate_left_bits => 17
  33. )
  34. PORT MAP(
  35. a_i => buf2,
  36. b_i => step2,
  37. c_i => step1,
  38. d_i => buf1,
  39. x_i => input(2),
  40. ac_i => x"242070DB",
  41. result_o => step3
  42. );
  43.  
  44. -- Round 1, Step 4
  45. -- step1 buf1 step3 step2
  46. Inst_func4: func1opt GENERIC MAP(
  47. rotate_left_bits => 22
  48. )
  49. PORT MAP(
  50. a_i => buf1,
  51. b_i => step3,
  52. c_i => step2,
  53. d_i => step1,
  54. ac_i => x"C1BDCEEE",
  55. result_o => step4
  56. );
  57.  
  58. -- Round 1, Step 5
  59. -- step1 step4 step3 step2
  60. Inst_func5: func1opt GENERIC MAP(
  61. rotate_left_bits => 7
  62. )
  63. PORT MAP(
  64. a_i => step1,
  65. b_i => step4,
  66. c_i => step3,
  67. d_i => step2,
  68. ac_i => x"F57C0FAF",
  69. result_o => step5
  70. );
  71.  
  72. -- Round 1, Step 6
  73. -- step5 step4 step3 step2
  74. Inst_func6: func1opt GENERIC MAP(
  75. rotate_left_bits => 12
  76. )
  77. PORT MAP(
  78. a_i => step2,
  79. b_i => step5,
  80. c_i => step4,
  81. d_i => step3,
  82. ac_i => x"4787c62a",
  83. result_o => step6
  84. );
  85.  
  86. -- Round 1, Step 7
  87. -- step5 step4 step3 step2
  88. Inst_func7: func1opt GENERIC MAP(
  89. rotate_left_bits => 17
  90. )
  91. PORT MAP(
  92. a_i => step3,
  93. b_i => step6,
  94. c_i => step5,
  95. d_i => step4,
  96. ac_i => x"a8304613",
  97. result_o => step7
  98. );
  99.  
  100. -- Round 1, Step 8
  101. -- step5 step4 step3 step2
  102. Inst_func8: func1opt GENERIC MAP(
  103. rotate_left_bits => 22
  104. )
  105. PORT MAP(
  106. a_i => step4,
  107. b_i => step7,
  108. c_i => step6,
  109. d_i => step5,
  110. ac_i => x"fd469501",
  111. result_o => step8
  112. );
  113.  
  114. -- Round 1, Step 9
  115. -- step5 step4 step3 step2
  116. Inst_func9: func1opt GENERIC MAP(
  117. rotate_left_bits => 7
  118. )
  119. PORT MAP(
  120. a_i => step5,
  121. b_i => step8,
  122. c_i => step7,
  123. d_i => step6,
  124. ac_i => x"698098d8",
  125. result_o => step9
  126. );
  127.  
  128. -- Round 1, Step 10
  129. -- step5 step4 step3 step2
  130. Inst_func10: func1opt GENERIC MAP(
  131. rotate_left_bits => 12
  132. )
  133. PORT MAP(
  134. a_i => step6,
  135. b_i => step9,
  136. c_i => step8,
  137. d_i => step7,
  138. ac_i => x"8b44f7af",
  139. result_o => step10
  140. );
  141.  
  142. -- Round 1, Step 11
  143. -- step5 step4 step3 step2
  144. Inst_func11: func1opt GENERIC MAP(
  145. rotate_left_bits => 17
  146. )
  147. PORT MAP(
  148. a_i => step7,
  149. b_i => step10,
  150. c_i => step9,
  151. d_i => step8,
  152. ac_i => x"ffff5bb1",
  153. result_o => step11
  154. );
  155.  
  156. -- Round 1, Step 12
  157. -- step5 step4 step3 step2
  158. Inst_func12: func1opt GENERIC MAP(
  159. rotate_left_bits => 22
  160. )
  161. PORT MAP(
  162. a_i => step8,
  163. b_i => step11,
  164. c_i => step10,
  165. d_i => step9,
  166. ac_i => x"895cd7be",
  167. result_o => step12
  168. );
  169.  
  170. -- Round 1, Step 13
  171. -- step5 step4 step3 step2
  172. Inst_func13: func1opt GENERIC MAP(
  173. rotate_left_bits => 7
  174. )
  175. PORT MAP(
  176. a_i => step9,
  177. b_i => step12,
  178. c_i => step11,
  179. d_i => step10,
  180. ac_i => x"6b901122",
  181. result_o => step13
  182. );
  183.  
  184. -- Round 1, Step 14
  185. -- step5 step4 step3 step2
  186. Inst_func14: func1opt GENERIC MAP(
  187. rotate_left_bits => 12
  188. )
  189. PORT MAP(
  190. a_i => step10,
  191. b_i => step13,
  192. c_i => step12,
  193. d_i => step11,
  194. ac_i => x"fd987193",
  195. result_o => step14
  196. );
  197.  
  198. -- Round 1, Step 15
  199. -- step5 step4 step3 step2
  200. Inst_func15: func1 GENERIC MAP(
  201. rotate_left_bits => 17
  202. )
  203. PORT MAP(
  204. a_i => step11,
  205. b_i => step14,
  206. c_i => step13,
  207. d_i => step12,
  208. x_i => input(14),
  209. ac_i => x"a679438e",
  210. result_o => step15
  211. );
  212.  
  213. -- Round 1, Step 16
  214. -- step5 step4 step3 step2
  215. Inst_func16: func1 GENERIC MAP(
  216. rotate_left_bits => 22
  217. )
  218. PORT MAP(
  219. a_i => step12,
  220. b_i => step15,
  221. c_i => step14,
  222. d_i => step13,
  223. x_i => input(15),
  224. ac_i => x"49b40821",
  225. result_o => step16
  226. );
Add Comment
Please, Sign In to add comment