Skip to content
This repository was archived by the owner on May 22, 2025. It is now read-only.

Commit c3e4b81

Browse files
committed
notes(cs): adds RISC
1 parent 12e65aa commit c3e4b81

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

.github/workflows/compile.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ jobs:
4646
id: check-hash
4747
run: |
4848
chmod +x ./build/download-hash.sh
49-
./build/download-hash.sh ${${{ env.ROOT_FILE }}/.tex/.pdf} ${{ env.SOURCE_HASH }}
49+
./build/download-hash.sh ${${{ env.ROOT_FILE }}/.tex/.pdf.hash} ${{ env.SOURCE_HASH }}
5050
## Install MiKTeX
5151
- name: Install MiKTeX and dependencies
5252
id: apt-install

cheatsheet/instruction-sets.tex

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,4 +104,14 @@ \subsubsection*{Branch Prediction}
104104
\emph{Dynamic}: Use history to help predict. \begin{enuminline}
105105
\item \textbf{1-bit}: If wrong prediction, predict opposite; Problem: high misprediction rate at the end of loops;
106106
\item \textbf{2-bit}: If two consecutive wrong predictions, predict opposite.
107+
\end{enuminline}
108+
109+
\subsubsection*{RISC Architecture}
110+
\emph{Characteristics}: \begin{enuminline}
111+
\item Load/store architecture: only load/store instructions access memory;
112+
\item Fixed-length, simple, fixed-format instructions $\Rightarrow$ high clock rate, low clock cycle time;
113+
\item Fewer addressing modes $\Rightarrow$ low CPI;
114+
\item More instructions (reduction in CPI is more significant than increase in instruction count);
115+
\item Extensive soft/hardware pipelining;
116+
\item Relies on compiler optimisation.
107117
\end{enuminline}

0 commit comments

Comments
 (0)