AI Contest Third Place Winner.png

Congratulations to Asma Mohsin and Muhammad Ali Farooq at Rapid Silicon for winning the third-place prize in the Efabless AI-Generated Design Contest!

Welcome to the Q&A with Asma Mohsin, the third-place winner of the Efabless AI-Generated Design Contest. Asma will be discussing her work on Model Predictive Control (MPC). The design is used to predict future behavior and optimize control actions for a regulator control circuit provided in MATLAB code to ChatGPT-4 and then implemented with prompts in Verilog.

What is the nature of your design?

The module we designed and submitted is a zero-horizon model predictive controller (MPC) specifically designed for a DC-DC step-down buck converter, which aims to convert an input voltage of 12 volts to an output voltage of 5 volts. The controller operates in two distinct states: u0, which represents the switch being closed, and u1, which represents the switch being opened. These states determine the control actions applied to the converter. This design was implemented entirely using Google’s Google Bard model.

How did you implement your project? What challenges did you run into?

To develop the MPC, the coefficient matrix, which captures the dynamics of the converter, was calculated using MATLAB. Additionally, a reference model was constructed in Simulink. This reference model provided a benchmark for the desired behavior of the controller, allowing for performance evaluation and comparison against the actual system response. In order to implement the MPC in hardware, the coefficients obtained from MATLAB were converted into fixed-point numbers. We found this to be impossible to implement via AI (both Bard and ChatGPT). To accomplish this, an online tool developed by GitHub user Chummersone was employed. This conversion is necessary to ensure compatibility with the target hardware and to facilitate subsequent implementation steps.

Next, the MATLAB code for the MPC was given as input to Google Bard, to develop an error-free module capable of carrying out the required control function. This was an iterative process involving refining the code, incorporating feedback from Google Bard, and improving the module until the desired performance was achieved. We faced some issues on this stage, since sometimes Bard would deliver nonsensical implementations which had to be carefully scrutinized.

Once the module was developed, it was tested using handwritten testbenches to verify its correctness and functionality. These testbenches involve designing specific input scenarios and comparing the module's output against expected results. Finally, the Verilog was converted to GDSII format using OpenLane.

image_3rd_win_diagram.png

What did you learn from this experience?

We honestly were not expecting a win on the module we submitted. We were more interested in gauging the capabilities of generative AI for developing application specific products. We realized that while generative AI might not be able to perform the full end to end flow yet, it is still an absolute game-changer for development and debugging.

How would you extend your project or what would you do next time?

In the future, we hope to implement a larger horizon MPC for longer prediction windows, for different applications. Instead of baking the coefficients into the design, we plan to implement a re-configurable module that can adapt its functionality based on the operating conditions.

Dr Abid.jpeg

Dr. Abid

Dr Abid has over 18 years of experience in the field of embedded systems and VLSI Design. He holds a PhD in high performance embedded computing from Imperial College London, UK. Currently, he is head of engineering at Rapid Silicon Design Center, Islamabad where he is supervising across all domains of IC Design including front end design, design verification and physical design. He holds a faculty position at SEECS, NUST and is Director of Reconfigurable Chip Design Lab at NUST.

Asma_Mohsin.jpg

Asma Mohsin

Engr. Asma Mohsin is a professional graduate in Electrical Engineering (Electronics) from the Pakistan Institute of Engineering and Applied Sciences (PIEAS), Islamabad (2022). Currently serving as a Graduate Trainee Engineer at Rapid Silicon, she specializes in VLSI backend design, utilizing open-source tools and Verilog coding. With a strong focus on innovation and continuous learning, she aims to contribute to the advancement of the semiconductor industry through her expertise in the physical design domain.

Dr Ammar.png

Dr. Ammar

Dr. Ammar Hasan obtained his Ph.D. in control systems from Imperial College London, UK in 2012. Since then, he has been at the NUST School of Electrical Engineering and Computer Science, where he is currently serving as a Professor. His research is mainly in the area of control of power converters, optimization, and electric vehicle technology.

Muhammad_Ali_Farooq.jpg

Muhammad Ali Farooq

Muhammad Ali Farooq is a final-year student at the National University of Science and Technology's School of Electrical and Computer Sciences, where he is pursuing a degree in Electrical Engineering (BEng). Ali is currently engaged in research on FPGA architectures for deep learning inference. Upon completion of his undergraduate studies, he intends to apply for graduate school to further contribute to the field and advance his career as a researcher.