-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
50 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
/* | ||
* Copyright (c) 2023, University of California; Santa Barbara | ||
* Distribution prohibited. All rights reserved. | ||
* | ||
* File: taillights_pkg.sv | ||
* Description: Taillights SystemVerilog package. | ||
* Includes the enum for the FSM module | ||
*/ | ||
|
||
package taillights_pkg; | ||
|
||
typedef enum logic [2:0] { | ||
S000_000, | ||
S000_100, | ||
S000_110, | ||
S000_111, | ||
S001_000, | ||
S011_000, | ||
S111_000, | ||
S111_111 | ||
} state_t; | ||
|
||
endpackage |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
|
||
\begin{figure}[t] | ||
\centering | ||
\small | ||
\inputminted[frame=single]{systemverilog}{code/ece152a_pkg.sv} | ||
\caption{This is a SystemVerilog package that was provided to ECE 152A students to aid in their implementation of a 1965 Ford Thunderbird taillight state-machine.} | ||
\label{fig:ece152a_pkg} | ||
\end{figure} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters