OpenCores
URL https://opencores.org/ocsvn/brisc/brisc/trunk

Subversion Repositories brisc

[/] [brisc/] [trunk/] [register.v] - Blame information for rev 5

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 2 waqqas.jab
module register(in, out, clk, reset_n);
2
 
3
parameter dw = 8;
4
 
5
input [dw-1:0] in;
6
input clk;
7
input reset_n;
8
 
9
output reg [dw-1:0] out;
10
 
11
 
12
always @(posedge clk or negedge reset_n)
13
begin
14
        if (!reset_n)
15
                out <= 0;
16
        else
17
                out <= in;
18
end
19
 
20
endmodule

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.