Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
wire extra_read_or_write_cycles_had_passed // to allow burst read or write operations to proceed first
= (postponed_refresh_timing_count ==
`ifndef XILINX
user_desired_extra_read_or_write_cycles*TIME_TREFI[0 +: $clog2(TIME_TREFI)]); // for verilator warning
`else
user_desired_extra_read_or_write_cycles*TIME_TREFI[0 +: 9]);
`endif
Yeah, that. As I said, I don't really know SV, but that just looks little unwieldy to my untrained eye.Code:wire extra_read_or_write_cycles_had_passed // to allow burst read or write operations to proceed first = (postponed_refresh_timing_count == `ifndef XILINX user_desired_extra_read_or_write_cycles*TIME_TREFI[0 +: $clog2(TIME_TREFI)]); // for verilator warning `else user_desired_extra_read_or_write_cycles*TIME_TREFI[0 +: 9]); `endif
You mean this code snippet ? Are you familiar with the use of ifdef as well as endif ?