A Verilog BFM Methodology
A Verilog BFM Methodology
Rodney Pesavento
[email protected]
Michael Privett
[email protected]
• Model Overview
• Test Bench Overview
• Clocking Suggestions
• Adding Timing to a Model
• A State Machine BFM
• A Task BFM
• Conclusion
SNUG’99 Rodney Pesavento 2
Types of Models
module tc1;
Clock reg [15:0] adr, dat;
integer j;
BFM initial begin : tc_blk
for(j=0;j<8;j=j+1) begin
adr = j; dat = j;
Unit tb.bfm.wr(adr,dat,ws0);
Under tb.bfm.rd(adr,dat,ws1);
end //for
Other Test end //initial
endmodule
Model
Test Bench Test Code