Skip to content
New issue

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

Compilation Failed in DspBlock, 2.5_exercise #122

Open
YeyeQian opened this issue Oct 28, 2020 · 3 comments
Open

Compilation Failed in DspBlock, 2.5_exercise #122

YeyeQian opened this issue Oct 28, 2020 · 3 comments

Comments

@YeyeQian
Copy link

When compiling the DspBlock in 2.5_exercise, I run into some problem.
"
cmd2.sc:12: reference to Data is ambiguous;
it is imported twice in the same scope by
import root.chisel3.{Reg, Bool, withClockAndReset, assert, fromStringToLiteral, ExplicitCompileOptions, util, chiselTypeOf, Hexadecimal, Character, shim, IgnoreSeqInBundle, SyncReadMem, UnsupportedOperationException, stop, AutoClonetypeException, MixedDirectionAggregateException, SpecifiedDirection, NotLiteralException, ModuleAspect, fromIntToWidth, fromDoubleToLiteral, fromIntToLiteral, Output, Mux, withReset, Wire, ClockResolutionException, HasChiselExecutionOptions, PrintableHelper, getModulePorts, Record, FullName, fromLongToLiteral, Mem, Clock, UIntFactory, BoolFactory, withClock, Input, UnpokeableException, WhenContext, FirrtlFormat, Data, ChiselExecutionSuccess, printf, testers, fromIntToBinaryPoint, Printables, internal, ExpectedHardwareException, BindingException, Binary, Element, WireDefault, core, aop, RebindingException, VecFactory, BackendCompilationUtilities, Flipped, Module, fromBigIntToLiteral, Num, ChiselExecutionResult, ResetType, Percent, iotesters, Printable, tester, AliasedAggregateFieldException, RegNext, string2Printable, MonoConnectException, ActualDirection, RawModule, InstanceId, getDataElements, Bits, Name, Vec, stage, LiteralTypeException, Bundle, UInt, VecInit, PString, SIntFactory, ChiselException, dontTouch, ChiselExecutionOptions, SInt, ExpectedChiselTypeException, Reset, Decimal, SourceInfoDoc, Aggregate, fromBooleanToLiteral, CompileOptions, WireInit, BuildInfo, DontCare, AsyncReset, when, BiConnectException, VecLike, WireFactory, ChiselExecutionFailure, BlackBox, MultiIOModule, RegInit, MemBase}
and import root.almond.display.{Data, Display, FileLink, Html, IFrame, Image, Javascript, Json, Latex, Markdown, Math, PrettyPrint, ProgressBar, Svg, Text, TextDisplay, UpdatableDisplay}
abstract class FIRBlock[D, U, EO, EI, B <: Data](val nFilters: Int, val nTaps: Int)(implicit p: Parameters)
^cmd2.sc:44: not found: type MyManyDynamicElementVecFir
val fir = Module(new MyManyDynamicElementVecFir(nTaps))
^Compilation Failed
"
I wonder how to deal with it.

@edwardcwang
Copy link
Collaborator

Hello, and thanks for your interest in Chisel! Did you make sure to run the entire notebook? MyManyDynamicElementVecFir is defined in a cell above.

@BeenLi
Copy link

BeenLi commented Nov 24, 2020

I have ran the entire notebook, but I got a similar error. Can you help me? @edwardcwang
Annotation 2020-11-24 194206

@edwardcwang
Copy link
Collaborator

Hello, I just tried running the entire 2.5 notebook again and it seems to work. Did you already try restarting the notebook? If it still does not work, which cell is it crashing on? Thank you for your co-operation!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants