1 \usepackage{fancyhdr}
\r
2 \usepackage{graphicx}
\r
5 \usepackage{listings}
\r
7 \usepackage[T1]{fontenc}
\r
8 %\usepackage[utf8]{inputenc}
\r
9 \usepackage[latin1]{inputenc}
\r
11 \usepackage[plainpages=false, pdfpagelabels]{hyperref} %Klickbare Links im PDF
\r
12 \usepackage{amssymb}
\r
13 \usepackage{amsmath}
\r
14 \usepackage{longtable,colortbl}
\r
15 \usepackage{pdfpages}
\r
16 \usepackage{pdflscape}
\r
17 \usepackage{longtable}
\r
19 \newcommand{\mytitle}{Spezifikation für das Design eines Taschenrechners in Hardware}
\r
25 bookmarksnumbered=true,
\r
26 %pdfauthor={Bernhard Lewurm, Fabian Ehrentraud}, TODO unanonymize
\r
28 pdfkeywords={lulz a wannabe hax0r :D search for a real hint fagot},
\r
36 language=vhdl, % choose the language of the code
\r
38 basicstyle=\footnotesize, % the size of the fonts that are used for the code
\r
39 % basicstyle=\scriptsize, % the size of the fonts that are used for the code
\r
40 numbers=left, % where to put the line-numbers
\r
41 numberstyle=\footnotesize, % the size of the fonts that are used for the line-numbers
\r
42 stepnumber=1, % the step between two line-numbers. If it's 1 each line will be numbered
\r
44 numberfirstline=true,
\r
45 numbersep=5pt, % how far the line-numbers are from the code
\r
46 backgroundcolor=\color{white}, % choose the background color. You must add \usepackage{color}
\r
47 showspaces=false, % show spaces adding particular underscores
\r
48 showstringspaces=false, % underline spaces within strings
\r
49 showtabs=false, % show tabs within strings adding particular underscores
\r
50 % frame=single, % adds a frame around the code
\r
52 tabsize=2, % sets default tabsize to 2 spaces
\r
54 % captionpos=b, % sets the caption-position to bottom
\r
55 captionpos=t, % sets the caption-position to top
\r
56 breaklines=true, % sets automatic line breaking
\r
57 breakatwhitespace=false, % sets if automatic breaks should only happen at whitespace
\r
58 escapeinside={\%*}{*)}, % if you want to add a comment within your code
\r
59 prebreak={\space\hbox{\ensuremath\hookleftarrow}}
\r
63 \newcommand{\MakeTitleAndTOC}{
\r
65 \setcounter{page}{0}
\r
66 %-------------------------------------------------------------------------
\r
68 %-------------------------------------------------------------------------
\r
69 \thispagestyle{empty}
\r
74 {\LARGE Hardware-Modellierung VL}
\r
77 {\Huge \bf \mytitle}
\r
87 %{\large Fabian Ehrentraud, MatrNr. 0725639, KNZ: 033 535}\\ TODO unanonymize
\r
89 %{\small werteplus@gmail.com} \\
\r
91 %{\large Bernhard Urban, MatrNr. 0725771, KNZ: 033 535} \\ TODO unanonymize
\r
92 {\large Mister Y} \\
\r
93 %{\small lewurm@gmail.com} \\
\r
105 %-------------------------------------------------------------------------
\r
106 % print table of contents
\r
107 %-------------------------------------------------------------------------
\r
115 \newcommand{\mc}[1]{ {{\small \texttt{#1}}}}
\r
116 %%footnote hack von http://bushednotes.wordpress.com/2007/03/25/footnotes-tabular-in-latex/
\r
117 \newcounter{myfootertablecounter}
\r
119 \newcommand\myfootnotemark{%
\r
120 %\refstepcounter{footnote}%
\r
121 \addtocounter{footnote}{1}%
\r
122 \footnotemark[\thefootnote]%
\r
125 \newcommand\myfootnotetext[1]{%
\r
126 \addtocounter{myfootertablecounter}{1}
\r
127 \footnotetext[\value{myfootertablecounter}]{#1}
\r
130 % from now on, myfootnote has to be used rather than footnote to
\r
131 % adapt the myfootercounter
\r
132 \newcommand\myfootnote[1]{%
\r
133 \addtocounter{myfootertablecounter}{1}
\r
138 \setlength{\headheight}{14.5pt}
\r
140 \newcounter{reqcounter}
\r
141 \setcounter{reqcounter}{0}
\r
142 \newcommand{\req}[1]{
\r
144 \addtocounter{reqcounter}{1}
\r
145 \textbf{Req \arabic{reqcounter}} #1\\
\r
146 \label{Req \arabic{reqcounter}} %this could be done better with a second argument, but that's tiresome to write in the text
\r
149 \newcounter{tccounter}
\r
150 \setcounter{tccounter}{0}
\r
151 \newcommand{\tcc}[1]{
\r
154 \addtocounter{tccounter}{1}
\r
155 \textbf{TC \arabic{tccounter}}: #1\\
\r
156 \label{TC \arabic{tccounter}} %this could be done better with a second argument, but that's tiresome to write in the text
\r
159 \newcommand{\ZE}{\\ \hline}
\r
160 \newcommand{\THEAD}{
\r
162 \begin{longtable}{|l|l|r|l|l|p{6cm}|}
\r
164 \textbf{Bezeichnung} & \textbf{Direction} & \textbf{Breite} &
\r
165 \textbf{Typ} & \textbf{in Verbindung mit} & \textbf{Beschreibung}
\r
167 sys\_clk & in & 1 & std\_logic & System & Systemclock \ZE
\r
168 sys\_res\_n & in & 1 & std\_logic & System & Systemreset \ZE
\r
170 \newcommand{\TEND}{
\r