Mike Moore / Mbed 2 deprecated USB_device_project

Dependencies:   C12832_lcd USBDevice mbed-rtos mbed mmSPI

Revision:
7:d1aca9ccbab8
Parent:
3:659ffc90b59e
diff -r b42075c1c1c1 -r d1aca9ccbab8 mmRTL/shadow_load_control.txt
--- a/mmRTL/shadow_load_control.txt	Sun Sep 01 03:19:59 2013 +0000
+++ b/mmRTL/shadow_load_control.txt	Sun Sep 01 03:48:07 2013 +0000
@@ -1,51 +1,51 @@
 /*----------------------------------copyright---------------------------------*/
-//  licensed for personal and academic use.
-//  commercial use must be approved by the account-holder of
-//  gated.clock@gmail.com
+//      licensed for personal and academic use.
+//      commercial use must be approved by the account-holder of
+//      gated.clock@gmail.com
 /*-----------------------------------module-----------------------------------*/
-    module shadow_load_control
+        module shadow_load_control
         (
-      iCPUclk,
-      iSPIclk,
-      iRstn,                // direct clear.
-      oLoadEnable               // shadow registers load enable.
+          iCPUclk,
+          iSPIclk,
+          iRstn,                                // direct clear.
+          oLoadEnable                           // shadow registers load enable.
         );
 /*--------------------------------description-----------------------------------
-    when the CPU clock goes low, the CPU state is stable, and its time
-    for the SPI shadow registers to do a parallel load of the CPU state,
-    so its time to turn on the load-enable signal.
+        when the CPU clock goes low, the CPU state is stable, and its time
+        for the SPI shadow registers to do a parallel load of the CPU state,
+        so its time to turn on the load-enable signal.
 
-    when the first SPI clock goes high, the parallel load completes and
-    its time to turn off the load-enable signal.
+        when the first SPI clock goes high, the parallel load completes and
+        its time to turn off the load-enable signal.
 -------------------------------------notes--------------------------------------
 ------------------------------------defines-----------------------------------*/
 /*-----------------------------------ports------------------------------------*/
-    input           iCPUclk;
-    input           iSPIclk;
-    input           iRstn;          // direct clear.
-    output          oLoadEnable;        // shadow registers load enable.
+        input           iCPUclk;
+        input           iSPIclk;
+        input           iRstn;                  // direct clear.
+        output          oLoadEnable;            // shadow registers load enable.
 /*-----------------------------------wires------------------------------------*/
-    wire            iCPUclk;
-    wire            iSPIclk;
-    wire            iRstn;          // direct clear.
-    wire            oLoadEnable;        // shadow registers load enable.
+        wire            iCPUclk;
+        wire            iSPIclk;
+        wire            iRstn;                  // direct clear.
+        wire            oLoadEnable;            // shadow registers load enable.
 
-    wire            wOrClock;       // OR the clocks.
+        wire            wOrClock;               // OR the clocks.
 /*---------------------------------registers----------------------------------*/
-    reg            rRegister;
+        reg            rRegister;
 /*---------------------------------variables----------------------------------*/
 /*---------------------------------parameters---------------------------------*/
 /*-----------------------------------clocks-----------------------------------*/
 /*---------------------------------instances----------------------------------*/
 /*-----------------------------------logic------------------------------------*/
-    always @ (negedge wOrClock or negedge iRstn)
-    begin
-           if (!iRstn   ) rRegister <= 1'b0;
-      else if (!wOrClock) rRegister <= !iSPIclk;
-    end
+        always @ (negedge wOrClock or negedge iRstn)
+        begin
+               if (!iRstn   ) rRegister <= 1'b0;
+          else if (!wOrClock) rRegister <= !iSPIclk;
+        end
 
-    assign wOrClock    =  iCPUclk | iSPIclk;
-    assign oLoadEnable =  rRegister;
+        assign wOrClock    =  iCPUclk | iSPIclk;
+        assign oLoadEnable =  rRegister;
 /*-------------------------------*/endmodule/*--------------------------------*/
 
 
@@ -63,3 +63,20 @@
 
 
 
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+