The purpose of this laboratory exercise is to learn how to use the git versioning system, the Linux console to work in the lab, and verify basic logic functions using an online simulator.
- Create an account on GitHub server.
-
In GitHub, create a new public repository titled Digital-electronics-1. Initialize a README and MIT license.
-
Use How to make the perfect Readme.md on GitHub, Basic writing and formatting syntax or Mastering Markdown articles and add the following parts in your README file.
- Headers
- Emphasis
- List
- Link
- Table
- Try basic commands in the Linux terminal:
Command | Description |
---|---|
Ctrl+Alt+T |
Open Linux terminal in Ubuntu based distributions |
Tab |
Automatic completion what you are typing or suggest options to you |
Up/Down |
Browse command history |
ls |
List directory contents |
cd |
Change the current directory (change to parent directory: cd .. ) |
mkdir |
Make directories |
pwd |
Print name of current/working directory |
clear |
Clear the terminal screen |
touch |
Create an empty file (if it does not exist) |
cp |
Copy files and directories |
mc |
GNU Midnight Commander (file manager) |
-
In the lab, make your own home folder within
Documents
, and with help ofgit
command create a local copy of your public repository:$ cd $ pwd /home/lab661 $ cd Documents/ $ mkdir your-name $ cd your-name/ $ pwd /home/lab661/Documents/your-name $ git clone https://github.com/your-github-account/Digital-electronics-1 $ cd Digital-electronics-1/ $ ls LICENSE README.md
-
Download
Docs
folder from teacher's repository and copy it to yourDigital-electronics-1
local repository.$ ls Docs LICENSE README.md
-
Make a new folder
Images
.$ mkdir Images $ ls Docs Images LICENSE README.md
-
Make a new folder
Labs/01-gates
and create an empty fileREADME.md
.$ mkdir Labs $ cd Labs/ $ mkdir 01-gates $ cd 01-gates/ $ touch README.md $ ls README.md
-
Use online digital circuit simulator CircuitVerse, launch the simulator, draw and verify basic two-input logic gates.
-
Run any text editor, such as Visual Studio Code, open
Digital-electronics-1/Labs/01-gates/README.md
local file (not on GitHub), create/complete tables with logical values, and add a screenshot from the simulator.A NOT 0 1 A B AND NAND OR NOR XOR XNOR 0 0 0 1 0 1 0 1 0 1 1 0 1 1 -
Use De Morgan's law and modify logic function to form with (N)AND and (N)OR gates only. Verify all three functions in online simulator.
A B C 0 0 0 0 0 1 0 1 0 0 1 1 1 0 0 1 0 1 1 1 0 1 1 1 Equations and symbols were generated by Online LaTeX Equation Editor as an Encoded URL link.
-
Use
cd ..
command in Linux terminal and change the working directory toDigital-electronics-1
. Then use git commands to add, commit, and push all local changes to your remote repository. Check the repository at GitHub web page for changes.$ pwd /home/lab661/Documents/your-name/Digital-electronics-1/Labs/01-gates $ cd .. $ cd .. $ pwd /home/lab661/Documents/your-name/Digital-electronics-1 $ git status $ git add <your-modified-files> $ git status $ git commit -m "[LAB] Adding 01-gates lab" $ git status $ git push $ git status
-
Use digital circuit simulator and verify basic Boolean postulates:
and Distributive laws:
-
Use online digital circuit simulator, draw the logic diagram according to figure, complete the truth table, and determine the circuit function.
A B Q3 Q2 Q1 Q0 0 0 0 1 1 0 1 1 -
Try different online simulators, such as Logicly, simulatorIO, LogicEmu, or find others, and compare them.