Kludge Tracker: Gnuradio - v3.4.0-101-g7e2b45b

Parent Directory (gnuradio/gr-gpio)

Kludge Summary of gnuradio/gr-gpio/src

Total Kludges 10
Total Subdirs 4

All Directories within gnuradio/gr-gpio/src

All Files within gnuradio/gr-gpio/src

Kludge Snippets in gnuradio/gr-gpio/src

gnuradio/gr-gpio/src/fpga/lib/gpio_input.v — 1

Category TODO
Committer jcorgan
Commit ID 48fefc9b6e294c0ecb3cdd826b5a2f4b008fa829
33              
34            // Buffer at input to chip
35        
36           reg rx_dig_rx_a_a,rx_dig_rx_b_a,rx_dig_rx_a_b,rx_dig_rx_b_b;
37           //TODO possibly use a flancter here
38           //This code can optionally be extended to do streaming input from gpio of tx boards
39           //The code can also be extended to input more bits
40         
41           always @(posedge clock)
				

gnuradio/gr-gpio/src/fpga/lib/gpio_input.v — 2

Category TODO
Committer jcorgan
Commit ID 48fefc9b6e294c0ecb3cdd826b5a2f4b008fa829
55           // Now mux to the appropriate outputs
56           wire [3:0] 	ddc3mux,ddc2mux,ddc1mux,ddc0mux;
57           wire 	rx_realsignals;
58           wire [3:0]  rx_numchan;//not used here
59           //TODO This setting reg readout is a duplicate of the one in adc_interface.v.
60           //     Change code so this is done in only one place, or give this code its own register.
61           setting_reg #(`FR_RX_MUX) sr_rxmux(.clock(clock),.reset(reset),.strobe(serial_strobe),.addr(serial_addr),
62        				      .in(serial_data),.out({ddc3mux,ddc2mux,ddc1mux,ddc0mux,rx_realsignals,rx_numchan[3:1]}));
63           //assign 	rx_numchan[0] = 1'b0;
				

gnuradio/gr-gpio/src/fpga/top/usrp_gpio.v — 1

Category TODO
Committer jcorgan
Commit ID 48fefc9b6e294c0ecb3cdd826b5a2f4b008fa829
186        
187           //wire tx_dig_a_chan = (dac0mux[1] | dac1mux[1] );
188           //wire tx_dig_b_chan = (dac2mux[1] | dac3mux[1] );
189        
190           //TODO make enabling tx_dig configurable through register
191         
192           wire enable_tx_dig_a = 1'b1 & enable_tx;
193           wire enable_tx_dig_b = 1'b1 & enable_tx;
194        
				

gnuradio/gr-gpio/src/fpga/top/usrp_gpio.v — 2

