Lint PPT
Lint PPT
What is Linting:
Linting is a process of static code analysis of the RTL design to check the
quality of the code using thousands of guidelines/rules based on good
coding practises.
Provides an insight into RTL code at an early stage in the design cycle.
What is the main objective of linting
• To come up with clean RTL before proceeding to the backend stages of
ASIC design cycle.
• To reduce the synthesis errors ,simulation synthesis mismatch
issues,connectivity issues etc.
input b;
In this example ,by default the o/p c is a
output c; wire.It is not needed to declare it as wire.
assign c=a+b;
endmodule But some synthesis tools may need it to be
declared as wire.
W123:Identifies signals and variables that are read but not set
EXAMPLE-8
module example8(out,clk);
When constant value is wider
input clk; than the width of a constant ,it
output out; results in truncation of extra
always@(posedge clk) bits.This trun leads to truncation
begin of extra bits data loss and
out<=1’b101; unexpected behaviour.
if(out==2’b101)
begin
-------
end
end
endmodule
module example15(in1,clk,out1,out2);
input in1,clk;
output reg out1,out2;
intial begin
out1=1’b0;
out2=1’b0;
end
endmodule