Advertisement
Guest User

Untitled

a guest
Jun 26th, 2019
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.40 KB | None | 0 0
  1. documentclass[crop,tikz]{standalone}
  2.  
  3.  
  4. usepackage{tikz}
  5. usetikzlibrary{shapes,arrows}
  6. usetikzlibrary{positioning}
  7.  
  8. usetikzlibrary{arrows,
  9. chains,
  10. decorations.markings,
  11. shadows, shapes.arrows,shapes, fit}
  12.  
  13. begin{document}
  14. tikzset{%
  15. sum/.style = {draw, circle, node distance = 2cm}, % Adder
  16. input/.style = {coordinate}, % Input
  17. output/.style = {coordinate}, % Output
  18. block/.style = { draw,
  19. thick,
  20. rectangle,
  21. minimum height = 2em,
  22. fill=white,
  23. align=center
  24. },
  25. wide block/.style = {
  26. block,
  27. minimum height = 3em,
  28. text width=2.5cm,
  29. minimum width = 8em,
  30. },
  31. dotted_block/.style={draw=black!20!white, line width=1pt, dash pattern=on 1pt off 4pt on 6pt off 4pt,
  32. inner sep=6mm, rectangle, rounded corners}
  33. }
  34. newcommand{suma}{Large$+$}
  35.  
  36. begin{tikzpicture}[auto, thick, node distance=2cm, >=triangle 45]
  37. draw
  38. node at (0,0){}
  39. node [input, name=input1] {}
  40. node [align=center, wide block, right = 1cm of input1] (inte2) {IEEE1}
  41. node [align=center, wide block, right = 1cm of inte2] (inte3) {IEEE2}
  42. node [align=center, wide block, right = 1cm of inte3] (inte4) {IEEE3}
  43. node [sum, right = 1cm of inte4] (suma1) {suma}
  44. node [input, name=input2, above = 1cm of suma1] {}
  45. node [output, name=output1, right = 1cm of suma1] {};
  46. node [align=center, wide block, right = 0.5cm of output1] (glamor) {glamor};
  47. node[wide block, right = 15mm of glamor] (trainer) {trainer};
  48. node[block, below=10mm of glamor](M){giga};
  49. node[block, below=10mm of trainer](L){mn};
  50. node [dotted_block, fit = (inte2) (inte3)] (aa) {};
  51. node [dotted_block, fit = (inte4) (suma1)] (aa2) {};
  52. node [dotted_block, fit = (glamor) (trainer) (L) (M)] (aa3) {};
  53.  
  54. node at (aa.north) [above, inner sep=3mm] {T1};
  55. node at (aa2.north) [above, inner sep=3mm] {T2};
  56. node at (aa3.north) [above, inner sep=3mm] {T3};
  57.  
  58. draw[->](input1) -- node {kmm}(inte2);
  59. draw[->](inte2) -- node {kdd}(inte3);
  60. draw[->](inte3) -- node {dx}(inte4);
  61. draw[->](inte4) -- node {msg}(suma1);
  62. draw[->](input2) -- node {taco} (suma1);
  63. draw[<-](glamor.west) --node[above]{$y$} ++(-1.5,0);
  64. draw[->](glamor) -- node {dol} (trainer);
  65. draw[->](trainer.east) -- node[name=y]{kmm} ++ (2,0);
  66. draw[->,rounded corners](trainer.east) -- ++(1,0) |- (L);
  67. draw[->](L)--(M);
  68. draw[<-, rounded corners]([yshift=1mm]glamor.south west)
  69. -- ++(-1,0) |- (M.west);
  70. end{tikzpicture}
  71. end{document}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement