Skip to content
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

Scrambler Module #57

Merged
merged 11 commits into from
Feb 2, 2024
Merged

Scrambler Module #57

merged 11 commits into from
Feb 2, 2024

Conversation

pawat-unj
Copy link
Collaborator

Multi-lane scrambler module with simple test

LFSR.io.seed.bits := VecInit(io.seed.asBools)
LFSR.io.seed.valid := (reset.asBool)
val LFSR_result = LFSR.io.out
// printf(cf"$LFSR_result.asUInt")
Copy link
Collaborator

Choose a reason for hiding this comment

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

can remove this line

LFSR.io.increment := io.valid
LFSR.io.seed.bits := VecInit(io.seed.asBools)
LFSR.io.seed.valid := (reset.asBool)
val LFSR_result = LFSR.io.out
Copy link
Collaborator

Choose a reason for hiding this comment

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

do you need this? does LFSR.io.out.asUInt not work?

c.clock.step()
c.io.valid.poke(true.B)

c.io.data_in(0).poke(1.U(16.W))
Copy link
Collaborator

Choose a reason for hiding this comment

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

would be good to add a few more clock steps to the test

Copy link
Collaborator

@ansaschmulbach ansaschmulbach left a comment

Choose a reason for hiding this comment

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

lgtm

@ansaschmulbach ansaschmulbach merged commit b6eb23f into main Feb 2, 2024
1 check passed
@ansaschmulbach ansaschmulbach deleted the scrambler branch February 2, 2024 20:23
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.

3 participants