to generate an AHB multilayer interconnect in Verilog by using the verilog generation from Chisel.
The problem comes when I tried to update the junction and context-dependent-environements to the latest version on their respective master branch :
cd junctions/
git checkout master
git pull
git log -1
commit d39a2045c6ab975f8ae52d08861f19573400bd2a
Date: Wed Jun 8 14:35:22 2016 -0700
hasti: correct fix to locking
cd ../context-dependent-environments/
git checkout master
git pull
git log -1
commit dc0537b4a3c486d10cad6d0cf33547aef8bfbbbb
Date: Mon Jun 6 10:20:33 2016 -0700
also catch CDEMatch errors fixes #3
* make all
make all
python ml_ahb_gen.py --json=example.json --outdir=chisel
-I- Reading JSON file example.json
cd chisel && sbt "run --genHarness --backend v"
[info] Set current project to ahb-mli (in build file:/home/ronan/perso/github/ml-ahb-gen/chisel/)
[info] Compiling 16 Scala sources to /home/ronan/perso/github/ml-ahb-gen/chisel/target/scala-2.11/classes...
[error] /home/ronan/perso/github/ml-ahb-gen/chisel/../junctions/src/main/scala/addrmap.scala:92: type mismatch;
[error] found : BigInt
[error] required: Int
[error] val align = BigInt(1) << log2Ceil(r.size)
[error] ^
[error] /home/ronan/perso/github/ml-ahb-gen/chisel/../junctions/src/main/scala/hasti.scala:206: not enough arguments for method assert: (cond: Chisel.Bool, message: String)Unit.
[error] Unspecified value parameter message.
[error] assert (!p || !v)
[error] ^
[error] /home/ronan/perso/github/ml-ahb-gen/chisel/../junctions/src/main/scala/hasti.scala:269: ambiguous reference to overloaded definition,
[error] both method apply in object Vec of type [T <: Chisel.Data](elt0: T, elts: T*)Chisel.Vec[T]
[error] and method apply in object Vec of type [T <: Chisel.Data](elts: Iterable[T])Chisel.Vec[T]
[error] match argument types (Chisel.Vec[Chisel.Bool])
[error] val selectedRequestSM = Vec(requestSM map { m => Vec(PriorityEncoderOH(m)) })
[error] ^
[error] /home/ronan/perso/github/ml-ahb-gen/chisel/../junctions/src/main/scala/hasti.scala:467: overloaded method value apply with alternatives:
[error] (range: (Int, Int))Chisel.UInt <and>
[error] (hi: Chisel.UInt,lo: Chisel.UInt)Chisel.UInt <and>
[error] (hi: Int,lo: Int)Chisel.UInt <and>
[error] (bit: Chisel.UInt)Chisel.Bool <and>
[error] (bit: Int)Chisel.Bool <and>
[error] (name: String)Chisel.Data
[error] cannot be applied to ()
[error] mask_wide.toBits().asUInt() << io.haddr(hastiAlignment-1,0)
[error] ^
[error] four errors found
[error] (compile:compileIncremental) Compilation failed
[error] Total time: 6 s, completed Jun 28, 2016 10:17:47 PM
Makefile:7: recipe for target 'gen_v' failed
make: *** [gen_v] Error 1
but I can't find where.