mirror of
https://github.com/YosysHQ/yosys
synced 2025-07-24 13:18:56 +00:00
More YosysJS stuff
This commit is contained in:
parent
33e80b96c7
commit
3e5e9a3889
5 changed files with 83 additions and 105 deletions
|
@ -59,7 +59,7 @@ endmodule
|
|||
function work() {
|
||||
ys.write_file("input.v", document.getElementById('code').value);
|
||||
ys.run('design -reset; read_verilog input.v; show -stretch');
|
||||
YosysJS.dot_into_svg(ys.read_file('show.dot'), document.getElementById('svg'));
|
||||
YosysJS.dot_into_svg(ys.read_file('show.dot'), 'svg');
|
||||
document.getElementById('popup').style.visibility = 'hidden';
|
||||
}
|
||||
document.getElementById('popup').style.visibility = 'visible';
|
||||
|
@ -69,7 +69,7 @@ endmodule
|
|||
function work() {
|
||||
ys.write_file("input.v", document.getElementById('code').value);
|
||||
ys.run('design -reset; read_verilog input.v; proc; opt_clean; show -stretch');
|
||||
YosysJS.dot_into_svg(ys.read_file('show.dot'), document.getElementById('svg'));
|
||||
YosysJS.dot_into_svg(ys.read_file('show.dot'), 'svg');
|
||||
document.getElementById('popup').style.visibility = 'hidden';
|
||||
}
|
||||
document.getElementById('popup').style.visibility = 'visible';
|
||||
|
@ -79,7 +79,7 @@ endmodule
|
|||
function work() {
|
||||
ys.write_file("input.v", document.getElementById('code').value);
|
||||
ys.run('design -reset; read_verilog input.v; synth -run coarse; show -stretch');
|
||||
YosysJS.dot_into_svg(ys.read_file('show.dot'), document.getElementById('svg'));
|
||||
YosysJS.dot_into_svg(ys.read_file('show.dot'), 'svg');
|
||||
document.getElementById('popup').style.visibility = 'hidden';
|
||||
}
|
||||
document.getElementById('popup').style.visibility = 'visible';
|
||||
|
@ -89,7 +89,7 @@ endmodule
|
|||
function work() {
|
||||
ys.write_file("input.v", document.getElementById('code').value);
|
||||
ys.run('design -reset; read_verilog input.v; synth -run coarse; synth -run fine; show -stretch');
|
||||
YosysJS.dot_into_svg(ys.read_file('show.dot'), document.getElementById('svg'));
|
||||
YosysJS.dot_into_svg(ys.read_file('show.dot'), 'svg');
|
||||
document.getElementById('popup').style.visibility = 'hidden';
|
||||
}
|
||||
document.getElementById('popup').style.visibility = 'visible';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue