Skip to content

Commit

Permalink
Update compiler.js
Browse files Browse the repository at this point in the history
Mod to allow IOtype setting from verilog code on ECP5 boards
  • Loading branch information
jojo535275 committed Oct 31, 2023
1 parent 20187bb commit ccda8b3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/scripts/services/compiler.js
Original file line number Diff line number Diff line change
Expand Up @@ -902,8 +902,8 @@ angular.module('icestudio')

if (pullmode === 'UP' || pullmode === 'DOWN') {
code += 'PULLMODE=' + pullmode;
}
code += ' IO_TYPE=LVCMOS33 DRIVE=4;\n\n';
}
code += ' ;\n\n';
}
} else if (block.data.pins.length > 0) {
pin = block.data.pins[0];
Expand All @@ -925,7 +925,7 @@ angular.module('icestudio')
if (pullmode === 'UP' || pullmode === 'DOWN') {
code += 'PULLMODE=' + pullmode;
}
code += ' IO_TYPE=LVCMOS33 DRIVE=4;\n\n';
code += ' ;\n\n';
}
}
}
Expand Down

0 comments on commit ccda8b3

Please sign in to comment.