Skip to content

Commit 980912d

Browse files
committed
Merge branch 'master' of github.com:schoeberl/chisel-book
2 parents 17346f5 + bbe26ab commit 980912d

1 file changed

Lines changed: 29 additions & 29 deletions

File tree

slides-agile/06_testing_and_ci.tex

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -251,14 +251,14 @@
251251
\textbf{What is TDD?}
252252
\begin{itemize}
253253
\item A software development approach where tests are written \textbf{before} the code
254-
\item Follows a short cycle: \textbf{Red Green Refactor}
254+
\item Follows a short cycle: \textbf{Red $\rightarrow$ Green $\rightarrow$ Refactor}
255255
\end{itemize}
256256
\pause
257257
\vspace{1em}
258258
\textbf{TDD Cycle}
259259
\begin{enumerate}
260260
\item \textbf{Write a test} for a small piece of functionality
261-
\item \textbf{Run the test} it should fail (Red)
261+
\item \textbf{Run the test} -- it should fail (Red)
262262
\item \textbf{Write the code} to make the test pass (Green)
263263
\item \textbf{Refactor} the code while keeping the test passing
264264
\end{enumerate}
@@ -344,7 +344,7 @@
344344

345345
\textbf{Why Property-Based Testing?}
346346
\begin{itemize}
347-
\item Many systems have an \textbf{infinite input space}it's impractical to test all possible cases manually
347+
\item Many systems have an \textbf{infinite input space}---it's impractical to test all possible cases manually
348348
\item PBT helps uncover \textbf{classes of bugs} by generating a wide range of random, valid inputs
349349
\end{itemize}
350350
\pause
@@ -520,7 +520,7 @@
520520
\begin{frame}{Continuous Integration (CI): Benefits and Extras}
521521
\textbf{Key Benefits:}
522522
\begin{itemize}
523-
\item Developers dont need to run all tests locally
523+
\item Developers don't need to run all tests locally
524524
\item Tests run in a clean, consistent environment
525525
\item Regressions are caught \textbf{before} merging
526526
\item Ensures the \texttt{master} branch is always in a working state
@@ -559,19 +559,19 @@
559559
push:
560560
jobs:
561561
test:
562-
runs-on: ubuntu-latest
563-
steps:
564-
- name: Checkout
565-
uses: actions/checkout@v4
566-
- name: Setup JDK
567-
uses: actions/setup-java@v4
568-
with:
569-
distribution: temurin
570-
java-version: 11
571-
- name: Setup sbt launcher
572-
uses: sbt/setup-sbt@v1
573-
- name: Build and Test
574-
run: sbt test
562+
runs-on: ubuntu-latest
563+
steps:
564+
- name: Checkout
565+
uses: actions/checkout@v4
566+
- name: Setup JDK
567+
uses: actions/setup-java@v4
568+
with:
569+
distribution: temurin
570+
java-version: 11
571+
- name: Setup sbt launcher
572+
uses: sbt/setup-sbt@v1
573+
- name: Build and Test
574+
run: sbt test
575575
\end{verbatim}
576576
\end{column}
577577
\begin{column}{0.4\textwidth}
@@ -616,10 +616,10 @@
616616

617617
\textbf{Supported Commands:}
618618
\begin{itemize}
619-
\item \texttt{IDLE} Do nothing
620-
\item \texttt{PUSH} Insert a key/payload pair into the front of the array
621-
\item \texttt{POP} Remove the smallest key/payload pair from the end
622-
\item \texttt{PUSH/POP} Simultaneously insert a new pair and remove the smallest
619+
\item \texttt{IDLE} -- Do nothing
620+
\item \texttt{PUSH} -- Insert a key/payload pair into the front of the array
621+
\item \texttt{POP} -- Remove the smallest key/payload pair from the end
622+
\item \texttt{PUSH/POP} -- Simultaneously insert a new pair and remove the smallest
623623
\end{itemize}
624624

625625
\pause
@@ -628,9 +628,9 @@
628628
\begin{itemize}
629629
\item \textbf{Configurable parameters:}
630630
\begin{itemize}
631-
\item \texttt{keyWidth} Bit width of the key (used for sorting)
632-
\item \texttt{valueWidth} Bit width of the payload
633-
\item \texttt{depth} Number of stages in the systolic array
631+
\item \texttt{keyWidth} -- Bit width of the key (used for sorting)
632+
\item \texttt{valueWidth} -- Bit width of the payload
633+
\item \texttt{depth} -- Number of stages in the systolic array
634634
\end{itemize}
635635
\item \textbf{Modular design:} Each stage compares and forwards data
636636
\item \textbf{Testable:} Design should support unit and integration testing
@@ -685,7 +685,7 @@
685685

686686
\textbf{New Requirements:}
687687
\begin{itemize}
688-
\item Values must be tracked in \textbf{groups}each key may have multiple associated values
688+
\item Values must be tracked in \textbf{groups} --- each key may have multiple associated values
689689
\item Each \texttt{PUSH} command may insert a \textbf{variable number of values}
690690
\item Newly pushed values must \textbf{merge} with existing values for the same key
691691
\item System should be \textbf{configurable} in terms of maximum pair lengths
@@ -694,10 +694,10 @@
694694
\vspace{0.5em}
695695
\textbf{Extended Commands:}
696696
\begin{itemize}
697-
\item \texttt{Push(0)} No operation
698-
\item \texttt{Pop(0)} Pop lowest key and its value group
699-
\item \texttt{Push(x)} Push \texttt{x} values with a given key
700-
\item \texttt{Pop(x)} Pop lowest key group, then push \texttt{x} values with a new key
697+
\item \texttt{Push(0)} -- No operation
698+
\item \texttt{Pop(0)} -- Pop lowest key and its value group
699+
\item \texttt{Push(x)} -- Push \texttt{x} values with a given key
700+
\item \texttt{Pop(x)} -- Pop lowest key group, then push \texttt{x} values with a new key
701701
\end{itemize}
702702

703703
\end{frame}

0 commit comments

Comments
 (0)