From 33e80b96c7aac6b93e6bee18572abf529f8cc1fa Mon Sep 17 00:00:00 2001 From: Clifford Wolf Date: Mon, 16 Feb 2015 12:41:48 +0100 Subject: Added YosysJS wrapper --- misc/yosysjs/demo02.html | 102 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 102 insertions(+) create mode 100644 misc/yosysjs/demo02.html (limited to 'misc/yosysjs/demo02.html') diff --git a/misc/yosysjs/demo02.html b/misc/yosysjs/demo02.html new file mode 100644 index 000000000..ec33198c7 --- /dev/null +++ b/misc/yosysjs/demo02.html @@ -0,0 +1,102 @@ + + YosysJS Example Application #02 + + + +

YosysJS Example Application #02

+

+

+ + + +

+ + + + -- cgit v1.2.3 From 3e5e9a38895b0ce45c185916fa946dec38ffbab3 Mon Sep 17 00:00:00 2001 From: Clifford Wolf Date: Mon, 16 Feb 2015 13:23:54 +0100 Subject: More YosysJS stuff --- misc/yosysjs/demo02.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'misc/yosysjs/demo02.html') diff --git a/misc/yosysjs/demo02.html b/misc/yosysjs/demo02.html index ec33198c7..d36e223c9 100644 --- a/misc/yosysjs/demo02.html +++ b/misc/yosysjs/demo02.html @@ -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'; -- cgit v1.2.3