Skip to content
Snippets Groups Projects
Commit 2769e8f7 authored by Tomasz Wlostowski's avatar Tomasz Wlostowski
Browse files

simulation models: IWishboneSlave: added extra cyc line check, removed range warning

parent e7754b96
Branches
Tags
No related merge requests found
...@@ -168,11 +168,11 @@ interface IWishboneSlave ...@@ -168,11 +168,11 @@ interface IWishboneSlave
c_queue.push_back(current_cycle); c_queue.push_back(current_cycle);
end end
if(stb && we && !stall) begin if(stb && we && !stall && cyc) begin
int oc, lzc, tzc; int oc, lzc, tzc;
wb_xfer_t d; wb_xfer_t d;
oc = count_ones(sel, g_data_width/8); oc = count_ones(sel, g_data_width/8);
lzc = count_leading_zeroes(sel, g_data_width/8); lzc = count_leading_zeroes(sel, g_data_width/8);
tzc = count_trailing_zeroes(sel, g_data_width/8); tzc = count_trailing_zeroes(sel, g_data_width/8);
...@@ -195,6 +195,8 @@ interface IWishboneSlave ...@@ -195,6 +195,8 @@ interface IWishboneSlave
ack <= 0; ack <= 0;
end else end else
ack <= 0; ack <= 0;
endtask // pipelined_fsm endtask // pipelined_fsm
...@@ -218,9 +220,12 @@ interface IWishboneSlave ...@@ -218,9 +220,12 @@ interface IWishboneSlave
end end
initial begin initial begin
settings.mode = PIPELINED; settings.mode = PIPELINED;
settings.gen_random_stalls = 1; settings.gen_random_stalls = 1;
settings.stall_prob = 0.1; settings.stall_prob = 0.1;
settings.stall_min_duration = 1;
settings.stall_max_duration = 2;
end end
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment