commit-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Commit-gnuradio] r8247 - usrp2/trunk/fpga/control_lib


From: matt
Subject: [Commit-gnuradio] r8247 - usrp2/trunk/fpga/control_lib
Date: Wed, 23 Apr 2008 13:52:38 -0600 (MDT)

Author: matt
Date: 2008-04-23 13:52:38 -0600 (Wed, 23 Apr 2008)
New Revision: 8247

Modified:
   usrp2/trunk/fpga/control_lib/ram_loader.v
Log:
allow for parameterizable size of RAM image


Modified: usrp2/trunk/fpga/control_lib/ram_loader.v
===================================================================
--- usrp2/trunk/fpga/control_lib/ram_loader.v   2008-04-23 19:45:47 UTC (rev 
8246)
+++ usrp2/trunk/fpga/control_lib/ram_loader.v   2008-04-23 19:52:38 UTC (rev 
8247)
@@ -2,7 +2,7 @@
 // Adapted from VHDL code in spi_boot by Arnim Legauer
 //  Added a full wishbone master interface (32-bit)
 
-module ram_loader #(parameter AWIDTH=16)
+module ram_loader #(parameter AWIDTH=16, RAM_SIZE=16384)
   (input clk_i, input rst_i,
    // CPLD Interface
    input cfg_clk_i, input cfg_data_i,
@@ -166,7 +166,7 @@
          FSM2_INC_ADDR1:
            fsm_s <= FSM2_INC_ADDR2;
          FSM2_INC_ADDR2:
-           if(addr_q == 16383)
+           if(addr_q == (RAM_SIZE-1))
            //if(&addr_q)
              begin
                 fsm_s <= FSM2_FINISHED;





reply via email to

[Prev in Thread] Current Thread [Next in Thread]