URL
https://opencores.org/ocsvn/socgen/socgen/trunk
Subversion Repositories socgen
Compare Revisions
- This comparison shows the changes necessary to convert path
/socgen/trunk/tools/simulation
- from Rev 125 to Rev 126
- ↔ Reverse comparison
Rev 125 → Rev 126
/TestBench
File deleted
/run_sims
150,8 → 150,20
if (system($cmd)) {} |
|
chdir $home; |
} |
|
|
|
foreach my $i_name ($sogen_file->findnodes("//socgen:componentConfiguration/socgen:sim/socgen:verilator/socgen:test/socgen:name")) |
{ |
my($sim_name) = $i_name ->findnodes('./text()')->to_literal ; |
my($sim_configuration) = $i_name ->findnodes('../socgen:configuration/text()')->to_literal ; |
my($sim_variant) = $i_name ->findnodes('../socgen:variant/text()')->to_literal ; |
print " VSIMs $sim_name $sim_configuration $sim_variant "; |
chdir ".${work_site}/${vendor}__${project}/ip/${component}/sim/verilator/${sim_name}"; |
$cmd ="make verilator\n"; |
if (system($cmd)) {} |
chdir $home; |
} |
|
} |
/build_icarus_filelists
262,6 → 262,7
if($version) {$variant = "${name}_${version}"} |
else {$variant = "${name}"} |
print "rtl/gen directories for $project - $component VLNV $vendor - $library - $name - $variant \n"; |
$module_name = yp::lib::get_module_name($vendor,$library,$name,$version); |
} |
|
|
312,7 → 313,7
print DUTFILE "`define SYNTHESIS \n"; |
print DUTFILE "`timescale 1ns/1ns \n"; |
print DUTFILE " module TB(); \n"; |
print DUTFILE " $variant test ( ); \n"; |
print DUTFILE " $module_name test ( ); \n"; |
print DUTFILE " endmodule \n"; |
} |
|
484,8 → 485,8
print SIM_PARM_FILE " #($local_parameters{\"PERIOD\"}/2) clk = !clk; \n"; |
print SIM_PARM_FILE "`include \"./test_define\" \n"; |
|
my $module_name = yp::lib::get_module_name($vendor,$project,$component,$version); |
|
|
print SIM_PARM_FILE " $module_name \n"; |
my $first =1; |
foreach my $parameter_name (@local_order) |
/build_coverage
163,7 → 163,29
print MAKCOVFILE "\tcovered score -cdd ${cover_name}.cdd -vcd ../../icarus/\$(TEST)/TestBench.vcd 2>> ${cover_name}_sco_cov.log | tee >> ${cover_name}_sco_cov.log ;\\\n"; |
} |
|
|
|
|
|
print MAKCOVFILE " \n"; |
print MAKCOVFILE ".PHONY score_cov_ver:\n"; |
print MAKCOVFILE "score_cov_ver:\n"; |
|
foreach my $i_name ($sogen_file->findnodes("//socgen:testbench[socgen:variant/text() = '$variant']/socgen:code_coverage/socgen:cover/socgen:name")) |
{ |
my($cover_name) = $i_name ->findnodes('./text()')->to_literal ; |
my($cover_inst) = $i_name ->findnodes('../componentInstance/text()')->to_literal ; |
print MAKCOVFILE "\tcovered score -cdd ${cover_name}.cdd -vcd ../../verilator/\$(TEST)/TestBench.vcd 2>> ${cover_name}_sco_cov.log | tee >> ${cover_name}_sco_cov.log ;\\\n"; |
} |
|
|
|
|
|
|
|
|
print MAKCOVFILE " \n"; |
print MAKCOVFILE ".PHONY report_cov:\n"; |
print MAKCOVFILE "report_cov:\n"; |
|