Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Could you please tell us on how to generate the encrypted/protected block from the
RTL ?
$ cat top.v
module top;
initial $display("FROM TOP MODULE");
inst1 inst1();
inst2 inst2();
inst3 inst3();
endmodule
$ cat inst1.v
module inst1();
initial $display("From Module INST1");
endmodule
$ cat inst2.v
module inst2();
initial $display("From Module INST2");
endmodule
$ cat inst3.v
module inst3();
initial $display("From Module INST3");
endmodule
QUESTION 2. I need to know sequence of steps for ncdc compilation of RTL top modules
Create a snapshot as :
it should generate a snapshot named as "worklib.top:v". You can verify the same with the
command as:
You should get the output file ncdc.v with the content as :
$ cat ncdc.v
//
// Generated by TOOL: ncdc
13.10-s013
// ./inst2.v : 1
module inst2();
initial
$display("From Module INST2");
endmodule
// ./inst3.v : 1
module inst3();
initial
$display("From Module INST3");
endmodule
// ./top.v : 1
module top;
initial
$display("FROM TOP MODULE");
inst1 inst1();
inst2 inst2();
inst3 inst3();
endmodule
Further you can use ncdc options "-mangle" and "-map <mapfile>" as :
-MANGLE
-MAP <arg>
You will get the output files ncdc_mangke.v and mangle.txt with content as :
$ cat ncdc_mangle.v
//
// Generated by TOOL: ncdc
13.10-s013
//
module v_1();
initial
$display("From Module INST1");
endmodule
module v_2();
initial
$display("From Module INST2");
endmodule
module v_3();
initial
$display("From Module INST3");
endmodule
module v_4;
initial
$display("FROM TOP MODULE");
v_1 v_1();
v_2 v_2();
v_3 v_3();
endmodule
$ cat mangle.txt
v_1
inst1
v_2
inst2
v_3
inst3
v_4
top
QUESTION 3. I need to know sequence of steps for ncdc decompilation of top.vp (protected file)
We do not allow to decompile (ncdc) the code from the snapshot made from encrypted code.
Tool will give the warning as:
ncdc: *W,PRTOBJ: Protected code encountered and ignored, please check the decompiled output.