Skip to content

Lane 的实现#1

Draft
qinjun-li wants to merge 86 commits intomasterfrom
lane
Draft

Lane 的实现#1
qinjun-li wants to merge 86 commits intomasterfrom
lane

Conversation

@qinjun-li
Copy link
Owner

No description provided.

@qinjun-li qinjun-li marked this pull request as ready for review July 6, 2022 07:31
@sequencer sequencer marked this pull request as draft July 6, 2022 08:19
import chisel3._
import chisel3.util._

case class LaneDivParameter(dataWidth: Int, maskWidth: Int)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maskWidth 不存在


import chisel3._
import chisel3.util._
import freechips.rocketchip.util.{OH1ToUInt, leftOR}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

使用 chisel 标准库的实现

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)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.


import chisel3._

class LaneMul(param: VectorParameters) extends Module {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

使用 LaneMulParameters

import chisel3._
import chisel3.util.PopCount

case class LanePopCountParameter(inputWidth: Int, outputWidth: Int)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

文档

import chisel3._
import chisel3.util._

case class LaneShifterParameter(dataWidth: Int, maskWidth: Int, shifterSizeBit: Int)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

需要再确定参数

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

Successfully merging this pull request may close these issues.

5 participants