Skip to content

Instantly share code, notes, and snippets.

View mertalp-ulus's full-sized avatar
💤
coding dreams in dreams

Mertalp Ulus mertalp-ulus

💤
coding dreams in dreams
View GitHub Profile
@mertalp-ulus
mertalp-ulus / verilog-examples.v
Last active January 7, 2024 19:19
51 Verilog examples for learning purposes
/*
* Do not change Module name
* You can use this website to compile Verilog online: https://www.tutorialspoint.com/compile_verilog_online.php
*/
module main;
initial
begin
$display("Hello, World");
$finish ;
end
@mertalp-ulus
mertalp-ulus / Digital-Electronics-Summary.md
Last active April 11, 2023 05:09
ChatGPT generated digital electronics summary

Background Knowledge

Technological Foundations

  • MOS Transistors: The metal-oxide-semiconductor transistor is a type of transistor used for amplifying or switching electronic signals.
  • Conductive Channel: The path between the source and drain of a MOS transistor through which current flows when the transistor is on.
  • MOS Transistors as Switches: MOS transistors can act as switches to control the flow of current in a circuit.
    • Field-effect transistors (FETs) are commonly used in digital circuits
    • There are two types: N-channel and P-channel
    • MOS transistors can be seen as voltage-controlled switches
  • No current flows through the gate
//Title: Button Debouncing using a State Machine
//Author: Chris Guichet
//Date: Jan 15, 2018
//
//Description:
// -A State Machine is a useful tool to organize complex code
// -Think of it like the next step beyone "If Else" statements
// -This example code uses a State Machine to handle tac switch debouncing
// -It also has a "Hold" function to enable interaction with long button presses
// -The tac switch is used to control a buzzer and an LED, it can multitask