mirror of
https://github.com/Gehstock/Mist_FPGA.git
synced 2026-02-05 15:54:45 +00:00
16 lines
266 B
Systemverilog
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
|