commit-gnuradio
[Top][All Lists]
Advanced

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

[Commit-gnuradio] r5039 - gnuradio/branches/developers/matt/u2f/boot_cpl


From: matt
Subject: [Commit-gnuradio] r5039 - gnuradio/branches/developers/matt/u2f/boot_cpld
Date: Tue, 17 Apr 2007 20:20:25 -0600 (MDT)

Author: matt
Date: 2007-04-17 20:20:24 -0600 (Tue, 17 Apr 2007)
New Revision: 5039

Modified:
   gnuradio/branches/developers/matt/u2f/boot_cpld/boot_cpld.ise
   gnuradio/branches/developers/matt/u2f/boot_cpld/boot_cpld.v
Log:
programs the FPGA!


Modified: gnuradio/branches/developers/matt/u2f/boot_cpld/boot_cpld.ise
===================================================================
(Binary files differ)

Modified: gnuradio/branches/developers/matt/u2f/boot_cpld/boot_cpld.v
===================================================================
--- gnuradio/branches/developers/matt/u2f/boot_cpld/boot_cpld.v 2007-04-17 
22:19:02 UTC (rev 5038)
+++ gnuradio/branches/developers/matt/u2f/boot_cpld/boot_cpld.v 2007-04-18 
02:20:24 UTC (rev 5039)
@@ -52,28 +52,33 @@
    
    assign       CLK_25MHZ_EN = 1'b1;
    
-   assign       LED[0] = 1'b0;
-   assign       LED[1] = 1'b1;
-   assign       LED[2] = 1'b0;
+   assign       LED[0] = ~CFG_DONE;
+   assign       LED[1] = CFG_INIT_B;
+   assign       LED[2] = CFG_PROG_B;
    
    assign       SPI_CPLD_CLK = CLK_25MHZ;
 
    wire         start, mode, detached, dat_done, en_outs;
    wire [3:0]   set_sel = 4'd0;
 
-   assign       debug = { /* start, mode,*/ detached, dat_done, 
-                         SD_CLK, SD_nCS, SD_Dout, SD_Din, 
-                         CFG_PROG_B, CFG_INIT_B, CFG_DONE, CFG_CCLK, CFG_Din};
-
+
+   assign DEBUG = { /* start, mode, */ detached, dat_done, 
+                               SD_CLK, SD_nCS, SD_Dout, SD_Din, 
+                               CFG_PROG_B, CFG_INIT_B, CFG_DONE, CFG_CCLK, 
CFG_Din};
+
    //  Control signals, need to figure out how to drive these
-   assign       start = SPI_CPLD_DOUT;   // This is the important one
-   assign       dat_done = SPI_CPLD_DIN;
-   assign       mode = SPI_CPLD_EN;
+       //assign         start = SPI_CPLD_DOUT;   // This is the important one
+   //assign     dat_done = SPI_CPLD_DIN;
+   //assign     mode = SPI_CPLD_EN;
+
+   assign       start = 1'b1; //SPI_CPLD_DOUT;   // This is the important one
+   assign       dat_done = 1'b0; //SPI_CPLD_DIN;
+   assign       mode = 1'b0; //SPI_CPLD_EN;
         
    spi_boot #(.width_set_sel_g(4),  // How many sets (16)
              .width_bit_cnt_g(6),  // Block length (12 is faster, 6 is minimum)
              .width_img_cnt_g(2),  // How many images per set
-             .num_bits_per_img_g(18), // 256 kb Image size, probably needs to 
be bigger than 18
+             .num_bits_per_img_g(22), // 256 kb Image size, probably needs to 
be bigger than 18
              .sd_init_g(1),           // SD-specific initialization
              .mmc_compat_clk_div_g(0),// No MMC support
              .width_mmc_clk_div_g(0), // No MMC support





reply via email to

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