Coder Social home page Coder Social logo

fudian's People

Contributors

fwzhang avatar jiegec avatar ljwljwljwljw avatar notlqr avatar sequencer avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

fudian's Issues

make run errors

在pipeline分支上,根据README进行操作,执行到 make all_tests 这一步会报错。
错误如下:
9df985b93197f7715be7b9c01f053a7

Tests failed

QQ截图20220321165154
Hi, there are some errors when I tried 'make all_tests', any solution?

Issue running test

Hi, we are trying to reproduce some of the floating-point bugs in Nan Hu to verify our internal product.
We checkout the nanhu design at: c067e65501c4d8dd61f010176acd9161272b9c92.

However, as I'm now trying to run fudian (43474be), I'm running into errors like below:

[info] compiling 17 Scala sources to /mnt/efs/home/jascheng/xs-env/XiangShan/fudian/out/fudian/compile/dest/classes ...
[error] /mnt/efs/home/jascheng/xs-env/XiangShan/fudian/src/main/scala/fudian/FADD.scala:35:58: overloaded method value apply with alternatives:
[error] (x: BigInt,y: BigInt)chisel3.UInt
[error] (x: Int,y: Int)chisel3.UInt
[error] (x: chisel3.UInt)chisel3.Bool
[error] (x: Int)chisel3.Bool
[error] (x: BigInt)chisel3.Bool
[error] cannot be applied to ()
[error] val adder_in_sig_b = Mux(effSub, (~adder_in_sig_b_raw).asUInt(), adder_in_sig_b_raw) + effSub
[error] ^
[error] /mnt/efs/home/jascheng/xs-env/XiangShan/fudian/src/main/scala/fudian/FADD.scala:103:52: overloaded method value apply with alternatives:
[error] (x: BigInt,y: BigInt)chisel3.UInt
[error] (x: Int,y: Int)chisel3.UInt
[error] (x: chisel3.UInt)chisel3.Bool
[error] (x: Int)chisel3.Bool
[error] (x: BigInt)chisel3.Bool
[error] cannot be applied to ()
[error] val b_sig = (Cat(b.sig, 0.U(1.W)) >> need_shift).asUInt()
[error] ^
[error] /mnt/efs/home/jascheng/xs-env/XiangShan/fudian/src/main/scala/fudian/FADD.scala:113:36: overloaded method value apply with alternatives:
[error] (x: BigInt,y: BigInt)chisel3.UInt
[error] (x: Int,y: Int)chisel3.UInt
[error] (x: chisel3.UInt)chisel3.Bool
[error] (x: Int)chisel3.Bool
[error] (x: BigInt)chisel3.Bool
[error] cannot be applied to ()
[error] val lza_str_zero = !Cat(lza_str).orR()
[error] ^
[error] /mnt/efs/home/jascheng/xs-env/XiangShan/fudian/src/main/scala/fudian/FADD.scala:120:7: overloaded method value apply with alternatives:
[error] (x: BigInt,y: BigInt)chisel3.UInt
[error] (x: Int,y: Int)chisel3.UInt
[error] (x: chisel3.UInt)chisel3.Bool
[error] (x: Int)chisel3.Bool
[error] (x: BigInt)chisel3.Bool
[error] cannot be applied to ()
[error] ).asUInt())(precision , 0)
[error] ^
[error] /mnt/efs/home/jascheng/xs-env/XiangShan/fudian/src/main/scala/fudian/FADD.scala:139:61: overloaded method value apply with alternatives:
[error] (x: BigInt,y: BigInt)chisel3.UInt
[error] (x: Int,y: Int)chisel3.UInt
[error] (x: chisel3.UInt)chisel3.Bool
[error] (x: Int)chisel3.Bool
[error] (x: BigInt)chisel3.Bool
[error] cannot be applied to ()
[error] case i => lza_str.head(precision + 1 - i - 1).orR()
[error] ^
[error] /mnt/efs/home/jascheng/xs-env/XiangShan/fudian/src/main/scala/fudian/FADD.scala:557:40: overloaded method value apply with alternatives:
[error] (x: BigInt,y: BigInt)chisel3.UInt
[error] (x: Int,y: Int)chisel3.UInt
[error] (x: chisel3.UInt)chisel3.Bool
[error] (x: Int)chisel3.Bool
[error] (x: BigInt)chisel3.Bool
[error] cannot be applied to ()
[error] val need_swap = exp_diff_a_b.head(1).asBool() || b_flags.overflow
[error] ^
[error] /mnt/efs/home/jascheng/xs-env/XiangShan/fudian/src/main/scala/fudian/FCMP.scala:27:49: overloaded method value apply with alternatives:
[error] (x: BigInt,y: BigInt)chisel3.UInt
[error] (x: Int,y: Int)chisel3.UInt
[error] (x: chisel3.UInt)chisel3.Bool
[error] (x: Int)chisel3.Bool
[error] (x: BigInt)chisel3.Bool
[error] cannot be applied to ()
[error] val uint_less = fp_a.sign ^ a_minus_b.head(1).asBool()
[error] ^
[error] /mnt/efs/home/jascheng/xs-env/XiangShan/fudian/src/main/scala/fudian/FDIV.scala:318:19: overloaded method value apply with alternatives:
[error] (x: BigInt,y: BigInt)chisel3.UInt
[error] (x: Int,y: Int)chisel3.UInt
[error] (x: chisel3.UInt)chisel3.Bool
[error] (x: Int)chisel3.Bool
[error] (x: BigInt)chisel3.Bool
[error] cannot be applied to ()
[error] val sticky = (r.orR()) || (needShiftReg && qFinal(0)) // if non-zero remainder( which must be positive), we
[error] ^
[error] /mnt/efs/home/jascheng/xs-env/XiangShan/fudian/src/main/scala/fudian/FDIV.scala:319:43: overloaded method value apply with alternatives:
[error] (x: BigInt,y: BigInt)chisel3.UInt
[error] (x: Int,y: Int)chisel3.UInt
[error] (x: chisel3.UInt)chisel3.Bool
[error] (x: Int)chisel3.Bool
[error] (x: BigInt)chisel3.Bool
[error] cannot be applied to ()
[error] val round = Mux(needShiftReg, qFinal(1).asBool(), qFinal(0).asBool)
[error] ^
[error] /mnt/efs/home/jascheng/xs-env/XiangShan/fudian/src/main/scala/fudian/FMUL.scala:78:43: overloaded method value apply with alternatives:
[error] (x: BigInt,y: BigInt)chisel3.UInt
[error] (x: Int,y: Int)chisel3.UInt
[error] (x: chisel3.UInt)chisel3.Bool
[error] (x: Int)chisel3.Bool
[error] (x: BigInt)chisel3.Bool
[error] cannot be applied to ()
[error] val prod_exp_uf = shift_lim_sub.head(1).asBool()
[error] ^
[error] 45 errors found

Am I missing something?

为什么是Scala 语言

看到这个repo,包含的源代码,是scala?没看错吧。想了解一下,为什么是用Scala来实现,而不是传统的c/cpp, 或者是新潮的Rust等。

Question: is FADD a single-cycle floating point adder?

I’m not sure if I understand it correctly. Please correct me if I’m wrong. Are there any registers in FADD? I understand that there is a near path and a far path, but if you expect everything to be done in a single cycle, then the timing (critical path) is always determined by the far path. In that case, it seems it does not make sense to have two paths.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.