summaryrefslogtreecommitdiff
path: root/eater_cpu/bus_writer.sv
blob: bbe7a0c496b8acd0b38fe358c191aca0a5809a84 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// Debugging the Ben Eater bus, by manually writing data to it.

`timescale 1us/1us

module bus_writer (
    input [7:0] in_value,
    input in_write_to_output,
    output [7:0] out_value
);

assign out_value = in_write_to_output ? in_value : 8'bZ;

endmodule