Closed TealerLinkGuo closed 4 months ago
Hi,
I updated the SpinalCrypto to recent version of SpinalHDL. With it your issue seems to disapear. Can you give a try ? Note this also jump to scala 2.12.18 by default
Thank you for your prompt reply, but it is still can't run, After updating my build.sbt, sbt run now gives the following error message
[warn]
[warn] Note: Unresolved dependencies path:
[error] sbt.librarymanagement.ResolveException: Error downloading com.github.spinalhdl:spinalhdl-crypto_2.11:1.2.0
[error] Not found
[error] Not found
[error] not found: /home/tealer_u/.ivy2/local/com.github.spinalhdl/spinalhdl-crypto_2.11/1.2.0/ivys/ivy.xml
[error] not found: https://repo1.maven.org/maven2/com/github/spinalhdl/spinalhdl-crypto_2.11/1.2.0/spinalhdl-crypto_2.11-1.2.0.pom
[error] at lmcoursier.CoursierDependencyResolution.unresolvedWarningOrThrow(CoursierDependencyResolution.scala:346)
[error] at lmcoursier.CoursierDependencyResolution.$anonfun$update$39(CoursierDependencyResolution.scala:315)
[error] at scala.util.Either$LeftProjection.map(Either.scala:573)
[error] at lmcoursier.CoursierDependencyResolution.update(CoursierDependencyResolution.scala:315)
[error] at sbt.librarymanagement.DependencyResolution.update(DependencyResolution.scala:60)
[error] at sbt.internal.LibraryManagement$.resolve$1(LibraryManagement.scala:60)
[error] at sbt.internal.LibraryManagement$.$anonfun$cachedUpdate$12(LibraryManagement.scala:142)
[error] at sbt.util.Tracked$.$anonfun$lastOutput$1(Tracked.scala:74)
[error] at sbt.internal.LibraryManagement$.$anonfun$cachedUpdate$11(LibraryManagement.scala:144)
[error] at sbt.internal.LibraryManagement$.$anonfun$cachedUpdate$11$adapted(LibraryManagement.scala:131)
[error] at sbt.util.Tracked$.$anonfun$inputChangedW$1(Tracked.scala:220)
[error] at sbt.internal.LibraryManagement$.cachedUpdate(LibraryManagement.scala:169)
[error] at sbt.Classpaths$.$anonfun$updateTask0$1(Defaults.scala:3867)
[error] at scala.Function1.$anonfun$compose$1(Function1.scala:49)
[error] at sbt.internal.util.$tilde$greater.$anonfun$$u2219$1(TypeFunctions.scala:63)
[error] at sbt.std.Transform$$anon$4.work(Transform.scala:69)
[error] at sbt.Execute.$anonfun$submit$2(Execute.scala:283)
[error] at sbt.internal.util.ErrorHandling$.wideConvert(ErrorHandling.scala:24)
[error] at sbt.Execute.work(Execute.scala:292)
[error] at sbt.Execute.$anonfun$submit$1(Execute.scala:283)
[error] at sbt.ConcurrentRestrictions$$anon$4.$anonfun$submitValid$1(ConcurrentRestrictions.scala:265)
[error] at sbt.CompletionService$$anon$2.call(CompletionService.scala:65)
[error] at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
[error] at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539)
[error] at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
[error] at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
[error] at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
[error] at java.base/java.lang.Thread.run(Thread.java:840)
[error] (update) sbt.librarymanagement.ResolveException: Error downloading com.github.spinalhdl:spinalhdl-crypto_2.11:1.2.0
[error] Not found
[error] Not found
[error] not found: /home/tealer_u/.ivy2/local/com.github.spinalhdl/spinalhdl-crypto_2.11/1.2.0/ivys/ivy.xml
[error] not found: https://repo1.maven.org/maven2/com/github/spinalhdl/spinalhdl-crypto_2.11/1.2.0/spinalhdl-crypto_2.11-1.2.0.pom
[error] Total time: 3 s, completed Jul 19, 2024, 5:00:06 PM
Here is my build.sbt file
hisBuild / version := "1.0"
ThisBuild / scalaVersion := "2.11.12"
ThisBuild / organization := "org.example"
val spinalVersion = "latest.release"
val spinalCore = "com.github.spinalhdl" %% "spinalhdl-core" % spinalVersion
val spinalLib = "com.github.spinalhdl" %% "spinalhdl-lib" % spinalVersion
val spinalIdslPlugin = compilerPlugin("com.github.spinalhdl" %% "spinalhdl-idsl-plugin" % spinalVersion)
lazy val projectname = (project in file("."))
.settings(
Compile / scalaSource := baseDirectory.value / "spinalhdl_hls",
libraryDependencies ++= Seq(spinalCore, spinalLib, spinalIdslPlugin)
)
.dependsOn(spinalCrypto)
lazy val spinalCrypto = RootProject(file("./SpinalCrypto"))
fork := true
Hi,
"2.11.12" => "2.12.18" "latest.release" => "2.10.2a"
Should clear most of the issues.
I want to use the hash IP provided by Spinalcrypto, but when I tested them, I encountered an error message
Here is my code, It simply initialized SHA2Core_Std(), I checked the source code of HashCoreIO() in hash.scale and found that it inherits from IMasterSlave, but sbt run still reports an error
Here is the Sim code if Sha256