lukeneyer
11-12-2008, 07:37 AM
Hello,
I have created my own example based off of the OVM2.0 Xbus example, and i am having trouble finding out how to send the same sequence multiple times. I would believe the best way to do this would to create a for loop in my test library, but i cannot seem to find out how to do that, since the set_config_string parameter does not seem to have any indicators of how many times that sequence should be sent. So how can i declare to send this same sequence (SPI_DAS_set_mux_read_sample_seq) multiple times?
class test_read_modify_write1 extends SPI_demo_base_test;
`ovm_component_utils(test_read_modify_write1)
function new(string name = "test_read_modify_write1", ovm_component parent=null);
super.new(name,parent);
endfunction : new
virtual function void build();
set_config_string("SPI_demo_tb0.DAS0.DAS_spi_agent.sequencer",
"default_sequence", "SPI_DAS_set_mux_read_sample_seq");
super.build();
endfunction : build
endclass : test_read_modify_write1
Thanks,
Luke
I have created my own example based off of the OVM2.0 Xbus example, and i am having trouble finding out how to send the same sequence multiple times. I would believe the best way to do this would to create a for loop in my test library, but i cannot seem to find out how to do that, since the set_config_string parameter does not seem to have any indicators of how many times that sequence should be sent. So how can i declare to send this same sequence (SPI_DAS_set_mux_read_sample_seq) multiple times?
class test_read_modify_write1 extends SPI_demo_base_test;
`ovm_component_utils(test_read_modify_write1)
function new(string name = "test_read_modify_write1", ovm_component parent=null);
super.new(name,parent);
endfunction : new
virtual function void build();
set_config_string("SPI_demo_tb0.DAS0.DAS_spi_agent.sequencer",
"default_sequence", "SPI_DAS_set_mux_read_sample_seq");
super.build();
endfunction : build
endclass : test_read_modify_write1
Thanks,
Luke