www.gusucode.com > hdlcoder 案例代码 matlab源码程序 > hdlcoder/CreateSinglePortRAMSystemObjectExample.m

    %% Create Single-Port RAM System Object  
% Construct System object to read from or write to a memory location in RAM. 
%
% The output data port corresponds to the read/write address passed in.
% During a write operation, the old data at the write address is sent out
% as the output.   

%%  
 H = hdl.RAM('RAMType','Single port','WriteOutputValue','Old data')