mirror of
https://github.com/sehugg/8bitworkshop.git
synced 2024-11-26 10:49:17 +00:00
verilog: enable signal not handled specially
This commit is contained in:
parent
74ce0e80c2
commit
4dfef4ca22
@ -293,6 +293,7 @@ export class WaveformView {
|
|||||||
var oldValue = data[0] || 0;
|
var oldValue = data[0] || 0;
|
||||||
var min = 0;
|
var min = 0;
|
||||||
var max = (1 << meta.len) - 1;
|
var max = (1 << meta.len) - 1;
|
||||||
|
//console.log(meta, oldValue, min, max);
|
||||||
if (max == 1) {
|
if (max == 1) {
|
||||||
this.wfp.setSignalValue(row, oldValue > 0 ? 0 : 1);
|
this.wfp.setSignalValue(row, oldValue > 0 ? 0 : 1);
|
||||||
} else {
|
} else {
|
||||||
|
@ -173,7 +173,6 @@ abstract class VerilatorBase {
|
|||||||
maxVclockLoop = 0;
|
maxVclockLoop = 0;
|
||||||
clk = 0;
|
clk = 0;
|
||||||
reset = 0;
|
reset = 0;
|
||||||
enable?;
|
|
||||||
|
|
||||||
vl_fatal(msg:string) {
|
vl_fatal(msg:string) {
|
||||||
console.log(msg);
|
console.log(msg);
|
||||||
@ -183,9 +182,6 @@ abstract class VerilatorBase {
|
|||||||
setTicks(T:number) { this.totalTicks = T|0; }
|
setTicks(T:number) { this.totalTicks = T|0; }
|
||||||
|
|
||||||
__reset() {
|
__reset() {
|
||||||
if (this.enable !== undefined) {
|
|
||||||
this.enable = 1; // enable enable if defined
|
|
||||||
}
|
|
||||||
if (this.reset !== undefined) {
|
if (this.reset !== undefined) {
|
||||||
this.totalTicks = 0;
|
this.totalTicks = 0;
|
||||||
this.reset = 0;
|
this.reset = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user