mirror of
https://github.com/sehugg/8bitworkshop.git
synced 2025-01-14 13:31:17 +00:00
verilog: use --debug-check flag instead of --xml-output
This commit is contained in:
parent
6c704d78fe
commit
9f39f9c531
@ -209,6 +209,7 @@ TODO:
|
|||||||
- show current tool for file
|
- show current tool for file
|
||||||
- download non-text incbin source file
|
- download non-text incbin source file
|
||||||
- show hidden header files that only exist in Emscripten FS
|
- show hidden header files that only exist in Emscripten FS
|
||||||
|
- WASI modules: https://docs.wasmer.io/integrations/js/wasi/browser
|
||||||
|
|
||||||
Probing
|
Probing
|
||||||
- probe log doesn't start @ reset
|
- probe log doesn't start @ reset
|
||||||
@ -414,7 +415,7 @@ Emulator Lib
|
|||||||
- MAME
|
- MAME
|
||||||
- debugging?
|
- debugging?
|
||||||
- kbd instructions don't work
|
- kbd instructions don't work
|
||||||
|
- https://emscripten.org/docs/porting/asyncify.html
|
||||||
|
|
||||||
Markdown (showdown) interface
|
Markdown (showdown) interface
|
||||||
- add code patches to files
|
- add code patches to files
|
||||||
@ -553,3 +554,4 @@ extern void do_func(void)
|
|||||||
#pragma warnings
|
#pragma warnings
|
||||||
CFG files
|
CFG files
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
|
|
||||||
import { C64_WASMMachine } from "../machine/c64";
|
import { C64_WASMMachine } from "../machine/c64";
|
||||||
import { Platform, Base6502MachinePlatform, getToolForFilename_6502, getOpcodeMetadata_6502 } from "../common/baseplatform";
|
import { Platform, Base6502MachinePlatform, getToolForFilename_6502, getOpcodeMetadata_6502, BaseMAMEPlatform } from "../common/baseplatform";
|
||||||
import { PLATFORMS } from "../common/emu";
|
import { PLATFORMS } from "../common/emu";
|
||||||
|
|
||||||
const C64_PRESETS = [
|
const C64_PRESETS = [
|
||||||
@ -58,5 +58,38 @@ class C64WASMPlatform extends Base6502MachinePlatform<C64_WASMMachine> implement
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// C64 MAME platform
|
||||||
|
abstract class C64MAMEPlatform extends BaseMAMEPlatform {
|
||||||
|
getPresets() { return C64_PRESETS; }
|
||||||
|
getToolForFilename = getToolForFilename_6502;
|
||||||
|
getOpcodeMetadata = getOpcodeMetadata_6502;
|
||||||
|
getDefaultExtension() { return ".c"; }
|
||||||
|
loadROM(title, data) {
|
||||||
|
if (!this.started) {
|
||||||
|
this.startModule(this.mainElement, {
|
||||||
|
jsfile:'mame8bitws.js',
|
||||||
|
biosfile:'c64.zip',
|
||||||
|
cfgfile:'c64.cfg',
|
||||||
|
driver:'c64',
|
||||||
|
width:336*2,
|
||||||
|
height:225*2,
|
||||||
|
romfn:'/emulator/disk.d64',
|
||||||
|
romdata:new Uint8Array(data),
|
||||||
|
romsize:0x2000,
|
||||||
|
preInit:function(_self) {
|
||||||
|
},
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
this.loadROMFile(data);
|
||||||
|
this.loadRegion(":cartleft:cart:rom", data);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
start() {
|
||||||
|
}
|
||||||
|
getMemoryMap() { return C64_MEMORY_MAP; }
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
PLATFORMS['c64'] = C64WASMPlatform;
|
PLATFORMS['c64'] = C64WASMPlatform;
|
||||||
PLATFORMS['c64.wasm'] = C64WASMPlatform;
|
PLATFORMS['c64.wasm'] = C64WASMPlatform;
|
||||||
|
PLATFORMS['c64.mame'] = C64MAMEPlatform;
|
||||||
|
@ -608,11 +608,11 @@ var VerilogPlatform = function(mainElement, options) {
|
|||||||
trace_signals = trace_signals.filter((v) => { return IGNORE_SIGNALS.indexOf(v.name)<0; }); // remove clk, reset
|
trace_signals = trace_signals.filter((v) => { return IGNORE_SIGNALS.indexOf(v.name)<0; }); // remove clk, reset
|
||||||
$("#speed_bar").show();
|
$("#speed_bar").show();
|
||||||
$("#run_bar").show();
|
$("#run_bar").show();
|
||||||
$("#xtra_bar").show();
|
$("#dbg_record").show();
|
||||||
} else {
|
} else {
|
||||||
$("#speed_bar").hide();
|
$("#speed_bar").hide();
|
||||||
$("#run_bar").hide();
|
$("#run_bar").hide();
|
||||||
$("#xtra_bar").hide();
|
$("#dbg_record").hide();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1776,7 +1776,6 @@ function compileVerilator(step:BuildStep) {
|
|||||||
var errors : WorkerError[] = [];
|
var errors : WorkerError[] = [];
|
||||||
gatherFiles(step);
|
gatherFiles(step);
|
||||||
// compile verilog if files are stale
|
// compile verilog if files are stale
|
||||||
var xmlPath = "main.xml";
|
|
||||||
if (staleFiles(step, [xmlPath])) {
|
if (staleFiles(step, [xmlPath])) {
|
||||||
// TODO: %Error: Specified --top-module 'ALU' isn't at the top level, it's under another cell 'cpu'
|
// TODO: %Error: Specified --top-module 'ALU' isn't at the top level, it's under another cell 'cpu'
|
||||||
// TODO: ... Use "/* verilator lint_off BLKSEQ */" and lint_on around source to disable this message.
|
// TODO: ... Use "/* verilator lint_off BLKSEQ */" and lint_on around source to disable this message.
|
||||||
@ -1809,12 +1808,13 @@ function compileVerilator(step:BuildStep) {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
starttime();
|
starttime();
|
||||||
|
var xmlPath = `obj_dir/V${topmod}.xml`;
|
||||||
try {
|
try {
|
||||||
var args = ["--cc", "-O3"/*abcdefstzsuka*/, "-DEXT_INLINE_ASM", "-DTOPMOD__"+topmod,
|
var args = ["--cc", "-O3"/*abcdefstzsuka*/, "-DEXT_INLINE_ASM", "-DTOPMOD__"+topmod,
|
||||||
"-Wall",
|
"-Wall",
|
||||||
"-Wno-DECLFILENAME", "-Wno-UNUSED", "-Wno-EOFNEWLINE", "-Wno-PROCASSWIRE",
|
"-Wno-DECLFILENAME", "-Wno-UNUSED", "-Wno-EOFNEWLINE", "-Wno-PROCASSWIRE",
|
||||||
"--x-assign", "fast", "--noassert", "--pins-sc-biguint",
|
"--x-assign", "fast", "--noassert", "--pins-sc-biguint",
|
||||||
"--xml-output", xmlPath,
|
"--debug-check", // for XML output
|
||||||
"--top-module", topmod, step.path]
|
"--top-module", topmod, step.path]
|
||||||
verilator_mod.callMain(args);
|
verilator_mod.callMain(args);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user