MNaee
New Contributor
7 years agocan anybody help me in to remove this error......! full_adder.vhd(18): near "is": expecting: END in following code of full adder......!
library IEEE; use IEEE.STD_LOGIC_1164.ALL; entity full_adder is port ( -- Eingaben a : in std_logic ; b : in std_logic ; c : in std_logic ; sum_full : out std_logic ; carry_full :...
- 7 years ago
First off, there are quite a few issues with your code. I'll highlight them here:
- You've declared sum and carry outputs as std_logic, while the intermediate signals carry1, etc as bit. This is a type mismatch. You need to declare these also as std_logic.
- You've used a process for generating combinational logic. The general rule of design is that we use continuous assignments for combinational logic and Process for sequential logic.
- When using a Process, you must specify a Sensitivity list, ex, Process (a,b,c). If you do not specify this , the compiler may treat this as an infinite process loop and can generate errors.
- The Port mapping is wrong, it should be as
label/instance_name : component_name Port Map
(
... );
Make these changes to your code and it will compile without errors.