Skip to content

Commit

Permalink
code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
ialokim committed Sep 29, 2020
1 parent ce1d6de commit ee67f9e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/cells/dff.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export const Dff = Box.define('Dff', {
if ('clock' in polarity) {
last_clk = this.last_clk;
this.last_clk = data.clk.get(0);
};
}
if ('enable' in polarity && data.en.get(0) != pol('enable'))
return this.get('outputSignals');
if ('arst' in polarity && data.arst.get(0) == pol('arst'))
Expand Down
2 changes: 1 addition & 1 deletion src/cells/io.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,7 @@ export const IOView = BoxView.extend({
export const Input = IO.define('Input', {}, {
io_dir: 'out',
setLogicValue: function(sig) {
if (sig.bits != this.get('bits'))
if (sig.bits != this.get('bits'))
throw new Error("setLogicValue: wrong number of bits");
this.set('outputSignals', { out: sig });
}
Expand Down

0 comments on commit ee67f9e

Please sign in to comment.