Forum Discussion
AIbra11
New Contributor
5 years agoReading inputs in a state-machine
Hello, I've spent a lot of time trying to get this state machine working with no hope.
Requirement: In this FSM, we want to set:
- opcode_reg and offset_reg to USB3_DATA(3 downto 0) and USB_DA...
sstrell
Super Contributor
5 years agoFollow the LHS (left hand side)!
Are you sure USB3_DATA isn't changing at all? You have it in a separate assignment (non-clocked logic), so it will update immediately if there is a change:
USB3_DATA <= USBSendDataOut when USBWrOeRSig = '1' else (others => 'Z');