summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfahim-oscad2016-07-18 16:20:50 +0530
committerfahim-oscad2016-07-18 16:20:50 +0530
commit5485b54b6117f87aeb7e93db17b1bbf8d7afbd80 (patch)
treedf9efb700155c9d53c65da3eae3e91cd3052ca63
parent3c36b03c59e72d8eff1ce89262c9334782606b62 (diff)
downloadeSimWebApp-5485b54b6117f87aeb7e93db17b1bbf8d7afbd80.tar.gz
eSimWebApp-5485b54b6117f87aeb7e93db17b1bbf8d7afbd80.tar.bz2
eSimWebApp-5485b54b6117f87aeb7e93db17b1bbf8d7afbd80.zip
web.png added
-rw-r--r--views/script/gui.js4
-rw-r--r--views/script/netlist.js12
2 files changed, 10 insertions, 6 deletions
diff --git a/views/script/gui.js b/views/script/gui.js
index f82dfa4..876f89f 100644
--- a/views/script/gui.js
+++ b/views/script/gui.js
@@ -146,7 +146,7 @@ var webtronics={
$("webtronics_risedelay").style.display='none';
$("webtronics_falldelay").style.display='none';
$("webtronics_inputload").style.display='none';
-
+ //console.log("Value of C: "+c);
if(!c){
netlistcreator.writewtx(this.circuit.selected[0],"name","ic");
}
@@ -670,7 +670,6 @@ var webtronics={
if(c=='and'|| c=='not'|| c=='nand'|| c=='or'||c=='nor'||c=='xor'||c=='xnor'){
-
$("webtronics_risedelay").style.display='block';
$("webtronics_falldelay").style.display='block';
$("webtronics_inputload").style.display='block';
@@ -1968,6 +1967,7 @@ console.log(exception);
$('webtronics_properties_div').style.display='none';
webtronics.enablepage();
var model=webtronics.circuit.selected[0];
+ //console.log("Model :"+model);
netlistcreator.writewtx(model,"id",$('webtronics_part_id').value);
netlistcreator.writewtx(model,"value",$('webtronics_part_value').value);
netlistcreator.writewtx(model,"model",$('webtronics_part_dir_value').value);
diff --git a/views/script/netlist.js b/views/script/netlist.js
index 5be53e4..d095ece 100644
--- a/views/script/netlist.js
+++ b/views/script/netlist.js
@@ -218,13 +218,15 @@ var netlistcreator={
catch{part.error="wtx:pins not found"}
*/
part.elem=parts[i];
-
+
+ console.log("Parts Elem :"+parts[i])
+
try{
var category=webtronics.circuit.getwtxtagname(parts[i],"analog")[0];
var nodes = webtronics.circuit.getwtxtagname(category,"node");
for(var j=0;j<nodes.length;j++){
- var point = this.matrixxform( {x:webtronics.circuit.getwtxattribute(nodes[j],"x"),y:webtronics.circuit.getwtxattribute(nodes[j],"y")},webtronics.circuit.parseMatrix(part.elem));
- part.analogpins.push({index:webtronics.circuit.getwtxattribute(nodes[j],"index"),x:point.x,y:point.y,node:undefined}) ;
+ var point = this.matrixxform( {x:webtronics.circuit.getwtxattribute(nodes[j],"x"),y:webtronics.circuit.getwtxattribute(nodes[j],"y")},webtronics.circuit.parseMatrix(part.elem));
+ part.analogpins.push({index:webtronics.circuit.getwtxattribute(nodes[j],"index"),x:point.x,y:point.y,node:undefined}) ;
}
//sort nodes int correct order
part.analogpins.sort(function(a,b){if (a.name > b.name)return 1;if (a.name < b.name)return -1;return 0;});
@@ -427,7 +429,9 @@ var netlistcreator={
//digital and
try{
+ console.log("RiseDelay Parts :"+parts[i])
part.risedelay=this.readwtx(parts[i],'risedelay');
+ console.log("part.risedelay :"+part.risedelay);
}
catch(e){part.error="wtx:risedelay not found";}
@@ -884,7 +888,7 @@ getnodes:function(parts){
}
}
-
+ console.log("Net :"+net)
return sections;
},