Skip to content

Commit

Permalink
Handle undefined inouts in automatic code block generation from Verilog
Browse files Browse the repository at this point in the history
  • Loading branch information
lmcapacho committed Jan 16, 2025
1 parent ade48cc commit 6176281
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions app/scripts/services/forms.js
Original file line number Diff line number Diff line change
Expand Up @@ -1749,12 +1749,14 @@ angular.module('icestudio')
const result = utils.parseVerilog(content);
portsIn = result.inputs;
portsOut = result.outputs;
portsInOutLeft = result.inouts;
paramsIn = result.parameters;
field0.write(result.inputs);
field1.write(result.outputs);
field2.write(result.parameters);
field3.write(result.inouts);
if (portsInOutLeft !== undefined) {
portsInOutLeft = result.inouts;
field3.write(result.inouts);
}
self.code = result.moduleBody;
}
});
Expand Down

0 comments on commit 6176281

Please sign in to comment.