📄 simple.sv
字号:
//// Template for physical access BFM that can be used by RAL////`ifndef simple_main_RAL_BFM__SV`define simple_main_RAL_BFM__SV`include "simple.sv"`include "vmm_ral.sv"class simple_main_ral_bfm extends vmm_rw_xactor; simple bfm; function new(string instance, int unsigned stream_id, simple bfm); super.new("simple RAL Master for main domain", instance, stream_id); this.bfm = bfm; endfunction: new virtual task execute_single(vmm_rw_access tr); simple_tr cyc; // ToDo: Translate the generic RW into an appropriate RW // for the specified domain cyc = new; if (tr.kind == vmm_rw::WRITE) begin // Write cycle // ... end else begin // Read cycle // ... end this.bfm.in_chan.put(cyc); // ToDo: Send the result of read cycles back to the RAL if (tr.kind == vmm_rw::READ) begin tr.data = ... end endtask: execute_singleendclass: simple_main_ral_bfm
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -