NuBusFPGA/nubus-to-ztex-gateware/74fct245.v

14 lines
344 B
Coq
Raw Normal View History

2021-12-21 07:26:30 +00:00
module sn74fct245
(
input nubus_oe,
input nubus_ad_dir,
inout [7:0] data_3v3, // on B
inout [7:0] data_5v // on A
);
assign data_3v3 = nubus_oe ? 'bZZZZZZZZ : ( nubus_ad_dir ? data_5v : 'bZZZZZZZZ);
assign data_5v = nubus_oe ? 'bZZZZZZZZ : (~nubus_ad_dir ? data_3v3 : 'bZZZZZZZZ);
endmodule // sn74fct245