summaryrefslogtreecommitdiff
path: root/eater_cpu/zbuffer.sv
blob: fd7e0f6ec78ddebf8fc3a4d22e36ba8d57abc5f3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
`timescale 1us/1us

`ifndef ZBUFFER
`define ZBUFFER

module zbuffer #(
  parameter BUFFER_WIDTH = 8
) (
  // async - output data
  input wire en_output_in,

  input wire [(BUFFER_WIDTH-1) : 0] data_in,
  // output (to bus) if output enabled.
  output wire [(BUFFER_WIDTH-1) : 0] data_out
);

assign data_out = en_output_in ? data_in : {BUFFER_WIDTH{1'bz}};

endmodule

`endif