You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
module gradient(
finput P, Q, E,
foutput [8:0] out
);
assign out[0] = P;
assign out[1] = Q;
//(1/9)*(5*P + 3*Q);
endmodule
Error:
output dir: out/
['gradient.lfr']
Initialized the lfrcompiler
Traceback (most recent call last):
File "/home/ryu/.local/bin/lfr-compile", line 8, in <module>
sys.exit(main())
File "/home/ryu/.local/lib/python3.8/site-packages/lfr/cmdline.py", line 85, in main
walker.walk(mapping_listener, tree)
File "/home/ryu/.local/lib/python3.8/site-packages/antlr4/tree/Tree.py", line 151, in walk
self.walk(listener, child)
File "/home/ryu/.local/lib/python3.8/site-packages/antlr4/tree/Tree.py", line 151, in walk
self.walk(listener, child)
File "/home/ryu/.local/lib/python3.8/site-packages/antlr4/tree/Tree.py", line 151, in walk
self.walk(listener, child)
[Previous line repeated 1 more time]
File "/home/ryu/.local/lib/python3.8/site-packages/antlr4/tree/Tree.py", line 152, in walk
self.exitRule(listener, t)
File "/home/ryu/.local/lib/python3.8/site-packages/antlr4/tree/Tree.py", line 167, in exitRule
ctx.exitRule(listener)
File "/home/ryu/.local/lib/python3.8/site-packages/lfr/antlrgen/lfrXParser.py", line 958, in exitRule
listener.exitExplicitIOBlock(self)
File "/home/ryu/.local/lib/python3.8/site-packages/lfr/lfrbaseListener.py", line 166, in exitExplicitIOBlock
self.currentModule.add_io(m)
File "/home/ryu/.local/lib/python3.8/site-packages/lfr/compiler/module.py", line 37, in add_io
self.FIG.add_fignode(io.vector_ref[i])
File "/home/ryu/.local/lib/python3.8/site-packages/lfr/compiler/language/vectorrange.py", line 19, in __getitem__
return self.vector[self.startindex + key]
File "/home/ryu/.local/lib/python3.8/site-packages/lfr/compiler/language/vector.py", line 37, in __getitem__
raise IndexError()
IndexError
The text was updated successfully, but these errors were encountered:
Code:
Error:
The text was updated successfully, but these errors were encountered: