Jump to content

Leaderboard


Popular Content

Showing content with the highest reputation on 04/22/2013 in all areas

  1. 1 point
    Wow, that's a lot of code... If I've understood correctly, surely you just need task sipo (ref serialin); // must be a ref if you want to read it during the task logic [9:0] pout; for (int i = 0; i<10; i++) begin pout = {pout[8:0], serialin}; // assuming called just after a posedge? @(posedge dut_vi.clock); end $display ("Pout is %b", pout); endtask : sipo You may need to mess about with the timing of when you call the task. regards Alan http://www.doulos.com
×
×
  • Create New...