Advertisement
AlexanderAntonov

Untitled

Nov 2nd, 2022
854
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. module module_name (<ports declaration>);
  2.  
  3. // stage 0
  4. <stage 0 output buffers declaration>
  5. always @(posedge clk_i)
  6.     begin
  7.     if (rst_i) begin st0_reg0 <= 0;end;    // clearing request at stage 0
  8.     else begin st0_reg0 <= in0 + in1;end;  // stage 0 processing of inputs
  9.     end
  10.  
  11. // stage 1
  12. <stage 1 output buffers declaration>
  13. always @(posedge clk_i)
  14.     begin
  15.     if (rst_i) begin st1_reg0 <= 0;end;    // clearing request at stage 1
  16.     else begin st1_reg0 <= st0_reg0 + st0_reg1 ;end; // stage 1 processing
  17.     end
  18.      
  19.  
  20. endmodule
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement