What I did in 8-weeks-VSD Internship? – Open Source Power Analysis Tool Using Python

What I did in 8-weeks-VSD Internship? – Open Source Power Analysis Tool Using Python

Power analysis has materialized as a principal theme in today’s world in semiconductor industries. As very large scale integrated circuit (VLSI) are far beyond from human ability because of complexity in nature.  So to analyse power in these circuits we use open source computer aided tools, plenty of tools are available but most of them are costly. I designed an open source power analysis tool for the academic use.  This tool gives out values of average and leakage power of any circuit by just giving the netlist of circuit file along with name of supply voltage as input. This tool is designed in python language.

POWER ANALYSIS

Power analysis of design can be reconnoitred at several levels such as system level, architectural level, logic level, circuit level and device level. Power analyser is a tool which determines how much power is utilize by a system or circuit.  On the basis of study, design cycle of a typical power analysis in different stages is as shown in “Fig. 2”.

POWER DISSIPATION BASICS

In CMOS circuits there are mainly three types of power dissipation namely average power dissipation, short circuit power dissipation and leakage power dissipation.

1.     AVERAGE POWER DISSIPATION

This power is also known as switching or dynamic power dissipation. The significant cause of this power dissipation is switching or we can say that it occurs during charging and discharging of capacitance as shown in “Fig. 3”. Dynamic power can be obtained from the formula as in equation 1.

…(1)

Where CL is load capacitor, VDD is supply voltage, α is switching activities factor of a circuit and  is the clock frequency. To evaluate average switching power in charging and discharging of a capacitor we have to integrate the power required to charge the capacitor from VDD through PMOS and discharging to ground through NMOS while applying the input voltage having zero rise and fall time of time period T.

2.     SHORT CIRCUIT POWER DISSIPATION

During switching there is some small time when both PMOS and NMOS are ON and there is short circuit current flow from VDD to ground as there exist a path between them as shown in “Fig. 3”. This power dissipation arises because practically input voltage pulse has some finite rise and fall time.

3.     LEAKAGE POWER DISSIPATION

(i) SUBTHRESHOLD LEAKAGE POWER DISSIPATION

When gate voltage is less than threshold voltage of MOSFET then even a current flow from drain to source through channel because of drain voltage (VDS) this current is called as Subthreshold Leakage Current as shown in “Fig. 4”. It causes dissipation of power known as subthreshold leakage power dissipation.

(ii) GATE-OXIDE TUNNELING LEAKAGE POWER DISSIPATION

In short channel devices, resultant of electric field of gate voltage electric field and drain voltage electric field causes electrons to move in zig zag manner and some electrons which gain extra energy at pinch off tunnel to gate through insulating SiO2 layer. This gives to gate leakage current towards substrate as shown in “Fig. 4”. It causes dissipation of power known as gate oxide tunnelling leakage power dissipation.

(ii) REVERSE BIASED JUNCTION BTBT POWER DISSIPATION

It occurs when the source or drain of an NMOS is at VDD or in case of PMOS is at ground. Reversed biased PN diode is formed at source or drain of transistors causing flow of current through substrate as shown in “Fig. 4”. In this process tunnelling of electron of p type substrate from valence band to conduction band of n type drain occur. Hence, this current is known as Reverse Biased Junction BTBT Current. It causes dissipation of power known as reversed biased junction BTBT power dissipation.

STRATEGY OF POWER ANALYZER TOOL

The strategy that is used in the tool presented is as follows:

A. CALCULATION OF AVERAGE POWER DISSIPATION

Placed a power meter between power supply and device as shown in “Fig. 5” and calculate the product of average current and Voltage. For calculating average current, I placed one extra power source of  0V in netlist.

Power meter consists of a current controlled current source (βIB) and voltage steps across this during time period is average power. Voltage steps of V(POWR) is same for every time period (T). The value of β can be obtained as CPVDD/T.

B. CALCULATION OF LEAKAGE POWER DISSIPATION

Remove all non-constant power supply voltages and calculate the product of leakage current and Voltage. For calculating leakage current, I placed one extra power source of 0V in netlist.

INPUTS FOR POWER TOOL

Following things are needed for user to enter while executing the tool

  1. Netlist file.
  2. Name of supply Voltage.

iii. Time period, if circuit is synchronous then clock pulse time period or in case of asynchronous minimum time period among all inputs.

DEPENDENCIES OF POWER TOOL

For execution of this tool we need ngspice and python only. Ngspice is an open source mixed signal circuit simulator.

DESCRIPTION OF CIRCUIT USED FOR POWER TOOL

For the analysis of my power analysis tool I Simulate D flip flop using pass transistor, transmission gate, pass transistor with stacking of transistor as shown in “Fig 6-8”. 2-1 MUX using pass transistor, transmission gate, as shown in figure 9-10. Along with these circuits I also analyse the power of 4 input analog multiplexer circuit, band gap reference circuit, 1bit adder circuit, 2 bit analog to digital converter and 10 bit analog to digital converter circuit. Takes netlist and calculate average and leakage power values of circuits from tool presented in this paper. All obtained values from tool are tabulated in table 1.

USE PYTHON SCRIPT TO FIND AVERAGE POWER

USE PYTHON SCRIPT TO FIND LEAKAGE POWER

NETLIST (To show which values to be entered while running script)

Power plot

Following average power graph we get on NGSPICE when we run modified script that we get from tool.

OUTPUT OF TOOL FOR CIRCUITS

All evaluated values of average power and leakage power of circuits from the tool designed using python are tabulated in table 1.

FUTURE WORK

For proper working of this tool circuit must have single power supply source. Hence it can be modified so that it works for multiple supply voltages.


Detailed Reference and Source Code can be found here —  https://github.com/CharuGupta-eng/vsdOSPowerCalc

Refer below link to know more about VSD-IAT workshops and future internships:

https://www.vlsisystemdesign.com/vsd-iat/

Registration for Ethical RISC-V IoT Workshop

Welcome to Ethical RISC-V IoT Workshop

The “Ethical RISC-V IoT Workshop” at IIIT Bangalore, organized in collaboration with VSD, is a structured, educational competition aimed at exploring real-world challenges in IoT and embedded systems. Participants progress through three stages: building an application, injecting and managing faults, and enhancing application security. The event spans from May 9 to June 15, 2024, culminating in a showcase of top innovations and an award ceremony. This hands-on hackathon emphasizes learning, testing, and securing applications in a collaborative and competitive environment.

Rules :
  1. Only for Indian Student whose college is registered under VTU
  2. Only team of 2 members can Register
  3. Use only VSDSquadron Mini resources for product development
Awards :
  1. Prize money for final 10 Team
  2. 3 Winner team’s Product will be evaluated for Incubation
  3. 7 consolation prizes
  4. Completion Certificate to final round qualifier
  5. Chance to build a Proud Secured RISC-V Platform for India

Date for Registration : 9th May - 22nd May, 2024
Hackathon Inauguration : 23rd May 2024

VSDSquadron (Educational Board)

VSDSquadron, a cutting-edge development board based on the RISC-V architecture that is fully open-source. This board presents an exceptional opportunity for individuals to learn about RISC-V and VLSI chip design utilizing only open-source tools, starting from the RTL and extending all the way to the GDSII. The possibilities for learning and advancement with this technology are limitless.

Furthermore, the RISC-V chips on these boards should be open for VLSI chip design learning, allowing you to explore PNR, standard cells, and layout design. And guess what? vsdsquadron is the perfect solution for all your needs! With its comprehensive documentation and scalable labs, thousands of students can learn and grow together.

VSD HDP (Hardware Design Program) Duration-10 Week

With VSD Hardware Design Program (VSD-HDP),  you have the opportunity to push the boundaries of what exist in open source and establish the new benchmark for tomorrow.

It will leverage your degree in Electrical or Computer Engineering to work with

  • Programmable logic
  • Analog/ digital IP
  • RISC-V
  • Architecture & microprocessors
  • ASICs and SoCs on high-density digital or RF circuit cards
  • Gain hands-on knowledge during design validation and system integration.

Sounds exciting to just get started with expert mentors, doesn’t it? But we are looking for the next generation of learners, inventors, rebels, risk takers, and pioneers.

“Spend your summer working in the future !!”

Outcomes of VSD Online Research IP Design Internship Program

  1. Job opportunities in Semiconductor Industry
  2. Research work can be submitted to VLSI International journals
  3. Participate in Semiconductor International Conference with Internship Research Work
  4. Paper Publications in IEEE Conference and SIG groups
  5. Tape out opportunity and IP Royalty
  6. Interact with world class Semiconductor designer and researchers
  7. Academic professions where more research projects are encouraged.
  8. All the above research and publication work will help colleges and institutes to improve accreditation levels.

Know More Information

VSD – Intelligent Assessment Technology (VSD-IAT)

VSD – Intelligent Assessment Technology (VSD-IAT) is expertly built training platform and is suited for designer requirements. Semiconductor companies understand the value of training automation and Engineer performance enhancement, and do not need to be convinced of the impact of a virtual platform for learning. VSD trainings are quick, relevant, and easy to access from any device at any time zone.

VSD Intern Webinars

VSD Interns made it happen !!

VSD is working towards creating innovative talent pool who are ready to develop design and products for the new tech world. VSD believes in “Learning by doing principle” , and always prepare the student to apply the knowledge learned in the workshops, webinars and courses. We always push our students to work on new designs, test it and work continuously till it becomes the best performing design. Any student who enrolls to VSD community starts working with small design and grows with us and develops a tapeout level design with complete honesty and dedication towards the Work !!

Check out VSD Interns Achievement!

VSDOpen Online Conference

Welcome to the World’s only online conference in Semiconductor Industry VSDOpen Conference. With enormous support and global presence of audience from different segments of industrial lobby and academia made a highly successful event. Evolution is change in the genetic makeup of a population over time, online conference is one kind evaluation everyone adapt soon. 

  • VSDOpen 2022 is an online conference to share open-source research with the community and promote  hardware design mostly done by the student community.
  • VSDOpen 2022 is based on the theme “How to lower the cost to learn, build, and tapeout chips ?”  , which will provide a platform to community to build stronger designs and strengthen the future of Chip design.
  • VSDOpen is envisioned to create a community based revolution in semiconductor hardware technology.
  • The open source attitude is required to bring out the talent and innovation from the community who are in remote part of world and have least access to the technologies.  And now Google support will help to bring the vision to execution by VSD team

VSD Online Course by Kunal Ghosh

VSD offers online course in complete spectrum of vlsi backend flow from RTL design, synthesis and Verification, SoC planning and design, Sign-off analysis, IP Design, CAD/EDA automation and basic UNIX/IT, Introduction to latest technology – RISC-V, Machine intelligence in EDA/CAD, VLSI Interview FAQ’s.

Current Reach – As of 2021, VSD and its partners have released 41 online VLSI courses and was successfully able to teach  ~35900 Unique students around 151 countries in 47 different languages, through its unique info-graphical and technology mediated learning methods.

Enquiry Form