-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtop_module.v
More file actions
37 lines (30 loc) · 800 Bytes
/
Copy pathtop_module.v
File metadata and controls
37 lines (30 loc) · 800 Bytes
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
27
28
29
30
31
32
33
34
35
36
37
`timescale 1ns / 1ps
//////////////////////////////////////////////////////////////////////////////////
// Company:
// Engineer:
//
// Create Date: 01.08.2024 00:01:21
// Design Name:
// Module Name: top_module
// Project Name:
// Target Devices:
// Tool Versions:
// Description:
//
// Dependencies:
//
// Revision:
// Revision 0.01 - File Created
// Additional Comments:
//
//////////////////////////////////////////////////////////////////////////////////
module top_module(
input clk, rst, memsel,
output [7:0] status
);
wire [15:0] dataout, address, din, memadd, addcout;
processor_16b u0(clk, rst, din, dataout, addr, status, mem_wr);
ram r0(clk, en, memadd, dataout, datain);
address_counter a0(clk, rst, addcout);
assign mem_add = (memsel) ? addcout : addr;
endmodule