All Sample Codes
IMPORTANT NOTE
Links to repositories for sample codes various topics are given below. Click on the respective links to access the sample code repositories.:
Introduction to Verilog Sample Codes
- 8 Bit AND Gate
- Half Adder
- Full adder
- Full Adder Using Half Adders
- Full Subtractor
- 4 Bit Adder Subtracter Gate level
- 8 Bit Binary Adder
- 8 Bit binary subtractor
- 8:1 MUX Gate level
- ALU Behavioural
- BCD Adder
Finite State Machines Sample Codes
- Chess Clock
- Mealy Machine
- Moore Machine
- Vending Machine
- Simple Cycle Detector
- Protocol Decoder with Error Check
- Elevator Controller
- Key Debouncer
- Mealy Cycle Detector
- Muller C-Element Detector
- Dual Clock Traffic Light Controller
Registers Sample Codes
- Implement a 4-bit register using D flip-flops.
- Implement an 8-bit register using behavioral modeling with a single read and write port such that both read and write operations can occur simultaneously, but when they do read is given more priority.
- Implement an 8-bit SISO shift register using behavioral modeling.
- Implement an 8-bit SIPO shift register using behavioral modeling.
- Implement an 8-bit PISO shift register using behavioral modeling.
- Implement an 8-bit PIPO shift register using behavioral modeling.
- Implement an 8-bit register with 1 read port and 2 write ports. : Either read or write is permitted at a time and when you perform write, you are to write through the two write ports alternately
- Implement an 8-bit register file with 8 registers such that only a read or write can oc cur at a time.
- Implement a 64-bit register file with 32 register with 4 read ports and 2 write ports. Multiple operations can occur at a time, but the lower port is given more priority in such cases. Read > Write .
- Implement a 4-bit universal shift register.
MIPS Assembly Codes
Basic Integer and String Handling
Floating Point Handling
Integer Array Handling
- Introduction to Integer Arrays Code | Video
- Sum of Elements of an Array Code | Video
- Greatest Element in Array Code | Video
- Merge 2 Sorted Arrays Code | Video
- Highest and Lowest occurrence of an element in an array Code | Video
- Binary Search Code | Video
- Quicksort Code | Video