Simulation scripts in VHDL to make a binary multiplier hardware in sequential form

By ben06x | Electronics | 11 Apr 2021


The goal of this article is to show how to create a simulation script in VHDL to make a binary multiplier hardware in sequential form, multiplying 10 by 19, giving 190. in output.

 

In a run_file.tcl file, we type the following script commands:

run_file.tcl

This file allows us to launch the simulation with the desired signals directly, see chronogram at the end of the report.

 

In a multiplication.vhd file, we define a mult entity with ports of type std_logic_vector of 8 input bits and 16 output bits. The rest of the signals are of type std_logic.

ca459482aad9326565cd9e9ea73554f783e6c96e7a6e86d3a4d275b2aa3e0bd5.jpg

 

In a single rtl architecture, the different blocks of the data path are defined using following concurrent assignment instructions and supplemented with a description of the sequencer using of 2 processes.

e86a98056e98fd9905792fa83d925368043b0866c22b18ccd324255b58b9f956.jpg

 

In a testmult.vhd file, we define a test architecture to validate our architecture.

6ce0beb7bba624c64637a0064e7d4fbdc2e53c2e72748f9d02fd65bab367527b.jpg

 

For the following inputs :

  • multiplier = 10
  • multiplicand = 19

We have the following: output = 190.

The wave is this one:

7bdfebaa2ef93bcf063a8c0eb45f789c1d27f5de55952fd4e3b3eee6f362b3fa.jpg

 

Our timetable is very consistent.

 

We therefore created a simulation script in VHDL to make a binary multiplier hardware in sequential form, multiplying 10 by 19, giving 190.

 

This article is part of my Electronics posts blog, in which you can find few articles about things i learnt in my post-graduated school :)

How do you rate this article?

4



Electronics
Electronics

Some articles about things i learnt in my post-graduated school :)

Send a $0.01 microtip in crypto to the author, and earn yourself as you read!

20% to author / 80% to me.
We pay the tips from our rewards pool.