vt52-fpga  1.0.0 Initial
vt52-fpga is a serial terminal implemented on a FPGA
usb_fs_out_arb.v
Go to the documentation of this file.
1 module usb_fs_out_arb #(
2  parameter NUM_OUT_EPS = 1
3 ) (
4  ////////////////////
5  // endpoint interface
6  ////////////////////
7  input [NUM_OUT_EPS-1:0] out_ep_req,
8  output reg [NUM_OUT_EPS-1:0] out_ep_grant
9 );
10  integer i;
11  reg grant;
12 
13  always @* begin
14  grant = 0;
15 
16  for (i = 0; i < NUM_OUT_EPS; i = i + 1) begin
17  out_ep_grant[i] <= 0;
18 
19  if (out_ep_req[i] && !grant) begin
20  out_ep_grant[i] <= 1;
21  grant = 1;
22  end
23  end
24  end
25 endmodule
module usb_fs_out_arb(input[NUM_OUT_EPS-1:0] out_ep_req, output reg< NUM_OUT_EPS-1:0 > out_ep_grant)
Definition: usb_fs_out_arb.v:3
always(posedge clk)
Definition: uart_rx.v:86