-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathincr.v
26 lines (23 loc) · 938 Bytes
/
incr.v
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// Class: CSCI 401 Computer Architecture
// Term: SPR11
// Name(s):
//
// Lab #1: Instruction Fetch Stage
// -*- Mode: Verilog -*-
// Filename : incr.v
// Description : The incrementer module
// of the IF stage of the pipeline
// Authors : George M. Georgiou and Scott McWilliams
// Created On : 2/06/2003
// Modified On : 4/5/2011
// Modified By : Jason Fredrick and David Sturgeon
// Comments : CHANGE: The incrementer is by 1 instead of by 4.
// This way, memory is word addressable. If we need
// to change it later we will do that. You may make
// this change as well.
module incrementer (
input wire [31:0] pcin, // Input of incrementer
output wire [31:0] pcout // Output of incrementer
);
assign pcout = pcin + 1; // Increment PC by 1
endmodule // incrementer