hemant_rathee
Newbie level 3
Can anyone help me about the lint checks. Why the lint checks are done. What are its advantages and disadvantages. Which are the lint tools used ?
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
library ieee;
use IEEE.std_logic_1164.all;
use IEEE.numeric_std.all;
entity tests is
port (a:in unsigned(7 downto 0):=x"06";
b:in unsigned (7 downto 0):=x"06" ;
c:out unsigned (7 downto 0));
end tests;
architecture tests of tests is
--
--
function mult (a,b:in unsigned (7 downto 0) )
return unsigned is
variable z:unsigned (15 downto 0):=X"0000";
variable y:unsigned (15 downto 0);
variable i:integer:=0;
begin
y(7 downto 0):=b;
while(i<7) loop
if(a(i)='1') then
z:=z xor y;
end if;
y:= y(7 downto 0)*x"02" ;
if (y(11 downto 0)>=X"100") then
y:=y xor X"111d";
end if;
i:=i+1;
end loop ;
return (z(7 downto 0) );
end mult;
begin
c<=mult(mult(a,b),a);
end tests ;
# Compile Architecture "tests" of Entity "tests"
# Warning: LINT_3024: mul_Tests.vhd : (17, 1): Initial value is ignored by synthesis tool
# Warning: LINT_3024: mul_Tests.vhd : (19, 1): Initial value is ignored by synthesis tool
# Warning: LINT_2005: mul_Tests.vhd : (26, 1): Operator * (mul) used
# Compile success 0 Errors 4 Warnings Analysis time : 1.0 [s]
Warning: In design 'top', input pin 't1_start' of hierarchical cell 'CLK_CTR' has one or more internal loads, but is not connected to any nets. 'Logic 0' is assumed. (LINT-59)