Initial commit
This commit is contained in:
34
Exp2/Exp2.srcs/sources_1/new/DR.v
Normal file
34
Exp2/Exp2.srcs/sources_1/new/DR.v
Normal file
@@ -0,0 +1,34 @@
|
||||
`timescale 1ns / 1ps
|
||||
//////////////////////////////////////////////////////////////////////////////////
|
||||
// Company:
|
||||
// Engineer:
|
||||
//
|
||||
// Create Date: 2025/05/30 19:43:40
|
||||
// Design Name:
|
||||
// Module Name: DR
|
||||
// Project Name:
|
||||
// Target Devices:
|
||||
// Tool Versions:
|
||||
// Description:
|
||||
//
|
||||
// Dependencies:
|
||||
//
|
||||
// Revision:
|
||||
// Revision 0.01 - File Created
|
||||
// Additional Comments:
|
||||
//
|
||||
//////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
module DR (
|
||||
input wire [31:0] Datain,
|
||||
input wire clk,
|
||||
input wire WE,
|
||||
output reg [31:0] DataOut
|
||||
);
|
||||
always @(posedge clk) begin
|
||||
if (WE) begin
|
||||
DataOut <= Datain;
|
||||
end
|
||||
end
|
||||
endmodule
|
||||
Reference in New Issue
Block a user