-
Notifications
You must be signed in to change notification settings - Fork 1
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
Lane 的实现 #1
base: master
Are you sure you want to change the base?
Conversation
v/src/LaneDiv.scala
Outdated
import chisel3._ | ||
import chisel3.util._ | ||
|
||
case class LaneDivParameter(dataWidth: Int, maskWidth: Int) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maskWidth
不存在
v/src/LaneFFO.scala
Outdated
|
||
import chisel3._ | ||
import chisel3.util._ | ||
import freechips.rocketchip.util.{OH1ToUInt, leftOR} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
使用 chisel 标准库的实现
v/src/LaneLogic.scala
Outdated
val resp: UInt = IO(Output(UInt(param.ELEN.W))) | ||
|
||
resp := VecInit(src.map(_.asBools).transpose.map { case Seq(sr0, sr1) => | ||
val bitCalculate = Module(new LaneBitLogic) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
v/src/LaneMul.scala
Outdated
|
||
import chisel3._ | ||
|
||
class LaneMul(param: VectorParameters) extends Module { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
使用 LaneMulParameters
v/src/LanePopCount.scala
Outdated
import chisel3._ | ||
import chisel3.util.PopCount | ||
|
||
case class LanePopCountParameter(inputWidth: Int, outputWidth: Int) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
文档
v/src/LaneShifter.scala
Outdated
import chisel3._ | ||
import chisel3.util._ | ||
|
||
case class LaneShifterParameter(dataWidth: Int, maskWidth: Int, shifterSizeBit: Int) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
需要再确定参数
No description provided.