We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
when I try to parser the following low Firrtl code through treadle, 2 syntax error(s) detected.
the low Firrtl code:
circuit Accumulator : @[:@2.0] module Accumulator : @[:@3.2] input clock : Clock @[:@4.4] input reset1 : UInt < 1 > @[:@5.4] input io_in : UInt < 1 > @[:@6.4] output io_out : UInt < 8 > @[:@6.4]
reg accumulator : UInt < 8 > , clock with : reset => ( UInt < 1 > ( "h0" ) , accumulator ) @[Accumulator.scala 16:28:@8.4] node _T_11 = add ( accumulator , io_in ) @[Accumulator.scala 17:30:@9.4] node _T_12 = tail ( _T_11 , 1 ) @[Accumulator.scala 17:30:@10.4] io_out <= accumulator @[Accumulator.scala 18:10:@12.4] accumulator <= mux ( reset1 , UInt < 8 > ( "h0" ) , _T_12 ) @[Accumulator.scala 17:15:@11.4]
when I try to parse it with treadle using: TreadleTestHarness(Seq(FirrtlSourceAnnotation(accuFirrtl))) the error is:
line 11:21 mismatched input '(' expecting {'circuit', 'module', 'extmodule', 'input', 'output', 'UInt', 'SInt', 'Fixed', 'Interval', '.', 'Clock', 'AsyncReset', 'Reset', 'Analog', '[', 'flip', 'parameter', 'reset', 'wire', 'reg', 'with', 'mem', 'cmem', 'smem', 'mport', 'inst', 'of', 'node', 'is', 'invalid', 'stop(', 'printf(', 'skip', 'attach', 'assert', 'assume', 'cover', 'depth', 'reader', 'writer', 'readwriter', 'when', 'else', 'infer', 'read', 'write', 'rdwr', 'old', 'new', 'undefined', 'stop', 'printf', 'mux', 'validif', FileInfo, Id, NEWLINE, DEDENT} line 15:4 extraneous input '' expecting Exception in thread "main" firrtl.SyntaxErrorsException: 2 syntax error(s) detected 1 targets failed playground.run subprocess failed
The text was updated successfully, but these errors were encountered:
No branches or pull requests
when I try to parser the following low Firrtl code through treadle, 2 syntax error(s) detected.
the low Firrtl code:
circuit Accumulator : @[:@2.0]
module Accumulator : @[:@3.2]
input clock : Clock @[:@4.4]
input reset1 : UInt < 1 > @[:@5.4]
input io_in : UInt < 1 > @[:@6.4]
output io_out : UInt < 8 > @[:@6.4]
when I try to parse it with treadle using: TreadleTestHarness(Seq(FirrtlSourceAnnotation(accuFirrtl)))
the error is:
line 11:21 mismatched input '(' expecting {'circuit', 'module', 'extmodule', 'input', 'output', 'UInt', 'SInt', 'Fixed', 'Interval', '.', 'Clock', 'AsyncReset', 'Reset', 'Analog', '[', 'flip', 'parameter', 'reset', 'wire', 'reg', 'with', 'mem', 'cmem', 'smem', 'mport', 'inst', 'of', 'node', 'is', 'invalid', 'stop(', 'printf(', 'skip', 'attach', 'assert', 'assume', 'cover', 'depth', 'reader', 'writer', 'readwriter', 'when', 'else', 'infer', 'read', 'write', 'rdwr', 'old', 'new', 'undefined', 'stop', 'printf', 'mux', 'validif', FileInfo, Id, NEWLINE, DEDENT}
line 15:4 extraneous input '' expecting
Exception in thread "main" firrtl.SyntaxErrorsException: 2 syntax error(s) detected
1 targets failed
playground.run subprocess failed
The text was updated successfully, but these errors were encountered: