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

Wrong value set in register ug #12

Open
kris92 opened this issue Oct 11, 2024 · 1 comment
Open

Wrong value set in register ug #12

kris92 opened this issue Oct 11, 2024 · 1 comment

Comments

@kris92
Copy link

kris92 commented Oct 11, 2024

Hello,

at line #247 of file usb_hid_host.v you assign value 9 to a bit register :
if(inst==4) begin ug <= 9; up <= 0; um <= 0; end
Do you mean 0 or 1 ?

@yrabbit
Copy link

yrabbit commented Oct 26, 2024

In all likelihood 1'b1.

I'm more interested in the S_S2 state, how we come back from it, and what it is in general :)

S_S1: begin sb[7:4] <= inst; state <= S_S2; mbit <= 1; end

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

No branches or pull requests

2 participants