Advertisement
Guest User

Untitled

a guest
Feb 25th, 2020
180
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. this assigns uart[channel]:
  2. always @(*) begin: uartmux
  3. integer i;
  4.  
  5. for (i = 0; i < NUART; i++) begin
  6. if (i == channel)
  7. uart[i] = uart_tx;
  8. else
  9. uart[i] = uart_tx;
  10. end
  11. end
  12.  
  13. this doesn't:
  14. always @(*) begin: uartmux
  15. integer i;
  16.  
  17. for (i = 0; i < NUART; i++) begin
  18. if (i == channel) begin
  19. uart[i] = uart_tx;
  20. end else begin
  21. uart[i] = uart_tx;
  22. end
  23. end
  24. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement