From 11ea9524c42d352cf31968de3012d03b715d9c9d Mon Sep 17 00:00:00 2001 From: Zane Kaminski Date: Mon, 7 Oct 2024 07:53:56 -0400 Subject: [PATCH] Better comments in RAM controller --- cpld/RAM.v | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/cpld/RAM.v b/cpld/RAM.v index f336cac..9e7b046 100644 --- a/cpld/RAM.v +++ b/cpld/RAM.v @@ -10,9 +10,11 @@ module RAM( output RAMReady, /* Refresh Counter Interface */ input RefReqIn, input RefUrgIn, - /* DRAM and NOR flash interface */ + /* DRAM interface */ output [11:0] RA, output nRAS, output reg nCAS, - output nLWE, output nUWE, output nOE, output nROMOE, output nROMWE); + output nLWE, output nUWE, output reg nOE, + /* NOR flash interface */ + output nROMOE, output nROMWE); /* RAM control state */ reg [2:0] RS; @@ -35,8 +37,10 @@ module RAM( reg RAMReadyReg; assign RAMReady = RAMReadyReg;//!RS[2]; - /* RAM control signals */ - assign nRAS = !((!nAS && RAMCS && RASEN) || RASrf); + /* RAM /RAS */ + assign nRAS = !((!nAS && RAMCS && RASEN) || RASrf); + + /* RAM /WE */ assign nLWE = !(!nLDS && RASEL && !nWE); assign nUWE = !(!nUDS && RASEL && !nWE);