Category TODO
Committer jcorgan
Commit ID 48fefc9b6e294c0ecb3cdd826b5a2f4b008fa829
196           wire tx_dig_b_a_en = dac1mux[3] & enable_tx_dig_a;
197           wire tx_dig_a_b_en = dac2mux[3] & enable_tx_dig_b;
198           wire tx_dig_b_b_en = dac3mux[3] & enable_tx_dig_b;
199        
200          //TODO make gpio bits used for tx_dig configurable through register
201           assign io_tx_a_out = {tx_dig_a_a_en?tx_dig_a_a:reg_0[15],tx_dig_b_a_en?tx_dig_b_a:reg_0[14],reg_0[13:0]};
202           assign io_tx_b_out = {tx_dig_a_b_en?tx_dig_a_b:reg_2[15],tx_dig_b_b_en?tx_dig_b_b:reg_2[14],reg_2[13:0]};
203           assign io_tx_a_force_output = {tx_dig_a_a_en,tx_dig_b_a_en,14'b0};
204           assign io_tx_b_force_output = {tx_dig_a_b_en,tx_dig_b_b_en,14'b0};
				

gnuradio/gr-gpio/src/fpga/top/usrp_gpio.v — 3

Category TODO
Committer jcorgan
Commit ID 48fefc9b6e294c0ecb3cdd826b5a2f4b008fa829
204           assign io_tx_b_force_output = {tx_dig_a_b_en,tx_dig_b_b_en,14'b0};
205        
206        
207         `ifdef TX_EN_DIG_0
208           //TODO make enabling tx_dig configurable through register
209           //tx_chain_dig tx_chain_dig_0
210           //  ( .clock(clk64),.reset(tx_dsp_reset),.enable(enable_tx),
211           //    .i_in(ch0tx), q_in(ch1tx),
212           //    .i_out_ana(bb_tx_i0),
				

gnuradio/gr-gpio/src/fpga/top/usrp_gpio.v — 4

Category TODO
Committer jcorgan
Commit ID 48fefc9b6e294c0ecb3cdd826b5a2f4b008fa829
226           assign      q_out_dig_0=1'b0;
227         `endif
228        
229         `ifdef TX_EN_DIG_1
230           //TODO make enabling tx_dig configurable through register
231           tx_chain_dig tx_chain_dig_1
232             ( .clock(clk64),.reset(tx_dsp_reset),.enable(enable_tx),
233               .i_in(ch2tx),.q_in(ch3tx),
234               .i_out_ana(bb_tx_i1),.q_out_ana(bb_tx_q1),
				

gnuradio/gr-gpio/src/fpga/top/usrp_gpio.v — 5

Category TODO
Committer jcorgan
Commit ID 48fefc9b6e294c0ecb3cdd826b5a2f4b008fa829
356           assign      bb_rx_q3=16'd0;
357         `endif
358        
359         `ifdef RX_DIG_ON
360           wire enable_rx_dig = 1'b1 & enable_rx;//TODO make  enabling rx_dig configurable through register
361           assign      io_rx_a_force_input = {enable_rx_dig,enable_rx_dig,14'b0};
362           assign      io_rx_b_force_input = {enable_rx_dig,enable_rx_dig,14'b0};
363           gpio_input  gpio_input(.clock(clk64),.reset(rx_dsp_reset),.enable(1'b1),
364                                  .out_strobe(hb_strobe),
				

gnuradio/gr-gpio/src/python/gpio_rx_sfile.py — 1

Category TODO
Committer jcorgan
Commit ID 48fefc9b6e294c0ecb3cdd826b5a2f4b008fa829
61                    g = subdev.gain_range()
62                    options.gain = float(g[0]+g[1])/2
63        
64        
65                #TODO setting gain on basicRX only sets the I channel, use a second subdev to set gain of Q channel
66                #see gnuradio-examples/multi-antenna for possible solutions
67                subdev.set_gain(options.gain)
68        
69                #TODO check if freq has same problem as gain when trying to use complex mode on basicRX
				

gnuradio/gr-gpio/src/python/gpio_rx_sfile.py — 2

Category TODO
Committer jcorgan
Commit ID 48fefc9b6e294c0ecb3cdd826b5a2f4b008fa829
65                #TODO setting gain on basicRX only sets the I channel, use a second subdev to set gain of Q channel
66                #see gnuradio-examples/multi-antenna for possible solutions
67                subdev.set_gain(options.gain)
68        
69                #TODO check if freq has same problem as gain when trying to use complex mode on basicRX
70                r = u.tune(0, subdev, options.freq)
71                if not r:
72                    sys.stderr.write('Failed to set frequency\n')
73                    raise SystemExit, 1
				

gnuradio/gr-gpio/src/python/gpio_usrp_fft.py

Category FIXME
Committer jcorgan
Commit ID 48fefc9b6e294c0ecb3cdd826b5a2f4b008fa829
215        
216            def _build_subpanel(self, vbox_arg):
217                # build a secondary information panel (sometimes hidden)
218        
219                # FIXME figure out how to have this be a subpanel that is always
220                # created, but has its visibility controlled by foo.Show(True/False)
221                
222                def _form_set_decim(kv):
223                    return self.set_decim(kv['decim'])