Verilog Code for Hamming Code Detector

Hola Amigos,Today I am going to discuss Hamming Code, its parity working and its code detection. Hamming code detection is basically used when there is a single bit error. It is a quite fast and efficient method to determine the error bit and replace it with the opposite bit. Let us take data as – 01001101Continue reading "Verilog Code for Hamming Code Detector"

Verilog Code for I2C Protocol

[VISIT NEW POST FOR I2C HERE ]I2C PROTOCOLHola AmigosI2C devices have been around us for a long time. If you have done any Arduino projects with any peripherals such as Bluetooth (HC-05) or Gyroscope (MPU6050) or Barometer etc you might be surprised you have already used I2C devices. Yes An I2C basically consists of a master microcontroller andContinue reading "Verilog Code for I2C Protocol"

Verilog Code for Sequence Detector

SEQUENCE DETECTORHola AmigosBeginning with the simple theory about Sequence Detector. A sequence detector an algorithm which detects a sequence within a given set of bits. Of course the length of total bits must be greater than sequence that has to be detected.Sequence detector basically is of two types – a.      Overlapping b.     Non OverlappingIn overlapping someContinue reading "Verilog Code for Sequence Detector"

Verilog code for BCD to 7 Segment Display

BCD TO 7-SEGMENT DISPLAYHola AmigosBCD stands for Binary Coded Decimal which runs only till 9. The main objective is to convert the binary input to a decimal number to be displayed on 7-Segment Block which looks like thisHere is the truth table for this "s" Represents State and A-G represents pins of 7-Seg DisplayHere is the codemoduleContinue reading "Verilog code for BCD to 7 Segment Display"

Verilog Code for Asynchronous Counters

ASYNCHRONOUS COUNTERAsynchronous means in terms of simple definition without external clock synchronization.The output always remains free from clock signal.      Generally the first FF is clocked with main external clock and each of next FF have output of previous FF as their clock. This helps in reducing the number of FFs and additional gates henceContinue reading "Verilog Code for Asynchronous Counters"

Verilog Code for Down Counters

DOWN COUNTERSHola AmigosDown Counter can be defined in a simple way don't you think ?It just counts. HaHaYes!! A counter just counts down from the maximum decimal value when all the required bits are 1 to zero.Let me elaborate.Let's take an example of 3 bit counter. So whats the maximum of 3bit counter i.e when allContinue reading "Verilog Code for Down Counters"

Verilog Code for Up Counters

Hola AmigosUp Counter can be defined in a simple way don't you think ?It just counts. HaHaYes!! A counter just counts up to the maximum decimal value when all the required bits are 1. Crazy Definition  ? I agree. Let me elaborate.Let's take an example of 3 bit counter. So whats the maximu of 3bit counter i.eContinue reading "Verilog Code for Up Counters"

Verilog Code for Parity Bit Checker

PARITY BIT CHECKERHola Amigos Here is the code for the parity bit checker in System VerilogThe output will be shown in the transcript.I have used ModelSim sometimes using Xilinx iSim as second.Code             module func();reg [7:0] data;reg  parity;integer i;function abc;input [31:0] data;integer i;begin  abc = 0;  for (i= 0; i < 32; iContinue reading "Verilog Code for Parity Bit Checker"

Verilog Code for Finite State Machine

FINITE STATE MACHINEHola Amigos!!I got a mail regarding Finite State Machine Code in verilog. Well I have prepared my own truth table set and sequence but it will sure help you all guys to design your own code of FSM.A finite state machine is a state level design used to program such modules which require aContinue reading "Verilog Code for Finite State Machine"

Verilog Code of Ring Counter

RING COUNTERHola AmigosToday I will be discussing with you about Ring Counter. A ring Counter is basically a simple counterthat counts upto n states working on the basics of shift registers. Upon each clock cycle the binary number shifts by 1 bit. Thus for n- bit binary number we have n-states. Remember Johnsson counter works similar was butContinue reading "Verilog Code of Ring Counter"

Design a site like this with WordPress.com
Get started