Permalink
Browse files

fix timsk codegen

  • Loading branch information...
badgeek committed May 9, 2018
1 parent f14b990 commit dd886be00332878be365c1035cdd5a9ea35a4ae2
@@ -16,7 +16,7 @@ var get_bitwrite = function(reg_temp, selection){
var tmp = ""
var waveform = reg_temp.registers[selection];
for (let i = 0; i < waveform.length; i++) {
tmp = tmp + 'bitWrite('+ reg_temp.reg_address[i] +','+ reg_temp.reg_param[i] +','+ waveform[i] +')\n';
tmp = tmp + 'bitWrite('+ reg_temp.reg_address[i] +','+ reg_temp.reg_param[i] +','+ waveform[i] +');\n';
}
return tmp
}
@@ -16,7 +16,7 @@ var get_bitwrite = function(reg_temp, selection){
var tmp = ""
var waveform = reg_temp.registers[selection];
for (let i = 0; i < waveform.length; i++) {
tmp = tmp + 'bitWrite('+ reg_temp.reg_address[i] +','+ reg_temp.reg_param[i] +','+ waveform[i] +')\n';
tmp = tmp + 'bitWrite('+ reg_temp.reg_address[i] +','+ reg_temp.reg_param[i] +','+ waveform[i] +');\n';
}
return tmp
}

0 comments on commit dd886be

Please sign in to comment.