
Every decision in a chip is a gate: AND, OR, NOT and XOR.
What you should see: AND is 1 only for a=1, b=1. OR is 1 if either is 1. XOR is 1 when they differ.
Your challenge: Add a NAND output: assign nand_out = ~(a & b);
Practice: Open Try it live in this lecture's resources to run the design in your browser (free, no sign-up). The full code for this lesson is in the Unit 1 design cards PDF.
Arabic subtitles are built into this video.
Binary addition is XOR for the sum and AND/OR for the carry.
What you should see: a=0101 (5) + b=0011 (3) gives sum=1000 (8), carry=0. 1111 + 0001 gives sum=0000, carry=1.
Your challenge: Make it 8 bits wide and test 200 + 100.
Practice: Open Try it live in this lecture's resources to run the design in your browser (free, no sign-up). The full code for this lesson is in the Unit 1 design cards PDF.
Arabic subtitles are built into this video.
A D flip-flop stores one bit on the clock's rising edge.
What you should see: Change d between clock edges: q does not move until the next rising edge.
Your challenge: Add a synchronous reset input.
Practice: Open Try it live in this lecture's resources to run the design in your browser (free, no sign-up). The full code for this lesson is in the Unit 1 design cards PDF.
Arabic subtitles are built into this video.
Flip-flops plus an adder make a counter.
What you should see: After reset the count goes 0, 1, 2 … 15, then wraps to 0.
Your challenge: Add an enable input so it counts only when en = 1.
Practice: Open Try it live in this lecture's resources to run the design in your browser (free, no sign-up). The full code for this lesson is in the Unit 1 design cards PDF.
Arabic subtitles are built into this video.
Watch the 4-bit counter from lesson 04 run clock by clock: the Verilog line that executes, the flip-flops changing, and the waveform growing.
What to look for: The count goes 0, 1, 2 … 15 and then wraps back to 0, exactly one step per rising clock edge.
All values come from a real simulation of the design. Pause at any clock and compare with the live simulator in the main lesson. Arabic subtitles are built into this video.
A state machine moves between fixed states by fixed rules.
What you should see: Green, yellow and red each stay on for 4 clocks, in that order, then repeat.
Your challenge: Add a pedestrian button that shortens green.
Practice: Open Try it live in this lecture's resources to run the design in your browser (free, no sign-up). The full code for this lesson is in the Unit 1 design cards PDF.
Arabic subtitles are built into this video.
Watch the traffic light state machine from lesson 05 move from state to state: green, yellow, red, each held for 4 clocks.
What to look for: The timer counts 0 to 3 inside each state; only when it reaches 3 does the state change.
All values come from a real simulation of the design. Pause at any clock and compare with the live simulator in the main lesson. Arabic subtitles are built into this video.
A Verilog module has inputs, outputs and a description of what connects them.
What you should see: sel = 0 passes a to y; sel = 1 passes b to y.
Your challenge: Turn it into a 4-to-1 multiplexer with a 2-bit sel.
Practice: Open Try it live in this lecture's resources to run the design in your browser (free, no sign-up). The full code for this lesson is in the Unit 2 design cards PDF.
Arabic subtitles are built into this video.
A register is several flip-flops sharing a clock, with a load enable.
What you should see: q loads d on a clock edge only while en = 1; otherwise it keeps its value.
Your challenge: Add a clear input that sets q to 0.
Practice: Open Try it live in this lecture's resources to run the design in your browser (free, no sign-up). The full code for this lesson is in the Unit 2 design cards PDF.
Arabic subtitles are built into this video.
Divide a fast clock down to a slow tick, then count the ticks.
What you should see: Every 5 clocks one tick; the seconds value counts 0 to 59, then wraps.
Your challenge: Add a minutes counter driven by the seconds wrap.
Practice: Open Try it live in this lecture's resources to run the design in your browser (free, no sign-up). The full code for this lesson is in the Unit 2 design cards PDF.
Arabic subtitles are built into this video.
A lock is a state machine that only advances on the correct digit.
What you should see: Entering 3, 1, 2 in order opens the lock; any wrong digit sends it back to the start.
Your challenge: Change the code to four digits.
Practice: Open Try it live in this lecture's resources to run the design in your browser (free, no sign-up). The full code for this lesson is in the Unit 2 design cards PDF.
Arabic subtitles are built into this video.
A testbench checks a design against a reference automatically.
What you should see: The reference and the design under test count side by side; the error flag stays 0.
Your challenge: Introduce a deliberate bug and watch the flag go to 1.
Practice: Open Try it live in this lecture's resources to run the design in your browser (free, no sign-up). The full code for this lesson is in the Unit 2 design cards PDF.
Arabic subtitles are built into this video.
UART sends a start bit, 8 data bits (LSB first) and a stop bit.
What you should see: Pulse send: tx goes low for the start bit, shifts out the data bits, then returns high.
Your challenge: Change the bit time from 4 clocks to 8.
Practice: Open Try it live in this lecture's resources to run the design in your browser (free, no sign-up). The full code for this lesson is in the Unit 3 design cards PDF.
Arabic subtitles are built into this video.
Watch the UART transmitter from lesson 11 send the letter A (0x41) bit by bit on the tx line.
What to look for: First the start bit (0), then the 8 data bits with the least significant bit first, then the stop bit (1). Each bit lasts 4 clocks here.
All values come from a real simulation of the design. Pause at any clock and compare with the live simulator in the main lesson. Arabic subtitles are built into this video.
PWM sets the average output by changing how long the signal stays high.
What you should see: duty = 4 gives 4 high clocks out of every 16 (25 %); duty = 12 gives 75 %.
Your challenge: Make the period 32 clocks with a 5-bit duty.
Practice: Open Try it live in this lecture's resources to run the design in your browser (free, no sign-up). The full code for this lesson is in the Unit 3 design cards PDF.
Arabic subtitles are built into this video.
On an FPGA your Verilog becomes real wiring inside the chip.
What you should see: The LED follows bit 2 of the counter, so it changes state every 4 clocks.
Your challenge: Change the counter width and see the blink rate halve or double.
Practice: Open Try it live in this lecture's resources to run the design in your browser (free, no sign-up). The full code for this lesson is in the Unit 3 design cards PDF.
Arabic subtitles are built into this video.
Synthesis turns one line of Verilog into gates.
What you should see: The synthesized drawing shows the same function built from basic gates.
Your challenge: Write the same logic two different ways and compare the gate count.
Practice: Open Try it live in this lecture's resources to run the design in your browser (free, no sign-up). The full code for this lesson is in the Unit 3 design cards PDF.
Arabic subtitles are built into this video.
From wafer to packaged chip: lithography, doping, layers of metal, testing and packaging.
What you should see: No code in this lesson: follow each fabrication step in the video.
Your challenge: Look up the process node of the chip in your phone.
Practice: The summary card for this lesson is in the Unit 3 design cards PDF.
Arabic subtitles are built into this video.
A decoder lights the right segments for each digit.
What you should see: value = 0 lights a–f; value = 1 lights b and c; value = 8 lights all seven.
Your challenge: Add the hex digits A to F.
Practice: Open Try it live in this lecture's resources to run the design in your browser (free, no sign-up). The full code for this lesson is in the Unit 4 design cards PDF.
Arabic subtitles are built into this video.
An ALU is several operations sharing inputs, with op choosing the result.
What you should see: op 0 adds, op 1 subtracts, op 2 is AND, op 3 is OR.
Your challenge: Add a zero flag that is 1 when the result is 0.
Practice: Open Try it live in this lecture's resources to run the design in your browser (free, no sign-up). The full code for this lesson is in the Unit 4 design cards PDF.
Arabic subtitles are built into this video.
A latch is transparent while enabled; a flip-flop only updates on an edge.
What you should see: With en = 1, q follows d immediately; with en = 0, q holds. Synthesis reports a latch on purpose.
Your challenge: Find the missing else that creates an accidental latch.
Practice: Open Try it live in this lecture's resources to run the design in your browser (free, no sign-up). The full code for this lesson is in the Unit 4 design cards PDF.
Arabic subtitles are built into this video.
RAM is an array of registers selected by an address.
What you should see: Write a value to an address with we = 1 and a clock; reading that address shows it on dout.
Your challenge: Make it 8 words deep.
Practice: Open Try it live in this lecture's resources to run the design in your browser (free, no sign-up). The full code for this lesson is in the Unit 4 design cards PDF.
Arabic subtitles are built into this video.
A FIFO uses read and write pointers with one extra bit to tell full from empty.
What you should see: Write four words: full = 1. Read them back in the same order: empty = 1.
Your challenge: Add a count output showing how many words are stored.
Practice: Open Try it live in this lecture's resources to run the design in your browser (free, no sign-up). The full code for this lesson is in the Unit 4 design cards PDF.
Arabic subtitles are built into this video.
Watch the FIFO from lesson 20 fill up word by word until it is full, then empty in the same order.
What to look for: The read and write pointers carry one extra bit: that is how the design tells a full FIFO from an empty one.
All values come from a real simulation of the design. Pause at any clock and compare with the live simulator in the main lesson. Arabic subtitles are built into this video.
SPI shifts data out on mosi with a clock and a chip-select.
What you should see: Pulse start: cs_n goes low, 8 bits leave MSB first on mosi with 8 sclk pulses, then cs_n returns high.
Your challenge: Add a miso input and capture the returned byte.
Practice: Open Try it live in this lecture's resources to run the design in your browser (free, no sign-up). The full code for this lesson is in the Unit 5 design cards PDF.
Arabic subtitles are built into this video.
Two flip-flops in a row bring an outside signal safely into a clock domain.
What you should see: The input appears at the output two clocks later, cleanly aligned to clk.
Your challenge: Add edge detection after the synchronizer.
Practice: Open Try it live in this lecture's resources to run the design in your browser (free, no sign-up). The full code for this lesson is in the Unit 5 design cards PDF.
Arabic subtitles are built into this video.
Pipelining splits work into stages so a new input can enter every clock.
What you should see: The result of each input appears two clocks later, and a new result arrives every clock.
Your challenge: Add a third stage and track the extra latency.
Practice: Open Try it live in this lecture's resources to run the design in your browser (free, no sign-up). The full code for this lesson is in the Unit 5 design cards PDF.
Arabic subtitles are built into this video.
A CPU is a program counter, a program memory and an accumulator.
What you should see: The program counter runs 0, 1, 2, 3, then JUMP sends it back to 1, so the accumulator goes 1, 3, 6, 8, 11 … and wraps at 16.
Your challenge: Add a SUB instruction using the spare opcode.
Practice: Open Try it live in this lecture's resources to run the design in your browser (free, no sign-up). The full code for this lesson is in the Unit 5 design cards PDF.
Arabic subtitles are built into this video.
Watch the tiny CPU from lesson 24 run its program: LOAD 1, ADD 2, ADD 3, JUMP 1, and watch the accumulator grow.
What to look for: The program counter selects the instruction, the decoder picks the operation, and the result goes back into the accumulator on every clock.
All values come from a real simulation of the design. Pause at any clock and compare with the live simulator in the main lesson. Arabic subtitles are built into this video.
Tiny Tapeout gives your design a fixed frame: 8 inputs, 8 outputs, clock and reset.
What you should see: While ui_in[0] = 1 the 8-bit counter counts up on each clock and shows on uo_out; rst_n = 0 clears it.
Your challenge: Fit your own design from this course into the same frame.
Practice: Open Try it live in this lecture's resources to run the design in your browser (free, no sign-up). The full code for this lesson is in the Unit 5 design cards PDF.
Arabic subtitles are built into this video.
An LFSR shifts and feeds back an XOR to produce a long pseudo-random sequence.
What you should see: From a non-zero seed it visits all 15 non-zero states before repeating.
Your challenge: Make it 8 bits wide with the right taps for 255 states.
Practice: Open Try it live in this lecture's resources to run the design in your browser (free, no sign-up). The full code for this lesson is in the Bonus design cards PDF.
Arabic subtitles are built into this video.
Watch the 4-bit LFSR from lesson 26 step through all 15 non-zero states starting from the seed 0001.
What to look for: The new bit is the XOR of two register bits. The sequence repeats after 15 clocks and never reaches 0000.
All values come from a real simulation of the design. Pause at any clock and compare with the live simulator in the main lesson. Arabic subtitles are built into this video.
A parity bit lets the receiver catch any single flipped bit.
What you should see: With no error the flag is 0; flip any one data bit and the flag goes to 1.
Your challenge: Flip two bits and see why parity cannot catch that.
Practice: Open Try it live in this lecture's resources to run the design in your browser (free, no sign-up). The full code for this lesson is in the Bonus design cards PDF.
Arabic subtitles are built into this video.
In Gray code only one bit changes between neighbours.
What you should see: Each clock changes exactly one output bit: 0000, 0001, 0011, 0010, 0110 …
Your challenge: Convert the Gray output back to binary.
Practice: Open Try it live in this lecture's resources to run the design in your browser (free, no sign-up). The full code for this lesson is in the Bonus design cards PDF.
Arabic subtitles are built into this video.
Multiplication is shift and add: one shifted copy of a for each 1 bit in b.
What you should see: a = 6, b = 5 gives p = 30: the copies of a for b bits 0 and 2 are added.
Your challenge: Make a signed version.
Practice: Open Try it live in this lecture's resources to run the design in your browser (free, no sign-up). The full code for this lesson is in the Bonus design cards PDF.
Arabic subtitles are built into this video.
A ROM is a fixed table; a counter walking through it can draw a waveform.
What you should see: The output steps up and then down through 16 values: a triangle wave.
Your challenge: Change the table to a sine shape.
Practice: Open Try it live in this lecture's resources to run the design in your browser (free, no sign-up). The full code for this lesson is in the Bonus design cards PDF.
Arabic subtitles are built into this video.
A keypad is read by driving one row low at a time and reading the columns.
What you should see: Pressing a key reports its number when its row is being scanned.
Your challenge: Report a key only after it is seen on two scans in a row (debouncing).
Practice: Open Try it live in this lecture's resources to run the design in your browser (free, no sign-up). The full code for this lesson is in the Bonus design cards PDF.
Arabic subtitles are built into this video.
The order of A and B edges tells which way the knob turns.
What you should see: Turning one way counts up; turning the other way counts down.
Your challenge: Add limits so the count stops at 0 and 15.
Practice: Open Try it live in this lecture's resources to run the design in your browser (free, no sign-up). The full code for this lesson is in the Bonus design cards PDF.
Arabic subtitles are built into this video.
A watchdog resets a chip that stops responding.
What you should see: Kick before the timer reaches 7 and nothing happens; stop kicking and reset_out fires.
Your challenge: Make the timeout longer with a wider counter.
Practice: Open Try it live in this lecture's resources to run the design in your browser (free, no sign-up). The full code for this lesson is in the Bonus design cards PDF.
Arabic subtitles are built into this video.
I2C sends a 7-bit address plus a read/write bit on two shared wires.
What you should see: Address 0x48 with R/W = 0 gives the byte 0x90; with R/W = 1 it gives 0x91.
Your challenge: Add the ACK bit check.
Practice: Open Try it live in this lecture's resources to run the design in your browser (free, no sign-up). The full code for this lesson is in the Bonus design cards PDF.
Arabic subtitles are built into this video.
A round-robin arbiter grants fairly when several requesters ask at once.
What you should see: On a tie, the requester that waited last time gets the grant.
Your challenge: Extend it to 4 requesters.
Practice: Open Try it live in this lecture's resources to run the design in your browser (free, no sign-up). The full code for this lesson is in the Bonus design cards PDF.
Arabic subtitles are built into this video.
Every smart device around you runs on a chip that makes millions of tiny decisions every second. In this practical course of 25 short lessons you will understand, step by step, how a digital chip thinks from the inside and how a real chip goes from an idea to silicon.
Arabic subtitles built in: every video is taught in English with Arabic subtitles burned directly into the video, so no separate caption file is needed. الدورة باللغة الإنجليزية، وكل الفيديوهات مترجمة للعربية مباشرة داخل الفيديو.
What you will learn
Digital building blocks: logic gates, binary numbers and the adder, flip-flops, counters and state machines
Writing hardware in Verilog: your first module, registers, a seconds counter, a digital lock, and testing with a testbench
Interfaces and peripherals: UART, PWM, running designs on an FPGA, and how code becomes silicon and how chips are fabricated
Building a processor: a seven-segment driver, the ALU, latches, RAM and FIFO buffers
Advanced design and your first tapeout: SPI, synchronizers and clock domains, pipelining, a simple CPU, and Tiny Tapeout for getting your own chip made
More than videos: you practise every idea
Run every design live in your browser in 34 lessons: the circuit opens already built, so you can click the inputs and watch the outputs (free, no sign-up).
Downloadable workbook with the full Verilog code of every lesson, what you should see when it runs, and a challenge to extend it.
A quiz at the end of every unit to check your understanding.
AI role-play conversations: debug a real-looking design problem with a colleague, the way chip designers work.
10 bonus lessons after the main 25: LFSR, parity, Gray code, multipliers, ROM, keypads, encoders, watchdogs, I2C and arbiters.
How the course is taught: each lesson explains one idea with clear diagrams and a practical example, building from the simplest gate to a complete processor.
Your instructor: Eng. Ayman Ibrahim Kaifi, founder of Tectronix, with more than 35 years of experience in electronics.
This course is a strong starting point for engineering students, graduates and innovators who want to enter the exciting and fast-growing field of integrated circuit design.