lowRISC / lowRISC/lowrisc-chip

Eth 8packets

Open
#102 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
SystemVerilog
Stars
601
Forks
147
PR merge metrics
No merged PRs in 30d

Description

Hi, I'm wondering what does the value `{3'H7,{7{3'H5}}}` indicates? It was found in Line 98

` if ((rx_nxt == {3'H7,{7{3'H5}}}) && (byte_sync == 0) && (sync == 0))`

Based on the codes given, it seems like is checking the end of 8th (collected) RX packets which each packet is 3 bits size. However, I couldnt figure out the how did it comes to value H7 and H5?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at Line 98 and inspect the surrounding receive-path code that uses `rx_nxt`, `byte_sync`, and `sync`. Trace how the 3-bit values are represented and determine what the `H7` and `H5` literals mean in `{3'H7,{7{3'H5}}}`; done means providing a clear explanation of the expression and its intended packet-checking behavior.

Written by the indexing model from the issue text.

Assessment

Domain
embedded-iot
Issue type
Documentation
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.