I am trying to build a top-level component of 4x4 multiplier in VHDL and I have some trouble understanding a few things.
I am trying to write VHDL code to represent the following component below:
Circuit figure for the implementation of VHDL Code
I have written the following VHDL code for it but would like if someone could take a look at it and give me their feedback:
LIBRARY ieee;
USE ieee.std_logic_1164.all;
ENTITY multiplier IS
PORT(
cin : IN STD_LOGIC;
cout: OUT STD_LOGIC;
SUM : OUT STD_LOGIC;
mk1 : IN STD_LOGIC;
mk : IN STD_LOGIC;
q0 : IN STD_LOGIC;
q1 : IN STD_LOGIC);
END multiplier;
ARCHITECTURE function OF multiplier IS
BEGIN
cout <= (((q0 AND mk1) AND (q1 AND mk)) OR ((q0 AND mk1) AND cin) OR ((q1 AND mk) AND cin));
sum <= ((q0 AND mk1) XOR (q1 AND mk) XOR cin);
END function;
This brings me to my last question, simulation waveform, how can I confirm the functionality of the circuit myself?
Thank you in advance