Advertisement
MBJ

Adder

MBJ
Apr 22nd, 2019
1,345
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. `timescale 1ns / 1ps
  2.  
  3. // EXECUTION phase of pipeline
  4. // all variants of PC are taken care of in pipeline_top_module
  5.  
  6.  
  7. module Adder(
  8.             input [31:0] B, PC_2,
  9.             output reg [31:0] BrA
  10.             );
  11. always@(*) begin
  12.     BrA = B + PC_2; // outputted into top phase of pipeline, MUX C
  13. end
  14.  
  15.  
  16. endmodule
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement