Implementing 2-bit Array Multiplier Using VSDSquadron Mini

  • Inputs : Two sets of 2-bit inputs are connected to the GPIO pins of the VSDSquadron Mini for the binary numbers to be multiplied.
  • Outputs : Four LEDs connected to different GPIO pins display the 4-bit multiplication result.
  • The specific GPIO pins used for inputs and outputs should be configured according to the project code, ensuring correct data flow and output display.
#include <ch32v00x.h>

#include <debug.h>
int and_gate(int bit1, int bit2) {

return bit1 & bit2;


int xor_gate(int bit1, int bit2) {

return bit1 ^ bit2;

void GPIO_Config(void) {

// Example configuration for an input pin

GPIO_InitTypeDef GPIO_InitStructure;


GPIO_InitStructure.GPIO_Pin = GPIO_Pin_3; // Input pin

GPIO_InitStructure.GPIO_Mode = GPIO_Mode_IPU; // Pull-up input

GPIO_Init(GPIOD, &GPIO_InitStructure);

// Example configuration for an output pin

GPIO_InitStructure.GPIO_Pin = GPIO_Pin_2; // Output pin

GPIO_InitStructure.GPIO_Mode = GPIO_Mode_Out_PP; // Push-pull output

GPIO_InitStructure.GPIO_Speed = GPIO_Speed_50MHz;

GPIO_Init(GPIOD, &GPIO_InitStructure);

int main(void) {

SystemCoreClockUpdate(); // Update system clock

NVIC_PriorityGroupConfig(NVIC_PriorityGroup_2); // Configure NVIC

Delay_Init(); // Initialize delay functions

GPIO_Config(); // Configure GPIO

while (1) {

// Assume GPIO_ReadInputDataBit and GPIO_WriteBit are utility functions

// to read input states and write output states, respectively.

// Reading input bits

uint8_t a0 = GPIO_ReadInputDataBit(GPIOD, GPIO_Pin_3);

uint8_t a1 = GPIO_ReadInputDataBit(GPIOD, GPIO_Pin_4);

uint8_t b0 = GPIO_ReadInputDataBit(GPIOC, GPIO_Pin_3);

uint8_t b1 = GPIO_ReadInputDataBit(GPIOC, GPIO_Pin_4);

// Computing partial products

uint8_t p0 = and_gate(a0, b0);

uint8_t p1 = xor_gate(and_gate(a0, b1), and_gate(a1, b0));

// Additional operations for p2, p3 as per the 2-bit multiplication logic

// Displaying results on LEDs

GPIO_WriteBit(GPIOD, GPIO_Pin_2, p0 ? SET : RESET);

// Additional GPIO_WriteBit calls to display p1, p2, p3



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