simple.sv
来自「VMM 文档加源码, synopsys公司很好的验证资料」· SV 代码 · 共 47 行
SV
47 行
//// 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 + =
减小字号Ctrl + -
显示快捷键?