You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
NewEduCoderBuild/js/iverilog/index.html

38 lines
1.2 KiB

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>verilog</title>
</head>
<body style="width:100%;height:100%;overflow: scroll;text-align: center; padding: 30px;">
<script src="./default.js" type="text/javascript"></script>
<script src="./js.js" type="text/javascript"></script>
<script>
window.addEventListener("message", function (type) {
if (type.data.data) {
try {
var script = document.createElement("script");
script.type = "WaveDrom"
script.innerText = JSON.stringify(type.data.data)
console.log("type.data.data:", type.data.data)
document.body.appendChild(script)
WaveDrom.ProcessAll()
} catch (e) {
// debugger
}
}
})
// { signal : [
// { name: "clk", wave: "p......" },
// { name: "bus", wave: "x.34.5x", data: "head body tail" },
// { name: "wire", wave: "0.1..0." },
// ]}
</script>
</body>
</html>