simple multiplier/devider - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

simple multiplier/devider

i need your help with the folowing code.

The circuit has two 8 bit integer inputs a and b and two integer outputs x and y when x=a*b and y=a/2.
The code must be concurrent.

Here is what i wrote:

library IEEE;
use ieee.std_logic_arith.all;

package my_data_types is
type integer_input is array (7 downto 0) of integer range -8 to 8;
end my_data_types;

library IEEE;
use ieee.std_logic_arith.all;

entity mul_dev is
port (a,b: in integer_input(7 downto 0);
x,y: out integer_input (7 downto 0));
end mul_dev;

architecture Behavioral of mul_dev is


x is not declared.
Entity is not yet compiled.

It seems he won't accept the pre defined array, what coul be the problem?

Sign In or Register to comment.