+/EE316

digital logic

git clone https://git.julia.blue/+/EE316

Joseph RyanUpload whole semester91885ad

master
246 B17 linesraw
1`timescale 1ns / 1ps
2
3module register_logic(
4    input clk,
5    input enable,
6    input [4:0] Data,
7    output reg [4:0] Q
8    );
9    initial
10    Q = 0;
11    always @(posedge clk)
12    begin
13    if (enable)
14        Q = Data;
15    end
16    
17endmodule