Examples of using cocotb for functional verification of VHDL designs with GHDL.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

191 lines
4.9 KiB

  1. \documentclass[usenames,dvipsnames,10pt,aspectratio=169]{beamer}
  2. \usepackage{fontspec}
  3. \setmainfont{Liberation Sans}
  4. \setmonofont{Liberation Mono}
  5. %\usepackage[margin=1in]{geometry}
  6. \usepackage{hyperref}
  7. \PassOptionsToPackage{usenames,dvipsnames}{color} % color is loaded by hyperref
  8. \hypersetup{unicode=true,
  9. $if(title-meta)$
  10. pdftitle={$title-meta$},
  11. $endif$
  12. $if(author-meta)$
  13. pdfauthor={$author-meta$},
  14. $endif$
  15. $if(keywords)$
  16. pdfkeywords={$for(keywords)$$keywords$$sep$; $endfor$},
  17. $endif$
  18. colorlinks=true,
  19. linkcolor=$if(linkcolor)$$linkcolor$$else$Maroon$endif$,
  20. citecolor=$if(citecolor)$$citecolor$$else$Blue$endif$,
  21. urlcolor=$if(urlcolor)$$urlcolor$$else$Blue$endif$,
  22. breaklinks=true}
  23. \urlstyle{same} % don't use monospace font for urls
  24. \setbeamercolor{title}{fg=Maroon}
  25. \setbeamercolor{subtitle}{fg=MidnightBlue}
  26. \setbeamercolor{frametitle}{fg=MidnightBlue}
  27. \setbeamercolor{structure}{fg=MidnightBlue}
  28. % Don't show things we don't want to see
  29. \beamertemplatenavigationsymbolsempty
  30. % Slide number in lower right
  31. \setbeamertemplate{footline}{
  32. \raisebox{5pt}{
  33. \makebox[\paperwidth]{
  34. \hfill\makebox[0.15\linewidth]{\color{Gray} \footnotesize Torsten Meißner}
  35. \hfill\makebox[0.7\linewidth]{\color{Gray} \footnotesize \insertshorttitle}
  36. \hfill\makebox[0.15\linewidth]{\color{Gray} \footnotesize \insertframenumber ~/ \inserttotalframenumber}
  37. }
  38. }
  39. \hspace*{5pt}
  40. }
  41. % Color and shape of bullets
  42. \setbeamercolor{item}{fg=Gray}
  43. \setbeamercolor{subitem}{fg=Gray}
  44. % \setbeamercolor{itemize/enumerate subbody}{fg=gray}
  45. \setbeamertemplate{itemize item}{{\textendash}}
  46. \setbeamertemplate{itemize subitem}{{\textendash}}
  47. \setbeamerfont{itemize/enumerate subbody}{size=\footnotesize}
  48. \setbeamerfont{itemize/enumerate subitem}{size=\footnotesize}
  49. %\usepackage{fancyvrb}
  50. %\DefineVerbatimEnvironment{verbatim}{Verbatim}{frame=leftline, fontsize=\small, baselinestretch=1.17}
  51. %\VerbatimFootnotes % allows verbatim text in footnotes
  52. \usepackage{listings}
  53. \lstset{
  54. basicstyle=\ttfamily\scriptsize,
  55. keywordstyle=\color{Maroon},
  56. stringstyle=\color{NavyBlue},
  57. showstringspaces=false,
  58. frame=leftline,
  59. xleftmargin=5pt,
  60. tabsize=2,
  61. }
  62. $if(highlighting-macros)$
  63. $highlighting-macros$
  64. $endif$
  65. $if(verbatim-in-note)$
  66. \usepackage{fancyvrb}
  67. \VerbatimFootnotes % allows verbatim text in footnotes
  68. $endif$
  69. $if(tables)$
  70. \usepackage{longtable,booktabs}
  71. \usepackage{caption}
  72. % These lines are needed to make table captions work with longtable:
  73. \makeatletter
  74. \def\fnum@table{\tablename~\thetable}
  75. \makeatother
  76. $endif$
  77. $if(graphics)$
  78. \usepackage{graphicx,grffile}
  79. \makeatletter
  80. \def\maxwidth{\ifdim\Gin@nat@width>\linewidth\linewidth\else\Gin@nat@width\fi}
  81. \def\maxheight{\ifdim\Gin@nat@height>\textheight0.8\textheight\else\Gin@nat@height\fi}
  82. \makeatother
  83. \centering
  84. % Scale images if necessary, so that they will not overflow the page
  85. % margins by default, and it is still possible to overwrite the defaults
  86. % using explicit options in \includegraphics[width, height, ...]{}
  87. \setkeys{Gin}{width=\maxwidth,height=\maxheight,keepaspectratio}
  88. $endif$
  89. % Prevent slide breaks in the middle of a paragraph:
  90. \widowpenalties 1 10000
  91. \raggedbottom
  92. \newif\ifbibliography
  93. $if(section-titles)$
  94. \AtBeginPart{
  95. \let\insertpartnumber\relax
  96. \let\partname\relax
  97. \frame{\partpage}
  98. }
  99. \AtBeginSection{
  100. \ifbibliography
  101. \else
  102. \let\insertsectionnumber\relax
  103. \let\sectionname\relax
  104. \frame{\sectionpage}
  105. \fi
  106. }
  107. \AtBeginSubsection{
  108. \let\insertsubsectionnumber\relax
  109. \let\subsectionname\relax
  110. \frame{\subsectionpage}
  111. }
  112. $endif$
  113. $if(links-as-notes)$
  114. % Make links footnotes instead of hotlinks:
  115. \renewcommand{\href}[2]{#2\footnote{\url{#1}}}
  116. $endif$
  117. $if(strikeout)$
  118. \usepackage[normalem]{ulem}
  119. % avoid problems with \sout in headers with hyperref:
  120. \pdfstringdefDisableCommands{\renewcommand{\sout}{}}
  121. $endif$
  122. \setlength{\emergencystretch}{3em} % prevent overfull lines
  123. \providecommand{\tightlist}{%
  124. \setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}}
  125. $if(numbersections)$
  126. \setcounter{secnumdepth}{5}
  127. $else$
  128. \setcounter{secnumdepth}{0}
  129. $endif$
  130. $if(dir)$
  131. \ifxetex
  132. % load bidi as late as possible as it modifies e.g. graphicx
  133. $if(latex-dir-rtl)$
  134. \usepackage[RTLdocument]{bidi}
  135. $else$
  136. \usepackage{bidi}
  137. $endif$
  138. \fi
  139. \ifnum 0\ifxetex 1\fi\ifluatex 1\fi=0 % if pdftex
  140. \TeXXeTstate=1
  141. \newcommand{\RL}[1]{\beginR #1\endR}
  142. \newcommand{\LR}[1]{\beginL #1\endL}
  143. \newenvironment{RTL}{\beginR}{\endR}
  144. \newenvironment{LTR}{\beginL}{\endL}
  145. \fi
  146. $endif$
  147. $if(title)$
  148. \title{$title$}
  149. $endif$
  150. $if(subtitle)$
  151. \subtitle{$subtitle$}
  152. $endif$
  153. $if(author)$
  154. \author{$for(author)$$author$$sep$ \\ $endfor$}
  155. $endif$
  156. \date{$date$}
  157. \begin{document}
  158. $if(title)$
  159. \frame{\maketitle}
  160. $endif$
  161. $for(include-before)$
  162. $include-before$
  163. $endfor$
  164. $if(toc)$
  165. \begin{frame}
  166. \tableofcontents[hideallsubsections]
  167. \end{frame}
  168. $endif$
  169. $body$
  170. $for(include-after)$
  171. $include-after$
  172. $endfor$
  173. \end{document}