这是SEU新生研讨课作业,主要内容是学习数字信号处理。
代码
\documentclass{article}
\usepackage{fancyhdr}
\usepackage{graphicx}
\usepackage{titlesec}
\usepackage{titletoc}
\usepackage{listings}
\usepackage{appendix}
\usepackage{bm, amsmath, amsfonts}
\usepackage{multirow}
\usepackage{hyperref}
\usepackage{subfig}
\usepackage{url}
\usepackage{cite}
%\usepackage{subfigure}
\usepackage[a4paper, left=2.5cm, right=2.5cm, top=2.65cm, bottom=2.54cm]{geometry}
\title{\Huge \bfseries Calculation of minimum number of registers with life time chart}
\author{\Large Teddy van Jerry}
\date{\today}
\pagestyle{fancy}
\fancyhf{}
\cfoot{\thepage}
\chead{ALL RIGHTS RESERVED \copyright \ 2020 Teddy van Jerry }
% set the code style
\RequirePackage{listings}
\RequirePackage{xcolor}
\definecolor{dkgreen}{rgb}{0,0.6,0}
\definecolor{gray}{rgb}{0.5,0.5,0.5}
\definecolor{mauve}{rgb}{0.58,0,0.82}
\lstset{
numbers=left,
frame=tb,
aboveskip=3mm,
belowskip=3mm,
showstringspaces=false,
columns=flexible,
framerule=1pt,
rulecolor=\color{gray!35},
backgroundcolor=\color{gray!5},
basicstyle={\ttfamily},
numberstyle=\tiny\color{gray},
keywordstyle=\color{blue},
commentstyle=\color{dkgreen},
stringstyle=\color{mauve},
breaklines=true,
breakatwhitespace=true,
tabsize=3,
}
\begin{document}
\maketitle
\section{The exercise}
\ \ \ \ To transpose a fourth-order matrix,
what is the minimum number of registers?\cite{VLSI}
\section{Life time chart}
\ \ \ \ To calculate the minimum number of registers,
I use C++ to work out the answer
and draw the life time chart at the same time.\cite{Lifetime}
Firstly we know the delay matrix
\footnote{This is also calculated by C++.}
is:
$$
\left[ \begin{matrix}
9 & 12 & 15 & 18 \\
6 & 9 & 12 & 15 \\
3 & 6 & 9 & 12 \\
0 & 3 & 6 & 9 \\
\end{matrix} \right]
$$
Then we can draw (or calculate) the life time chart
using C++.
\begin{lstlisting}[language=C++,escapeinside=``]
#include <io