利用Synopsys VCS对Verilog代码加密的方法
- 本人采用的VCS版本是2014版本,其他版本只提供参考;
方法一:
官方说明:
+autoprotect[<file_suffix>]
Creates a protected source file; all modules are encrypted.
个人解释:
程序测试:
module Count(
input wire Sys_clk,
input wire Reset_n,
input wire count_en,
input wire count_clr,
output reg [4:0] count
);
always @(posedge Sys_clk or negedge Reset_n)
begin
if(~Reset_n)
count[4:0] <= 5'h0;
else if(count_clr)
count[4:0] <= 5'h0;
else if(count_en)
count[4:0] <= count[4:0]+1'b1;
else
count[4:0] <= count[4:0];
end
endmodule
module Count
`protected
g7FQH7O7G.&0[3CTc,^6_C&E-=P4IE:E7gS9S@Nf6eW-,cMWPP053)[Ndd^DE3:F
#JJd+AE36UgIBa8?f8LT2fG6+UNX9L&H?#-bP>;N7U(T[cOgQ;I_Ke[cF;=J]9\<
c(J0@CO?_5J#9b_Q1DEe=\4]9[bA.OeK1A6T+MREYH\.9e>9P?&6Pb>_Z6UL>E&L
WROQR941>dA/?E:EP.X[-b[#0JQb+];;Z.S=5#>80E(\H50PQKbHHfUYI&H=M_SB
=ISf_)d9-6-PA]RM4<6LW/A91Z)BVf?Wa[f.?[Ve&QRO?XD\3IJ1bAC/N=N_1EeK
UW3cUE/QDOaQ:B^@9_?.8VdB&>#FCcS7S+&R<2LL,-6fVd4)S_\abee:\S)+N/
=Y/XQ[/KM,Q]R5[J=H?cZRaT_RdIDX5-d&)Za&