Skip to content

Commit

Permalink
Merge pull request #1 from AUDIY/SDPRAM_SINGLECLK_v011
Browse files Browse the repository at this point in the history
Add SDPRAM_SINGLECLK Rev. 0.11
Operation is verified.
  • Loading branch information
AUDIY authored Feb 28, 2024
2 parents 8532a1f + 6ae9e45 commit ec58200
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions 01_Memory/01_SDPRAM_SINGLECLK/SDPRAM_SINGLECLK.v
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
*
* Simple Dual-Port RAM (Single Clock)
*
* Version: 0.10
* Version: 0.11
* Author : AUDIY
* Date : 2023/12/10
* Date : 2024/2/22
*
* Port
* Input
Expand All @@ -27,7 +27,7 @@
*
* License under CERN-OHL-P v2
--------------------------------------------------------------------------------
| Copyright AUDIY 2023. |
| Copyright AUDIY 2023 - 2024. |
| |
| This source describes Open Hardware and is licensed under the CERN-OHL-P v2. |
| |
Expand Down Expand Up @@ -62,7 +62,7 @@ module SDPRAM_SINGLECLK #(

/* Local Parameters */
localparam MEMORY_DEPTH = 2**ADDR_WIDTH;
localparam MAX_DATA = (1 << ADDR_WIDTH) - 1;
//localparam MAX_DATA = (1 << ADDR_WIDTH) - 1; // Unused now.

/* Internal Wire/Register Definition */
reg [DATA_WIDTH-1:0] RAM[MEMORY_DEPTH-1:0];
Expand Down Expand Up @@ -93,10 +93,10 @@ module SDPRAM_SINGLECLK #(

/* Output */
generate
if (OUTPUT_REG == "TRUE") begin
assign RDATA_O = RDATA_REG_2P;
end else begin
assign RDATA_O = RDATA_REG_1P;
if (OUTPUT_REG == "TRUE") begin : gen_reg2p
assign RDATA_O = RDATA_REG_2P;
end else begin : gen_reg1p
assign RDATA_O = RDATA_REG_1P;
end
endgenerate

Expand Down

0 comments on commit ec58200

Please sign in to comment.