From 96a324fef2128fa1bb9b050a85c9a6bd28b694b0 Mon Sep 17 00:00:00 2001 From: Steven Hugg Date: Mon, 25 Jun 2018 10:02:06 -0600 Subject: [PATCH] fixed verilog --- src/worker/workermain.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/worker/workermain.js b/src/worker/workermain.js index f18d12aa..7c95aaa8 100644 --- a/src/worker/workermain.js +++ b/src/worker/workermain.js @@ -1298,9 +1298,13 @@ function compileInlineASM(code, platform, options, errors, asmlines) { return code; } -function compileVerilator(code, platform, options) { +function compileVerilator(step) { loadNative("verilator_bin"); load("verilator2js"); + var code = step.code; + var platform = step.platform || 'verilog'; + var options = step.options || {}; + // TODO: make work with files var errors = []; var asmlines = []; code = compileInlineASM(code, platform, options, errors, asmlines);