Search This Blog
Friday, 15 May 2026
The Ultimate Base Converter: Bridging the Gap Between Humans and Hardware
Friday, 18 August 2023
Verilog code to count number of 1's and 0's in 32-bit data input
There are many places where we need to check how many 0's or 1's are present in incoming data. It can be packet inspection or these counting further can be used for different purposes. This Verilog code is designed to efficiently count the occurrences of both '1' and '0' bits within a 32-bit input data. The primary objective of this module is to provide an accurate count of the number of '1's and '0's present in the input data simultaneously. Module takes 32-bit input data with valid bit. There are also clock and reset signals. Module has two output count vlaues, one for number of 1's and another one for number of 0's, and one valid signal. 32-bit input data is fed to the function only on valid_input and function will return number of 1's in the 32-bit data. This value will be subtracted from 32 and it will give us number of 0's present in the data. Both output values are true only when output_valid signal is high.
Monday, 7 November 2022
Rising and Falling Edge Detector using Verilog
In the real word, there might be many scenario that we need to detect rising edge or falling edge of the signal. If rising/falling edge happens on particular signal, then design can perform certain task. This rising or falling edge can be detected using following code. This code is done in Verilog language. In given below example code, clock clk, input signal sig_a, output rising edge signal ris_a and falling edge signal fal_a are defined. Both ris_a and fal_a are high for one clock cycle when circuit detects rising or falling edge on the sig_a respectively.
Sunday, 13 May 2018
Get Familiar with System Task in Verilog
- Display Task
- $display, $write, $monitor, $strobe
- File I/O Task
- $fopen, $fclose, $fdisplay, $fstrobe, $fmonitor
- Timescale Task
- $time, $stime, $realtime
- Simulation Control Task
- $reset, $finish, $stop
Friday, 11 May 2018
Easy UVM (Universal Verification Methodology) Tutorial
Tuesday, 13 June 2017
Verilog Code for (7,4) Systematic Hamming Encoder
Sunday, 2 October 2016
Design a Constant Divider using VHDL Coding.
Tuesday, 31 May 2016
Design 4-bit Linear Feedback Shift Register (LFSR) using VHDL Coding and Verify with Test Bench
Tuesday, 24 May 2016
Excitation and Characteristic Table of SR Flip Flop
Wednesday, 11 May 2016
Design 8 bit Ripple Carry Adder using VHDL Coding and Verify using Test Bench
Saturday, 16 April 2016
Design Gray Counter using VHDL Coding and Verify with Test Bench
Monday, 11 April 2016
Design BCD to 7-Segment Decoder using Verilog Coding
| Common Cathode Seven Segment Display |
Friday, 1 April 2016
Design 4 bit Magnitude Comprator using Verilog and Verify with Test Bench
Thursday, 31 March 2016
All About Operators in Verilog
- Arithmetic
- Relational
- Equality
- Logical
- Bit-wise
- Reduction
- Shift
- Concatenation
- Replication
- Conditional
Sunday, 13 March 2016
Quick Overview To Start Coding into Verilog
- Verilog is very popular Hardware Description language. It was introduced by Gateway Design Automation in 1984. In 1989, Cadence Design Systems purchased and put into public domain in 1990. In 1993, OVI enhanced the verilog language but that was not well accepted. IEEE standardized the Verilog HDL(IEEE 1364-1995) in 1995. In 2001, extension to verilog-95 submitted to IEEE and accepted verilog IEEE std 1364-2001. The revision of the language is also done in 2002 and 2005.
Thursday, 10 March 2016
A Brief Overview Of Data Type in VHDL.
- Signal : It represents interconnections that connect components and parts.
- Variable : It is used for local storage within process.
- Constant : It is used to declare a fixed value.
Saturday, 27 February 2016
Get Knowledge of Operators in VHDL with Examples
- Logical Operators
- Relational Operators
- Shift Operators.
- Miscellaneous Operators
Wednesday, 10 February 2016
Get Knowledge of Delay Types in VHDL
- Transport Delay
- Inertial Delay
- Transport Delay : It is the delay model just delay the signal or change the value of the signal by the time specified in the after clause. It is the characteristic of the hardware elements that exhibits infinite frequency response. Any pulse is transmitted no matter how small it is.
Monday, 8 February 2016
Design BCD to 7-Segment Decoder using VHDL Code
| Common Cathode Seven Segment Display |
Friday, 29 January 2016
Design Johnson Counter and Test with Test Bench using VHDL Code
Sr. No.
|
Name of the Pin
|
Direction
|
Width
|
Description
|
1
|
Clk
|
Input
|
1
|
Clock Signal
|
2
|
Rst
|
Input
|
1
|
Reset Signal
|
3
|
Op
|
Output
|
4
|
Output Signal
|