diff --git a/app/scripts/services/blocks.js b/app/scripts/services/blocks.js index 07f805f85..f75126a98 100644 --- a/app/scripts/services/blocks.js +++ b/app/scripts/services/blocks.js @@ -408,7 +408,7 @@ angular.module('icestudio') for (let i = 0; i < portInfo.size; i++) { pins.push( { - index: i.toString(), + index: (portInfo.size - 1 - i).toString(), name: 'NULL', value: 'NULL' //-- Pin value });