/////////////////////////////////////////////////////////////////////// // // addlatch module // transparent latch stores Address. // // /////////////////////////////////////////////////////////////////////// module addlatch ( demux_bus.AddressLatch Bus ); timeunit 1ns; timeprecision 100ps; // Bus.Address within AddressLatch modport of interface is 'ouput wire logic' // so must create intermediate variable of type 'var logic' logic [15:0] Address_bus; always_latch if (Bus.ALE == 1) Address_bus = Bus.Data; assign Bus.Address=Address_bus; endmodule