Skip to main content

Physical Design/PDK methodology Engineer

Hello Dear Readers, At Applied Materials Bangalore, there is a vacancy for a Physical Design/PDK methodology Engineer role. Applied Materials is a global leader in materials engineering solutions used to produce virtually every new chip and advanced display in the world. We design, build and service cutting-edge equipment that helps our customers manufacture display and semiconductor chips – the brains of devices we use every day. As the foundation of the global electronics industry, Applied enables the exciting technologies that literally connect our world – like AI and IoT. If you want to push the boundaries of materials science and engineering to create next generation technology, join us to deliver material innovation that changes the world.  Key Responsibility: Expertise in PDK enablement and library  validation/automation. Hands-on experience with LVS/Parasitic extraction/standard cell characterization flows and methodologies Design/System level experience with DTCO and ...

Functions And Tasks In Verilog

 Hello Dear Readers,

Today, I will explain how functions and tasks are used in Verilog to make our lengthy code highly optimized.

Task and functions are used in the Verilog to describe the commonly used functional behavior. Instead of replicating the same code at different places, it is good and common practice to use the functions or tasks depending on the requirement. For easy maintenance of the code, it is better to use the functions or tasks like the subroutine. Let's see the example below for a better understanding.

1). Counting 1’s from the Given String Using Functions:

The following are the key important points that need to remember while using the function: 

1. Function can not consists of the time control statements and even delay operators.

2. Function can have at least one input argument declaration. 

3. Function can consist of function calls but function cannot consist of the task. 

4. Function executes in zero simulation time and returns a single value when called. 

5. It is not recommended to use the function while writing the synthesizable Verilog RTL. 

6. Functions are used for writing the behavioral or simulatable model. 

7. Functions should not have nonblocking assignments.

In this example, the function is used with the argument ‘‘data_in’’. The name of the function is ‘‘count_1s_in_byte’’. In most of the protocol descriptions, it is required to perform some operations on the input string. In this example, the string is an 8-bit input ‘‘data_in’’ and output result is 4-bit ‘‘out’’. Here code is parameterized so we can extend it to any number of bits of string. It is not recommended to use the function to generate synthesized logic.

Verilog Code:

module count_one #(parameter N=8)(data_in,out);

input [N-1:0] data_in;

output reg [N-5:0] out;

always @(data_in)

out=count_1s_in_string(data_in);


function [N-5:0] count_1s_in_string;

  input [N-1:0] data_in;

  integer i;

begin  

  count_1s_in_string=0;

 for(i=0;i<N;i=i+1)

  if(data_in[i]==1) count_1s_in_string=count_1s_in_string+1;

end

endfunction  

endmodule

2). Counting 1’s from the Given String Using Tasks:
The following are key important points that need to remember while using the task: 
1. Task can consist of the time control statements and even delay operators. 

2. Task can have input and output declarations. 

3. Task can consist of function calls but function cannot consist of the task. 

4. Task can have output argument and not be used to return the value when called. 

5. Task can be used to call other tasks. 

6. It is not recommended to use the task while writing the synthesizable Verilog RTL. 

7. Tasks are used for writing the behavioral or simulatable model.

Verilog Code:

module count_one #(parameter N=8)(data_in,out);

input [N-1:0] data_in;

output reg [N-5:0] out;

always @(data_in)

count_1s_in_string(data_in,out);


task count_1s_in_string;

  input [N-1:0] data_in;

  output reg [N-5:0] out;

  integer i;

begin  

  out=0;

 for(i=0;i<N;i=i+1)

  if(data_in[i]==1) out=out+1;

end

endtask  

endmodule

Simulational Results:





Comments

  1. Easy explanation

    ReplyDelete
  2. Your site is last end point of our search. Keep it up

    ReplyDelete

Post a Comment

Popular posts from this blog

Exploring the Role of LEF Files in VLSI Chip Design: A Beginner's Guide

Hello Dear Readers,   Today in this post, I will provide some deep insight into the LEF file role during the VLSI Chip Design process. In VLSI (Very Large Scale Integration) design, a LEF file is a file that contains information about the physical geometry of the standard cells used in a circuit. LEF stands for Library Exchange Format. A standard cell is a pre-designed logic cell that contains a specific function, such as a flip-flop or an AND gate. Standard cells are designed to be easily combinable and scalable to create more complex circuits. The physical geometry of each standard cell is defined in the LEF file. The LEF file contains information such as the width, height, and position of the pins and metal layers of each standard cell. It also contains information about the physical design rules that govern the placement of these cells on the chip. LEF files are important in VLSI design because they enable the interoperability of different design tools from different vend...

Best Book for Designing Microarchitecture of Microprocessor Using Verilog HDL

  Hello Dear Readers, Currently, after succeeding in many topics now I starting to provide technical book reviews which were I have completed and still read books always. So let us start today's book review. Book Name:   Computer Principles and Design in Verilog  HDL Description:  Uses Verilog HDL to illustrate computer architecture and microprocessor design, allowing readers to readily simulate and adjust the operation of each design, and thus build industrially relevant skills Introduces the computer principles, computer design, and how to use Verilog HDL (Hardware Description Language) to implement the design Provides the skills for designing processor/arithmetic/cpu chips, including the unique application of Verilog HDL material for CPU (central processing unit) implementation Despite the many books on Verilog and computer architecture and microprocessor design, few, if any, use Verilog as a key tool in helping a student to understand these design techniques...

Physical Design Methodology Engineer at Texas Instruments

  Hello Dear Readers, Texas Instruments Bangalore has a vacancy for the Physical Design Engineer role. We need an Physical Design Methodology Engineer to join our ATD team. The candidate should have a strong background in back-end design of ASIC/SoC chips. The ideal candidate will have a bachelor’s or master’s degree in Electrical Engineering or a related field. Requirements: 1 - 2 Years of experience in physical design Bachelor’s or master’s degree in Electrical/Electronics Engineering or a related field Strong understanding of physical design principles Must know the basics of floorplan, placement, CTS, routing, ECO, Physical Verification Proficiency in back-end design tools, such as Cadence Genus/Innovus/Tempus/Voltus Excellent problem-solving skills and attention to detail Effective communication and collaboration skills Responsibilities: Synthesis to GDSII Perform full Physical design flow and its verification Work closely with Digital Design and DFT engineers Ensure...