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