-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathRy.v
More file actions
39 lines (38 loc) · 787 Bytes
/
Copy pathRy.v
File metadata and controls
39 lines (38 loc) · 787 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
38
39
`timescale 1ns / 1ps
//////////////////////////////////////////////////////////////////////////////////
// Company:
// Engineer: dileepa
//
// Create Date: 13:42:32 05/30/2018
// Design Name:
// Module Name: Ry
// Project Name:
// Target Devices:
// Tool versions:
// Description:
//
// Dependencies:
//
// Revision:
// Revision 0.01 - File Created
// Additional Comments:
//
//////////////////////////////////////////////////////////////////////////////////
module Ry(wr,clr,rst,en,clk,bus,out
);
input wr,en,rst,clr;
input clk;
input[7:0] bus;
output out;
reg [7:0] out=8'b0;
always @ (negedge clk) begin
if (rst)
out <= 8'b0;
else if (en) begin
if (clr)
out <= 8'b0;
else if (wr)
out <= bus;
end
end
endmodule