add 6800 timing state to tabulation

This commit is contained in:
BigEd 2011-04-11 14:07:51 +00:00
parent 658d40646c
commit 6c138a4f6b

View File

@ -14,8 +14,8 @@ nodenamereset = 'reset';
presetLogLists=[ presetLogLists=[
['cycle',], ['cycle',],
['ab','db','rw','vma','Fetch','pc','acca','accb','ix','sp','p'], ['ab','db','rw','vma','Fetch','pc','acca','accb','ix','sp','p'],
['ir','sync','Execute'], // instruction fetch and execution control ['ir','sync','Execute','State'], // instruction fetch and execution control
['dbi','dbo','tmp'], // internal state ['dbi','dbo','tmp'], // internal register-sized state
['idb','abh','abl','ablx'], // internal busses ['idb','abh','abl','ablx'], // internal busses
['irq','nmi',nodenamereset,'tsc','dbe','halt','ba'], // other pins ['irq','nmi',nodenamereset,'tsc','dbe','halt','ba'], // other pins
]; ];
@ -125,6 +125,33 @@ function readPstring(){
return result; return result;
} }
// The 6800 state control is something like a branching shift register
// ... but not quite like that
TCStates=[
"Ts",
"Tx0", "Tx1", "Tx2",
"Ta0", "Ta1", "Ta2",
"Td0_0",
"#Te0", "Te1_0",
"Tg0", "Tg1", "Tg2", "Tg3", "Tg4", "Tg5", "Tg6", "Tg7", "Tg8",
"Tr3", "Tr4", "Tr5", "Tr6", "Tr7", "Tr8",
];
function listActiveTCStates() {
var s=[];
for(var i=0;i<TCStates.length;i++){
var t=TCStates[i];
// remove a leading hash, but invert the signal
// in any case, remove any trailing suffix
if(t[0]=="#"){
if(!isNodeHigh(nodenames[t])) s.push(t.slice(1,4));
} else {
if(isNodeHigh(nodenames[t])) s.push(t.slice(0,3));
}
}
return s.join("+");
}
function busToString(busname){ function busToString(busname){
// takes a signal name or prefix // takes a signal name or prefix
// returns an appropriate string representation // returns an appropriate string representation