1
0
mirror of https://github.com/sehugg/8bitworkshop.git synced 2024-12-26 22:31:14 +00:00

fixed verilog

This commit is contained in:
Steven Hugg 2018-06-25 10:02:06 -06:00
parent 3c7de544b0
commit 96a324fef2

View File

@ -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);