www.gusucode.com > hdlcoder 案例代码 matlab源码程序 > hdlcoder/CreateDualPortRAMSystemObjectExample.m
%% Create Dual-Port RAM System Object % Construct System object to read from and write to different memory locations % in RAM. % % There are two output ports, a write output data port and a read output % data port. The write output data port sends out the new data at the write % address. The read output data port sends out the old data at the read % address. %% H = hdl.RAM('RAMType','Dual port','WriteOutputValue','New data')