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

Subversion Repositories brisc

[/] [brisc/] [trunk/] [reg_file.v] - Blame information for rev 3

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 2 waqqas.jab
module reg_file (Read_Addr_1, Data_Out_1, Clock);
2
 
3
 
4
        parameter aw = 8;               //address bus width
5
        parameter dw = 48;      //size of each memory element
6
        parameter size = (1<<aw);
7
 
8
        output     [dw-1:0]  Data_Out_1;
9
        input      [aw-1:0]    Read_Addr_1;
10
        input      Clock;
11
        reg        [dw-1:0]  Reg_File [0:size-1];
12
   /*
13
        always @ (posedge Clock) begin
14
                Data_Out_1 <= Reg_File[Read_Addr_1];
15
        end
16
        */
17
        //assign Data_Out_a = {{dw-aw{1'b0}}, Read_Addr_1};
18
endmodule

powered by: WebSVN 2.1.0

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