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 Urban, Alexander Oh},
28 pdfkeywords={Taschenrechner VHDL Hardware},
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 % passt die kennzahl eh??
88 {\large Alexander Oh, MatrNr. 0225258, KNZ: 066 938} \\
89 {\small e0225258@student.tuwien.ac.at} \\
91 {\large Bernhard Urban, MatrNr. 0725771, KNZ: 033 535} \\
92 {\small lewurm@gmail.com} \\
104 %-------------------------------------------------------------------------
105 % print table of contents
106 %-------------------------------------------------------------------------
114 \newcommand{\mc}[1]{ {{\small \texttt{#1}}}}
115 %%footnote hack von http://bushednotes.wordpress.com/2007/03/25/footnotes-tabular-in-latex/
116 \newcounter{myfootertablecounter}
118 \newcommand\myfootnotemark{%
119 %\refstepcounter{footnote}%
120 \addtocounter{footnote}{1}%
121 \footnotemark[\thefootnote]%
124 \newcommand\myfootnotetext[1]{%
125 \addtocounter{myfootertablecounter}{1}
126 \footnotetext[\value{myfootertablecounter}]{#1}
129 % from now on, myfootnote has to be used rather than footnote to
130 % adapt the myfootercounter
131 \newcommand\myfootnote[1]{%
132 \addtocounter{myfootertablecounter}{1}
137 \setlength{\headheight}{14.5pt}
139 \newcounter{reqcounter}
140 \setcounter{reqcounter}{0}
141 \newcommand{\req}[1]{
143 \addtocounter{reqcounter}{1}
144 \textbf{Req \arabic{reqcounter}} #1\\
145 \label{Req \arabic{reqcounter}} %this could be done better with a second argument, but that's tiresome to write in the text
148 \newcounter{tccounter}
149 \setcounter{tccounter}{0}
150 \newcommand{\tcc}[1]{
153 \addtocounter{tccounter}{1}
154 \textbf{TC \arabic{tccounter}}: #1\\
155 \label{TC \arabic{tccounter}} %this could be done better with a second argument, but that's tiresome to write in the text
159 %\newcommand{\ZE}{\\ %\hline}
162 \begin{longtable}{|l|l|r|l|l|p{7.1cm}|}
164 \textbf{Bezeichnung} & \textbf{Richtung} & \textbf{Breite} &
165 \textbf{Typ} & \textbf{Modul} & \textbf{Beschreibung}
168 sys\_clk & in & 1 & std\_logic & System & Systemclock \ZE
169 sys\_res\_n & in & 1 & std\_logic & System & Systemreset (low-aktiv) \ZE