commit-gnuradio
[Top][All Lists]
Advanced

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

[Commit-gnuradio] r6790 - gnuradio/branches/developers/matt/u2f/control_


From: matt
Subject: [Commit-gnuradio] r6790 - gnuradio/branches/developers/matt/u2f/control_lib
Date: Fri, 2 Nov 2007 00:33:08 -0600 (MDT)

Author: matt
Date: 2007-11-02 00:33:08 -0600 (Fri, 02 Nov 2007)
New Revision: 6790

Modified:
   gnuradio/branches/developers/matt/u2f/control_lib/nsgpio.v
Log:
renamed the debug ports, removed incorrect comments


Modified: gnuradio/branches/developers/matt/u2f/control_lib/nsgpio.v
===================================================================
--- gnuradio/branches/developers/matt/u2f/control_lib/nsgpio.v  2007-11-02 
06:32:30 UTC (rev 6789)
+++ gnuradio/branches/developers/matt/u2f/control_lib/nsgpio.v  2007-11-02 
06:33:08 UTC (rev 6790)
@@ -32,29 +32,12 @@
 ////                                                             ////
 /////////////////////////////////////////////////////////////////////
 
-// Registers:
-//
-// 0x00: Control Register   <io[7:0]>
-//       bits 7:0 R/W Input/Output    '1' = output mode
-//                                    '0' = input mode
-// 0x01: Line Register
-//       bits 7:0 R   Status                Current GPIO pin level
-//                W   Output                GPIO pin output level
-//
-//
-// HOWTO:
-//
-// Use a pin as an input:
-//
-// Use a pin as an output:
 
-
-
 module nsgpio
   (input clk_i, input rst_i, 
    input cyc_i, input stb_i, input [3:0] adr_i, input we_i, input [31:0] 
dat_i, 
    output reg [31:0] dat_o, output reg ack_o,
-   input [31:0] internal_sig, input [31:0] debug, inout [31:0] gpio
+   input [31:0] debug_0, input [31:0] debug_1, inout [31:0] gpio
    );
 
    reg [63:0]  ctrl;
@@ -106,7 +89,7 @@
    
    always @(ctrl or line)
      for(n=0;n<32;n=n+1)
-       igpio[n] <= ctrl[2*n+1] ? (ctrl[2*n] ? debug[n] : internal_sig[n]) : 
+       igpio[n] <= ctrl[2*n+1] ? (ctrl[2*n] ? debug_1[n] : debug_0[n]) : 
           (ctrl[2*n] ?  line[n] : 1'bz);
    
    assign     gpio = igpio;





reply via email to

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