]> Joshua Wise's Git repositories - firearm.git/blame - BusArbiter.v
Add wires for ALU.
[firearm.git] / BusArbiter.v
CommitLineData
45fa96c0
JW
1module BusArbiter(
2 input [7:0] bus_req,
3 output reg [7:0] bus_ack);
4
5 always @(*)
6 casez (bus_req)
7 8'b00000000: bus_ack = 8'b00000000;
8 8'b???????1: bus_ack = 8'b00000001;
9 8'b??????10: bus_ack = 8'b00000010;
10 8'b?????100: bus_ack = 8'b00000100;
11 8'b????1000: bus_ack = 8'b00001000;
12 8'b???10000: bus_ack = 8'b00010000;
13 8'b??100000: bus_ack = 8'b00100000;
14 8'b?1000000: bus_ack = 8'b01000000;
15 8'b10000000: bus_ack = 8'b10000000;
16 endcase
17endmodule
This page took 0.025679 seconds and 4 git commands to generate.