Hi, i have a problem when I want to simulate a programme that is only a division between two integer values. The compilation of the code is correct, but in the simulation appears this error:
# ** Fatal: (vsim-3807) Types do not match between component and entity for port "Dato1".
I don´t know what to do. Help please. Bellow is attached the programme.
entity UnsignedProject is
D1: in integer range 0 to 15;
D2: in integer range 0 to 15;
Res: out integer range 0 to 15
architecture Behavior of UnsignedProject is
Res <= D1 / D2;