1
0
mirror of https://github.com/Gehstock/Mist_FPGA.git synced 2026-05-01 22:26:35 +00:00
Files
Gehstock.Mist_FPGA/Computer_MiST/Sharp - MZ-80_MiST_New/rtl/TTL74LS245.sv
2019-02-09 15:36:17 +01:00

16 lines
266 B
Systemverilog

module TTL74LS245 (
input OE,
input DIR,
input [7:0] Ain,
output [7:0]Aout,
input [7:0] Bin,
output [7:0]Bout
);
always @ (OE, DIR, Ain,Bin) begin
if (OE== 1'b0 & DIR == 1'b1)
Bout = Ain;
else if (OE== 1'b0 & DIR == 1'b0)
Aout = Bin;
end
endmodule