mirror of https://github.com/YosysHQ/yosys.git
YosysJS firefox fixes
This commit is contained in:
parent
e0e6d130cd
commit
78b991d760
|
@ -58,7 +58,6 @@ endmodule</span></pre><p/>
|
||||||
} else {
|
} else {
|
||||||
wdata = ys.read_file('wave.json');
|
wdata = ys.read_file('wave.json');
|
||||||
if (wdata) {
|
if (wdata) {
|
||||||
console.log(wdata)
|
|
||||||
wdata = JSON.parse(wdata);
|
wdata = JSON.parse(wdata);
|
||||||
function wsignal(signame, newname) {
|
function wsignal(signame, newname) {
|
||||||
for (i = 0; i < wdata["signal"].length; i++)
|
for (i = 0; i < wdata["signal"].length; i++)
|
||||||
|
@ -81,7 +80,6 @@ endmodule</span></pre><p/>
|
||||||
"config" : wdata["config"]
|
"config" : wdata["config"]
|
||||||
};
|
};
|
||||||
wdata2 = JSON.stringify(wdata2)
|
wdata2 = JSON.stringify(wdata2)
|
||||||
console.log(wdata2)
|
|
||||||
w.innerHTML = '<b>The model did not pass verification:</b><p/>' +
|
w.innerHTML = '<b>The model did not pass verification:</b><p/>' +
|
||||||
'<script type="WaveDrom">' + wdata2 + '<\/script>';
|
'<script type="WaveDrom">' + wdata2 + '<\/script>';
|
||||||
WaveDrom.ProcessAll();
|
WaveDrom.ProcessAll();
|
||||||
|
@ -98,6 +96,5 @@ endmodule</span></pre><p/>
|
||||||
YosysJS.load_viz();
|
YosysJS.load_viz();
|
||||||
var ys = YosysJS.create('', on_ys_ready);
|
var ys = YosysJS.create('', on_ys_ready);
|
||||||
ys.logprint = true;
|
ys.logprint = true;
|
||||||
ys.echo = true;
|
|
||||||
</script>
|
</script>
|
||||||
</body></html>
|
</body></html>
|
||||||
|
|
|
@ -137,8 +137,11 @@ var YosysJS = new function() {
|
||||||
span.textContent = text + "\n";
|
span.textContent = text + "\n";
|
||||||
span.style.fontFamily = 'monospace';
|
span.style.fontFamily = 'monospace';
|
||||||
span.style.whiteSpace = 'pre';
|
span.style.whiteSpace = 'pre';
|
||||||
doc.body.appendChild(span);
|
doc.firstChild.appendChild(span);
|
||||||
ys.window.scrollTo(0, doc.body.scrollHeight)
|
if (doc.body)
|
||||||
|
ys.window.scrollTo(0, doc.body.scrollHeight);
|
||||||
|
else
|
||||||
|
ys.window.scrollBy(0, 100);
|
||||||
}
|
}
|
||||||
|
|
||||||
ys.prompt = function() {
|
ys.prompt = function() {
|
||||||
|
|
Loading…
Reference in New Issue