1 00:00:00,000 --> 00:00:02,780 Good afternoon, everyone. I'm Neil Pandya. 2 00:00:02,980 --> 00:00:03,900 And I'm Nate Temple. 3 00:00:04,180 --> 00:00:09,540 And we're with Edis Research, and we'll talk about RFNOC, Accelerating the Spectrum with the FPGA. 4 00:00:10,780 --> 00:00:12,940 So just a quick background about Edis Research. 5 00:00:13,320 --> 00:00:19,020 Edis Research was founded in 2004 by Matt Edis, and it was acquired by National Instruments in 2010, 6 00:00:19,620 --> 00:00:21,920 and it's located in Santa Clara in California. 7 00:00:22,400 --> 00:00:24,840 And Edis Research makes software-defined radios. 8 00:00:24,840 --> 00:00:30,440 They're divided into four different families, the B-series, the N, the X, and the E-series. 9 00:00:30,600 --> 00:00:34,760 And generally speaking, the B-series are radios that connect to the computer through USB. 10 00:00:35,100 --> 00:00:37,040 The N-series connect through Ethernet. 11 00:00:37,060 --> 00:00:39,680 The X-series connect through 10-gigabit Ethernet. 12 00:00:39,880 --> 00:00:41,860 And the E-series are embedded radios. 13 00:00:46,680 --> 00:00:47,440 Turn it off. 14 00:00:48,300 --> 00:00:48,820 Okay. 15 00:00:51,400 --> 00:00:54,820 And so most radios, software-defined radios, 16 00:00:54,840 --> 00:00:59,700 connect to a computer directly, and all of the processing for the radio occurs on the CPU. 17 00:01:00,560 --> 00:01:03,480 And that's shown in this graph, in this diagram at the bottom, 18 00:01:03,580 --> 00:01:05,960 where we have a flow graph running with a waterfall display, 19 00:01:06,280 --> 00:01:12,100 and all the calculations for that waterfall are being done on the CPU inside the laptop. 20 00:01:13,460 --> 00:01:17,100 And people have tried to accelerate this data flow 21 00:01:17,100 --> 00:01:20,300 and increase the throughput of applications like waterfalls 22 00:01:20,300 --> 00:01:23,360 and increase the data rates between the radio and the CPU. 23 00:01:23,640 --> 00:01:24,560 And one approach? 24 00:01:24,840 --> 00:01:28,020 And that has been with the General Purpose Processor and SIMD instructions. 25 00:01:28,580 --> 00:01:31,800 So libraries like VULC in GNU Radio, if you've heard of VULC, 26 00:01:31,860 --> 00:01:33,860 Vector Optimized Library of Kernels. 27 00:01:34,060 --> 00:01:39,640 And so they're assembly language primitives that optimize the DSP processing on the CPU. 28 00:01:40,180 --> 00:01:45,000 And that effort's been very fruitful, but there's still more that would be desired. 29 00:01:45,440 --> 00:01:50,200 And so the GPU has been used, and there's a program called FOSTER that we'll talk about in a minute 30 00:01:50,510 --> 00:01:54,040 that uses the GPU, but the GPU has its own set of limitations. 31 00:01:54,840 --> 00:02:00,640 It doesn't always match well to a lot of block-based SDR signal processing, 32 00:02:00,860 --> 00:02:03,420 and it carries with it a high latency penalty. 33 00:02:03,920 --> 00:02:10,560 And so the GPU has had limited applicability to general-purpose SDR processing. 34 00:02:11,380 --> 00:02:16,320 And so the other thought was to use the FPGA that's inside most of these radios. 35 00:02:16,440 --> 00:02:20,220 On the Edis Research radios, every radio has an FPGA inside of it. 36 00:02:20,260 --> 00:02:24,500 So the thought was, why don't we use the hardware to accelerate our processing? 37 00:02:24,960 --> 00:02:29,320 And so the FPGA on the radio performs all the high-rate processing, 38 00:02:29,460 --> 00:02:32,980 like up conversion and down conversion, and it's kind of the brains of the radio. 39 00:02:33,080 --> 00:02:37,580 It controls all of the ADCs and the DAC, it manages communication with the host computer. 40 00:02:38,440 --> 00:02:43,480 And the code for the FPGA is open source at Edis, the driver for the radio is open source, 41 00:02:43,620 --> 00:02:46,600 as well as the FPGA code, so everything is open source. 42 00:02:46,760 --> 00:02:54,620 It's hosted on GitHub, it's written entirely in Verilog, and these are the FPGAs used on some of the... 43 00:02:54,840 --> 00:03:00,380 different usrps the older gen 1 gen 2 are some of the original usrps from way back in the day 44 00:03:00,380 --> 00:03:07,340 and they were much smaller the gen 3 e310 and x310 fpgas are a lot larger the x310 is the 45 00:03:07,340 --> 00:03:12,540 largest fpga that we have and it has a lot of space available for custom custom signal processing 46 00:03:14,220 --> 00:03:21,380 and we use gnu radio with the usrp and we've integrated a way to use the fpga and do fpga 47 00:03:21,380 --> 00:03:27,340 processing uh from within gnu radio and we'll talk about that we'll go through an example to 48 00:03:27,340 --> 00:03:32,120 show the motivation for using the fpga and we'll look at welch's algorithm for power spectrum 49 00:03:32,120 --> 00:03:37,640 estimation and we'll look at an example where we have a usrp source block in the corner and this 50 00:03:37,640 --> 00:03:43,360 is the gnu radio flow graph taken from grc and samples are coming in at 200 mega samples per 51 00:03:43,360 --> 00:03:49,240 second and then being processed in that chain with an fft complex to magnitude and then a moving 52 00:03:49,240 --> 00:03:51,320 average all of that processing is 53 00:03:51,320 --> 00:03:56,380 being done on the host and so the host computer has to ingest samples at 200 mega sample per 54 00:03:56,380 --> 00:04:02,460 second so 800 megabytes per second it's a lot of uh it's a very high data rate and then process 55 00:04:02,460 --> 00:04:08,960 those samples and do all of this math on every single block that comes through some of the math 56 00:04:08,960 --> 00:04:14,080 and a lot of these algorithms can be parallelized so in the case of the fft that's a natural choice 57 00:04:14,080 --> 00:04:20,400 to move to the fpga and so we may want to do that the the transport between the the radio and the 58 00:04:20,400 --> 00:04:21,300 host is all registered and then we're going to have to do that with the usrp and then we're going 59 00:04:23,080 --> 00:04:23,760 to 60 00:04:32,460 --> 00:04:39,740 200 mega sample per second stream that's 6.4 gigabits per second processing and reducing the 61 00:04:39,740 --> 00:04:44,560 processing is one reason to use the fpga but there's another important reason and that's latency 62 00:04:44,560 --> 00:04:49,440 a lot of algorithms cannot be implemented or at least cannot easily be implemented 63 00:04:49,440 --> 00:04:51,040 using just 64 00:04:51,300 --> 00:04:56,900 host-side processing. In 802.11, in Wi-Fi, you have the CFIS timings. In Bluetooth, you 65 00:04:56,900 --> 00:05:03,340 have some other very challenging response times, and you can't meet those where the 66 00:05:03,340 --> 00:05:07,360 samples have to go from the radio to the host, go through the whole stack in the kernel, 67 00:05:07,500 --> 00:05:11,300 and get processed by the application, and then come back out again. And so you have to 68 00:05:11,300 --> 00:05:16,660 use the FPGA for a lot of applications. So it's not just throughput, but it's also latency. 69 00:05:17,620 --> 00:05:22,580 These are the different hosts, sorry, the different interfaces that the host computer 70 00:05:22,580 --> 00:05:27,600 can use to connect to the radio. And each has their own limitation in terms of throughput. 71 00:05:27,900 --> 00:05:33,840 And the, even the fastest 10 gigabit link is limited to about 250 mega-sample per second. 72 00:05:34,160 --> 00:05:39,900 And so if you saturate that link, the host will struggle to keep up with all the samples 73 00:05:39,900 --> 00:05:46,640 that are coming in. And even using a really wide link, like 10 gig ethernet, may necessitate 74 00:05:46,640 --> 00:05:53,320 the use of the FPGA. And so since the radios have big FPGAs, and this one here pictured 75 00:05:53,320 --> 00:05:58,920 is the X310. It has the largest FPGA that we, that we use on the radios. Why don't 76 00:05:58,920 --> 00:06:04,520 we use it? Well, it's, FPGA programming is difficult. It's very different fundamentally 77 00:06:05,060 --> 00:06:12,060 from C or C++ or Python or host-side processing. Has anyone programmed in Verilog or VHDL before? 78 00:06:12,240 --> 00:06:14,760 Are there any FPGA developers out there? Okay. 79 00:06:15,140 --> 00:06:16,620 So I'm sure you'd agree with me. 80 00:06:16,620 --> 00:06:21,400 I would agree that FPGA processing, FPGA programming is fundamentally different from the host. 81 00:06:21,660 --> 00:06:26,440 And not everyone is familiar with it. And there's a learning curve to get up to speed. 82 00:06:27,080 --> 00:06:31,120 A lot of times when you have a design team, there's three domains. You have software 83 00:06:31,120 --> 00:06:37,000 experts who are experts at implementing something in Python or C++ and so on, GNU radio perhaps. 84 00:06:37,340 --> 00:06:41,780 You have algorithm experts who might live in the MATLAB domain and focus on the math 85 00:06:41,780 --> 00:06:45,680 and the algorithm itself and the performance of the algorithm. And then you have FPGA experts 86 00:06:45,680 --> 00:06:46,600 who are experts at programming. And then you have the software experts who are experts 87 00:06:46,600 --> 00:06:53,400 at fitting a design into an FPGA, meeting timing, and building hardware to do the task. 88 00:06:53,660 --> 00:07:00,360 And a lot of times those domain skills don't overlap. And so it's, FPGA development can 89 00:07:00,360 --> 00:07:05,620 be hard and time consuming. And so the goal with RFNOC is to make FPGA acceleration more 90 00:07:05,620 --> 00:07:11,760 accessible. It aims to provide a way where you can write an RFNOC block to implement 91 00:07:11,760 --> 00:07:16,520 your logic, your functionality, and insert that into the framework and let the framework 92 00:07:16,600 --> 00:07:21,080 take care of all the glue logic and all the data processing, all the data handling, the 93 00:07:21,080 --> 00:07:26,580 data flow, and integrate that into the host so that you can use the API, the API for the 94 00:07:26,580 --> 00:07:34,040 radio, to control and operate your logic, your block. And in the past, the FPGAs were 95 00:07:34,500 --> 00:07:38,520 more monolithic and you'd have to look at the entire design and figure out where in 96 00:07:38,520 --> 00:07:45,000 the design to put your code. But with RFNOC, the goal is that you can use the framework 97 00:07:45,000 --> 00:07:46,420 to handle a lot of that plumbing. 98 00:07:46,600 --> 00:07:52,200 for you and really just focus on your own application. RFNOC is GPL and specifically 99 00:07:52,200 --> 00:07:57,940 LGPL. And so the modules that you write, you do not have an obligation to release the source 100 00:07:57,940 --> 00:08:02,580 code to those modules. It's fully integrated with GNU Radio, but you do not have to use 101 00:08:02,580 --> 00:08:08,240 GNU Radio. You can also use RFNOC from C++. So if you're not even using GNU Radio for 102 00:08:08,240 --> 00:08:12,840 some reason, a lot of stacks don't use GNU Radio, like the cellular stacks, OpenBTS and 103 00:08:12,840 --> 00:08:17,900 SRS LTE and so on, don't even use it. And so if you're not using it, that's fine. RFNOC 104 00:08:17,900 --> 00:08:24,340 can be used from C++ as well. This is what the architecture looks like. At the bottom, 105 00:08:24,460 --> 00:08:29,360 you have the FPGA domain. And the dashed red line is the boundary between the host and 106 00:08:29,360 --> 00:08:36,140 the FPGA. On the FPGA, you have an Ethernet MAC interface. And this is the block that 107 00:08:36,140 --> 00:08:40,920 interfaces to the 10 or 1 gigabit Ethernet interface to your host computer. And then 108 00:08:40,920 --> 00:08:42,820 there's a crossbar. The crossbar is the interface to your host computer. And then there's a 109 00:08:42,820 --> 00:08:48,060 packet-switched crossbar, basically a switch, a network switch, which is where RFNOC gets 110 00:08:48,060 --> 00:08:55,060 its name, RF Network on Chip. And so packets of IQ samples are switched or are routed 111 00:08:55,060 --> 00:08:59,320 throughout the chip and through the crossbar. And from the crossbar, all of the blocks 112 00:08:59,320 --> 00:09:03,460 are connected. And whenever a block wants to talk to another block, pass samples to 113 00:09:03,460 --> 00:09:08,360 or from another block, or pass samples to the host computer or receive samples from 114 00:09:08,360 --> 00:09:12,600 the host computer, it goes through the crossbar. There's a radio core block, which represents 115 00:09:12,820 --> 00:09:16,880 the interface to the transmit and receive chains and takes care of all of the plumbing 116 00:09:16,880 --> 00:09:20,720 and all of the interface to the radio. And then there are these computation engines, 117 00:09:20,860 --> 00:09:25,140 or more commonly known as just RFNOC blocks. And this is where you implement your logic, 118 00:09:25,200 --> 00:09:32,060 whatever that might be, a Viterbi decoder or some other function. I just said that, 119 00:09:32,100 --> 00:09:37,660 that the FPGA connects to the RF front end. It controls the functions of the radio. And 120 00:09:37,660 --> 00:09:42,180 the Ethernet interface is not just for Ethernet. There's also other interfaces supported as 121 00:09:42,180 --> 00:09:49,540 well, like PCI Express. The RFNOC block is something that you can write or you can 122 00:09:49,540 --> 00:09:55,920 get from other sources. I'll review that in a minute. And the crossbar interconnects all 123 00:09:55,920 --> 00:10:05,020 of the devices on the FPGA. On the host side, the UHD driver using the RFNOC framework allows 124 00:10:05,020 --> 00:10:10,100 you to configure your block and use your block and provides an API to control and access 125 00:10:10,100 --> 00:10:12,160 your block from your C++ to your PCI Express. And then there's also the RFNOC block, which 126 00:10:12,180 --> 00:10:16,680 allows you to configure your program or your GNU radio flow graph. And you can do that in 127 00:10:16,680 --> 00:10:23,620 C, C++ and Python, or in GNU radio, which under the hood is C++ and Python. So we'll 128 00:10:23,620 --> 00:10:27,880 look at an example of plotting spectrum. The radio core is now represented by that 129 00:10:27,880 --> 00:10:32,420 block in the top corner, the RFNOC radio block. Notice this is still GNU radio, but 130 00:10:32,420 --> 00:10:37,300 the block names have changed because you're now using blocks from the RFNOC library. And 131 00:10:37,300 --> 00:10:42,160 so that library provided by Edis Research, when you install it, in San Diego, you're 132 00:10:42,180 --> 00:10:43,140 now using blocks from the RFNOC library. So now it differentiates all these different 133 00:10:43,140 --> 00:10:47,740 blocks that are on the FPGA. It's a little hard to see, but the lines between the blocks 134 00:10:47,740 --> 00:10:52,360 now become green. And that indicates that data flow between blocks is on the FPGA and 135 00:10:52,360 --> 00:10:57,740 not on the host. And let's say we have the radio core sending samples onto the host, 136 00:10:57,860 --> 00:11:02,380 and so we have an RFNOC radio core block on the left and then a dashed line. It's 137 00:11:02,380 --> 00:11:06,200 a little bit hard to see, but that arrow between the radio core block and the stream 138 00:11:06,200 --> 00:11:10,780 to vector block is dashed, indicating that the data flow is crossing a domain boundary. 139 00:11:10,780 --> 00:11:14,480 boundary. It's going from the FPGA to the host. And then the rest of the processing 140 00:11:14,480 --> 00:11:19,440 right now is on the host. And say we want to move the FFT to the FPGA to accelerate 141 00:11:19,440 --> 00:11:26,180 it. And so we replace that FFT block that's being run on the host with an RF knock FFT 142 00:11:26,180 --> 00:11:31,880 block. And notice the arrow between the RF knock radio core block and the FFT block is 143 00:11:31,880 --> 00:11:37,020 now green. Again, to indicate the data flow is on the FPGA. And so now we have an FFT 144 00:11:37,020 --> 00:11:41,420 block. And the data flow would look like this. The radio core receives samples. Those 145 00:11:41,420 --> 00:11:46,020 samples go to the crossbar. They're routed to the desired block, in this case the FFT 146 00:11:46,020 --> 00:11:51,240 block. And then the FFT block performs its function, its FFT, and sends those samples 147 00:11:51,240 --> 00:11:56,060 out back to the crossbar. And they're routed to their destination, which in this case is 148 00:11:56,060 --> 00:12:00,840 the host computer. And the rest of the processing in the chain in the flow graph occurs on the 149 00:12:00,840 --> 00:12:06,740 host computer. If you want to move additional functions to the FPGA, like the 150 00:12:06,740 --> 00:12:12,600 logarithm or whatnot in this flow graph, you can do that and add additional RF knock 151 00:12:12,600 --> 00:12:18,180 blocks. This is what the blocks look like when you zoom in a little bit closer. All 152 00:12:18,180 --> 00:12:24,060 of the communication between blocks is packetized. And so there's a packetizer and a depacketizer 153 00:12:24,060 --> 00:12:29,120 in every block. And all of those modules in green are provided by the RF knock framework. 154 00:12:29,440 --> 00:12:34,540 You don't have to write those. And so there's a packetizer and depacketizer to packetize 155 00:12:34,540 --> 00:12:36,720 IQ data, sample data, from the radio core. And then there's a packetizer and depacketizer 156 00:12:36,740 --> 00:12:43,140 from the radio across the crossbar. And there's a FIFO for flow control. The FIFO also serves 157 00:12:43,140 --> 00:12:47,580 another purpose for clock domain crossings. I'll talk about that in just a second. And 158 00:12:47,580 --> 00:12:51,700 then there's a TX interface and an RX interface that controls communication with the rest 159 00:12:51,700 --> 00:12:56,260 of the radio. And in the example from before, from the previous slide, samples are coming 160 00:12:56,260 --> 00:13:00,820 into the radio core block and being received. They go to the crossbar. And then they come 161 00:13:00,820 --> 00:13:05,700 into the FFT block where they're depacketized. Again, there's a FIFO for flow control. And 162 00:13:06,740 --> 00:13:11,320 then they go to the FFT itself, which is in the pink box. And that can come from any 163 00:13:11,320 --> 00:13:15,120 source. You could write that yourself. It could come from Xilinx. You could get it from 164 00:13:15,120 --> 00:13:22,540 opencores.org or wherever. And the only requirement on your logic is that it uses AXI streams. 165 00:13:22,960 --> 00:13:26,960 And there's a slide coming up where I'll go in a little bit more detail about AXI, but 166 00:13:26,960 --> 00:13:34,200 it's an industry standard for a point-to-point link between modules. And most IP out there, 167 00:13:34,320 --> 00:13:36,380 third-party IP, like from Xilinx. 168 00:13:36,800 --> 00:13:42,560 Supports AXI. So as long as your IP speaks AXI, if you would, you can insert that IP into 169 00:13:42,560 --> 00:13:51,500 the RF knock block in the pink box here and connect it to the rest of the framework. And I 170 00:13:51,500 --> 00:13:57,760 said that about these footnotes here. I already said. And where do you get this IP? Let me 171 00:13:57,760 --> 00:14:03,380 fast-forward for a minute. Actually, I'll not fast-forward. And let me go to a different 172 00:14:03,380 --> 00:14:06,720 example. So look at a cognitive radio example. This is the IP that supports AXI. And it's a 173 00:14:06,740 --> 00:14:11,420 hypothetical example where we want to do some cognitive radio and control a lot of it from the 174 00:14:11,420 --> 00:14:16,700 FPGA, not just from the host. And so the radio core perhaps is receiving samples. And that goes to 175 00:14:16,700 --> 00:14:23,360 the FFT block, which comes from, say, Xilinx. And FFT is calculated. And that spectrum is sent 176 00:14:23,360 --> 00:14:28,040 to the spectrum policy block, which could be some kind of soft processor or some other kind of 177 00:14:28,040 --> 00:14:33,040 logic that maybe looks for energy in a bin or some other criteria to determine that something is 178 00:14:33,040 --> 00:14:36,720 happening in the spectrum that we're interested in. And then when that happens, we're going to be 179 00:14:36,740 --> 00:14:41,180 sending a trigger. A trigger is sent to the TX modulator block. And when that block sees the 180 00:14:41,180 --> 00:14:48,780 trigger, it downloads or it receives, it requests a payload from the host computer for samples to be 181 00:14:48,780 --> 00:14:55,600 transmitted. And it goes and transmits those. So this is an example of RF knock, an application of 182 00:14:55,600 --> 00:15:01,300 RF knock. And notice that all the blocks, all the RF knock blocks that are added in orange don't 183 00:15:01,300 --> 00:15:06,220 have to come from the same source. In one case in this example, they're coming from Xilinx. In another 184 00:15:06,740 --> 00:15:10,900 case, they might be coming from Vivado HLS, I'll talk about in a moment. Or they could be 185 00:15:10,900 --> 00:15:17,540 something that you wrote yourself or you took from opencores.org. The blocks can come from all 186 00:15:17,540 --> 00:15:22,780 these different sources. Like I said, you can use the built-in Edis research library. When you 187 00:15:22,780 --> 00:15:27,720 install RF knock, there's a couple of blocks that come with RF knock. I think there's about 14 or so 188 00:15:27,720 --> 00:15:33,660 right now. And they support all the common DSP functions like FFTs and Windows. There's a SIGGEN 189 00:15:33,660 --> 00:15:36,160 block. There's a bunch of blocks that come with the framework. 190 00:15:36,740 --> 00:15:40,900 You can, of course, write your own in Verilog or VHDL. Most of the tools are dual language tools these 191 00:15:40,900 --> 00:15:46,540 days. So you can use either language. You can use opencores.org, which is an open source repository for 192 00:15:46,540 --> 00:15:54,760 hardware and obtain a block from there. You can use third party IP from Xilinx. You can use Vivado 193 00:15:54,760 --> 00:16:03,380 HLS, which is a tool that will generate Verilog and VHDL from a C++ module. So if you're not interested 194 00:16:03,380 --> 00:16:06,720 in coding C++ or, sorry, Verilog VHDL, you can use Vivado HLS, which is a tool that will generate Verilog and 195 00:16:06,720 --> 00:16:11,980 VHDL from scratch. You can use that tool to generate the Verilog and VHDL from a C++ module. 196 00:16:12,360 --> 00:16:19,520 There was a challenge that we ran last year with Xilinx. And three teams were selected. And their code 197 00:16:19,520 --> 00:16:23,480 is available on GitHub. So if you're thinking about using Vivado, you may want to look at their 198 00:16:23,480 --> 00:16:28,620 code. It's all posted on GitHub. And they, I don't remember all of the three projects. I think one 199 00:16:28,620 --> 00:16:34,460 was the ATSC decoder. But they implemented three different systems using Vivado HLS. And so 200 00:16:34,460 --> 00:16:36,700 there's C++ modules that generate that. 201 00:16:36,720 --> 00:16:43,340 And there's also HDL coder from the MathWorks where you can take M files or Simulink models and generate 202 00:16:43,340 --> 00:16:50,660 Verilog and VHDL from that. When you build the FPGA for use with RFNOC, there's a couple of tool 203 00:16:50,660 --> 00:16:57,520 chains. The older radios use ISE. And those radios don't support RFNOC. RFNOC is only supported on 204 00:16:57,520 --> 00:17:03,280 the E series, the X series, the X310, and the N310, N300. And they use Vivado, which is the current 205 00:17:03,280 --> 00:17:05,260 tool chain that Xilinx supports. 206 00:17:06,820 --> 00:17:12,360 If you're using the E310 or E312, you actually can use the free web pack edition. And so you don't need a 207 00:17:12,360 --> 00:17:18,720 license. You still need a license file, but it doesn't cost anything. But the newer, the larger FPGAs in the 208 00:17:18,720 --> 00:17:25,640 X and N series, N300 series, do require a paid license. And you install Xilinx. Once you had Xilinx 209 00:17:25,640 --> 00:17:32,000 installed, you would build an FPGA from the command line. We provide make files in the UHD repository 210 00:17:32,000 --> 00:17:36,700 when you install RFNOC. And you invoke the build process from the command line. And you install the 211 00:17:36,720 --> 00:17:41,440 command line. There is an optional GUI, as you see in the bottom of the slide. There's an optional GUI 212 00:17:41,440 --> 00:17:46,360 that you can invoke. And the GUI is basically a wrapper for the command line. So you can use the GUI to 213 00:17:46,360 --> 00:17:51,240 click through and select what target you'd like, what blocks you want to add to your design, and then 214 00:17:51,240 --> 00:17:57,900 go and build a design. This is what the GUI tool looks like. You select a target on the left. You 215 00:17:57,900 --> 00:18:03,380 provide some edit blocks in the middle. You bring them over to the right side to show all the blocks 216 00:18:03,380 --> 00:18:06,700 that are in your design. And then you generate the bit file. You generate the bit file. You generate the 217 00:18:08,080 --> 00:18:13,220 FPGA image. And it'll show you the command line that it's going to use to generate that. And you can 218 00:18:13,220 --> 00:18:17,860 take that command line and copy-paste it into a script or invoke it manually on the command line if you 219 00:18:17,860 --> 00:18:24,600 prefer. Or the tool can just invoke it directly. The GUI tool can invoke it directly. And with that, 220 00:18:24,700 --> 00:18:27,780 I'm going to, we'll talk next about Foster. And I'll turn it over to my colleague, Nate. 221 00:18:36,980 --> 00:18:44,760 So many of you are probably familiar with an auditory module for the GNU radio toolkit called GR 222 00:18:44,760 --> 00:18:54,260 Phosphor. It's one of the, it's an emulation of an RTSA-like spectrum visualization. GR Phosphor, 223 00:18:56,880 --> 00:19:05,280 originally GR Phosphor was designed to run on a GPU using OpenCL and OpenGL for acceleration. It's great for 224 00:19:06,980 --> 00:19:13,780 fast signals. And if we look at the demo that we have running here, it's, we're looking at Wi-Fi and 225 00:19:13,780 --> 00:19:21,000 Bluetooth there. So really short intervals. There's also an RF knock variant. Now this, the, what's 226 00:19:21,000 --> 00:19:28,300 running is the RF knock variant. It was created by Sylvain Munant. You can find him on Twitter at 227 00:19:28,300 --> 00:19:36,700 TNT and on the Osmocom wiki pages. And along with an additional video demo of the GR Phosphor. And 228 00:19:36,700 --> 00:19:40,140 then we have a couple of other things. So this is the GR Phosphor. So this is a GPU Phosphor, which 229 00:19:40,140 --> 00:19:46,540 you're probably familiar with. This is running with a B200. So I'm looking at 50 mega samples, 50 230 00:19:46,540 --> 00:19:51,240 megahertz worth of bandwidth at a given time. On the left here, this is a bunch of push to talk 231 00:19:51,240 --> 00:20:00,040 traffic, police, fire, EMS type, you know, business radio type stuff. Then we'll see LTE, various 232 00:20:00,040 --> 00:20:08,880 LTE channels, along with a pair of WCDMA channels there. Now this is all being processed on the 233 00:20:08,880 --> 00:20:15,180 host. So the CPU has to bring in the samples and shuffle them off to the GPU where then the FFT and 234 00:20:15,180 --> 00:20:27,700 processing is done. Which can be challenging. It works for 50 mega samples. Like the new NVIDIA's 980s 235 00:20:30,340 --> 00:20:39,580 that are running through them. But, and one point to make, the data transport rate across, from 236 00:20:39,580 --> 00:20:50,480 the radio to the host is 1.8 or 1.6 gigabits per second at 50 mega samples. This is also a 50 237 00:20:50,480 --> 00:20:58,000 megahertz view of the same center frequency. However, now this is the RF knock version. Instead of 238 00:20:58,000 --> 00:21:00,020 running at 1.6 gigabits per second, it's running at 1.6 gigabits per second. So it's running at 239 00:21:00,020 --> 00:21:06,320 1.6 gigabits per second. The transport rate from the radio until to the computer is around 4 240 00:21:06,320 --> 00:21:15,560 megabits. So it's incredibly, an incredible reduction in the bandwidth that's required for that. 241 00:21:15,840 --> 00:21:22,580 One interesting note I want to make about this screen shot, kind of a little historical neat thing. 242 00:21:22,840 --> 00:21:28,480 If you look in the middle there, there's a peak. There's several little small peaks there between the 243 00:21:28,480 --> 00:21:29,800 WCDM channel and the host. So if you look in the middle there, there's a peak. There's several little 244 00:21:29,800 --> 00:21:30,000 small peaks there between the WCDM channel and the host. So if you look in the middle there, there's a 245 00:21:30,020 --> 00:21:33,180 peak. There's a peak. So you can see those littleemale cells and the LTE channels. And here 246 00:21:33,180 --> 00:21:38,120 they're gone. There's radios sitting in the same spot. The antenna's sitting in the same spot but 247 00:21:38,120 --> 00:21:46,540 they're gone. Where do they go? Do you have anything idea what those go. If you guess, GSM 248 00:21:46,540 --> 00:21:57,000 that would be right. This screenshot is from before January 1, 2017 and this is after 18T shut off 249 00:21:57,000 --> 00:22:00,000 their GSM. So these are some gl EPG screen shots. If you just turn off dage on, it takes away 250 00:22:03,560 --> 00:22:11,800 version of Phosphor offers various shadings so here's a few views of those. Now this is the 251 00:22:11,800 --> 00:22:17,020 same center frequency but instead of looking at 50 megahertz worth of bandwidth we're now 252 00:22:17,020 --> 00:22:24,380 looking at 200 megahertz worth of bandwidth. And this would be at the, if we were to be 253 00:22:24,380 --> 00:22:32,020 streaming the 200 megahertz over to the host that's at 6.4 gigabits per second but even though 254 00:22:32,020 --> 00:22:36,340 that we're now doing this on RFNOC this is still at about 4 megabits per second. So it's 255 00:22:36,340 --> 00:22:42,360 possible to stream this over the internet. So here's an example of a Wi-Fi channel and you 256 00:22:42,360 --> 00:22:49,480 can see some Bluetooth I think there or a mouse or something, the little NFR 24 modules. So 257 00:22:49,480 --> 00:22:54,360 this is an example of the RFNOC flow graph. Starting with the RFNOC flow graph you can see 258 00:22:54,380 --> 00:23:00,180 the radio block on the left. If you'll note as Neil mentioned the green lines that are in 259 00:23:00,180 --> 00:23:05,820 between the blocks indicates that that data is being transported on the FPGA between the 260 00:23:05,820 --> 00:23:10,900 blocks. So first we're bringing in in this example we're bringing in 200 megahertz off of 261 00:23:10,900 --> 00:23:15,160 the ADC and then we're going to go through a DDC so it's the digital down converter. This is 262 00:23:15,160 --> 00:23:21,040 a decimation stage within the FPGA. So it's going to bring it from a 200 megahertz rate down 263 00:23:21,040 --> 00:23:24,360 to a 50 megahertz rate. Then we run a win, an FFT. So we're going to run an FFT and then we're 264 00:23:24,380 --> 00:23:27,080 going to run an FFT windowing function. I think in this one we're running like a Blackman Harris. 265 00:23:28,440 --> 00:23:36,940 Next we go through an FFT which will compute the four year transform. Next it goes into the RFNOC 266 00:23:36,940 --> 00:23:42,460 phosphor block and this will actually take that vector of bins and generate the visualization. 267 00:23:43,040 --> 00:23:49,060 That's sent through a couple FIFOs for buffering. Also through a copy block once it's on to the 268 00:23:49,060 --> 00:23:54,220 host for additional buffering. And then on to the actual phosphor display block which is what you're 269 00:23:54,380 --> 00:23:59,560 actually seeing and that's one of the only things that's running on the host. This could run on a 270 00:23:59,560 --> 00:24:06,160 Raspberry Pi. And in comparison if you want to take in a 200 megahertz sample stream you need 271 00:24:06,160 --> 00:24:12,700 basically a high end i7 CPU just to be able to keep up with it. This can run on a Raspberry Pi. 272 00:24:15,820 --> 00:24:20,940 So we're currently running the demo here in Wireless Village to provide spectrum monitoring 273 00:24:20,940 --> 00:24:24,360 service for the Wireless Capture Flight Contest. This is a demo that we're going to run on a Raspberry 274 00:24:24,360 --> 00:24:28,380 Pi. You can see that we have a physical knob that is on the desk and Neil is going to pick it up and 275 00:24:28,380 --> 00:24:34,200 hold it. You can come up and you can tune it around and if you press it there's predefined 276 00:24:34,740 --> 00:24:39,900 frequency so you can hop around to some interesting looking signals. So right now we're looking at 277 00:24:39,900 --> 00:24:46,240 2.4 and if you click it a few times you'll hop around you'll find the 700 megahertz LT and 278 00:24:46,240 --> 00:24:54,180 various signals. Come up and play with it, twist it. If you press and hold it, it will adjust the gain. 279 00:24:54,360 --> 00:25:05,140 So you can turn the gain up and down right there. So in summary, RFNOC we're trying to make FPG 280 00:25:05,510 --> 00:25:13,660 acceleration more accessible. This doesn't mean that if you don't, with an exception, HLS with 281 00:25:13,660 --> 00:25:24,340 Vivaldo HLS you're able to convert C and C++ into the VHDL or Verilog code. But if you don't know 282 00:25:24,360 --> 00:25:37,920 FPGA, Verilog or VHDL there's still a barrier of entry slightly. It's not a fully automated 283 00:25:37,920 --> 00:25:42,880 framework. Like you do have to understand a little bit about FPGA development. It's tightly 284 00:25:42,880 --> 00:25:48,680 integrated with GNU Radio but you do not have to use GNU Radio. You can use it with C++ and 285 00:25:48,680 --> 00:25:54,340 pure UHD. There's a built-in block, or library blocks. If you click this one, it will automatically 286 00:25:54,360 --> 00:26:03,060 uh, for OFDM, FFT, for filters, signal generator, the phosphor blocks. Those blocks are all 287 00:26:03,060 --> 00:26:09,640 portable between all the usurps. So if you develop something on an X300 with some slight 288 00:26:09,640 --> 00:26:14,740 modifications, possibly, you can port it to any other, uh, system. Generally, if it works 289 00:26:14,740 --> 00:26:19,660 on one, it will run all of them. Um, it's completely open source, as Nealon mentioned, 290 00:26:19,660 --> 00:26:26,800 so, and licensed under, uh, LGPL, which means that you do not have to release your IP if you 291 00:26:26,800 --> 00:26:32,720 choose not to. Uh, we have a knowledge base that's at kb.es.com. There's a great getting 292 00:26:32,720 --> 00:26:37,580 starting guide. There's also a companion video, which will walk you through building your first 293 00:26:37,580 --> 00:26:43,620 RFNOC block. Um, just a little plug, there's a new radio conference coming up. It's in Las 294 00:26:43,620 --> 00:26:49,640 Vegas, or in Henderson this year. Uh, we will be running three, uh, four-hour workshops, 295 00:26:49,660 --> 00:26:54,600 on RFNOC, which will completely go through, and you'll build your first FPGA image and run it. 296 00:26:55,300 --> 00:27:02,780 Um, we'd like to give an exceptional and a special thank you to, uh, first and foremost, Zero 297 00:27:02,780 --> 00:27:08,840 Chaos, and Rick Meledick, and the entire Wireless Village crew. The service that these guys 298 00:27:08,840 --> 00:27:18,600 provide is outstanding. It's pretty rare to find a group of people who are so dedicated, and so 299 00:27:18,600 --> 00:27:27,100 thoroughly, uh, interested in teaching the world about wireless security. As soon as you take your 300 00:27:27,100 --> 00:27:33,720 data off the line, and you put it in the air, it's free for everybody to take. There's no, there's 301 00:27:33,720 --> 00:27:41,440 no security. You have to, and a lot of times, RF security is overlooked. Um, also, I'd like to 302 00:27:41,440 --> 00:27:48,080 thank the core RFNOC developers and architects, uh, Jonathan Pendlum, and Dr., Dr., uh, Martin Brown, 303 00:27:48,740 --> 00:27:58,700 they've, uh, they have architected and built this wonderful framework that is making it much 304 00:27:58,700 --> 00:28:09,580 easier for you to put your custom DSP into the FPGA. Um, thank you for coming. Uh, I appreciate 305 00:28:10,400 --> 00:28:16,020 everybody's attention, and that's it. Would you like to have any last words, Neil? 306 00:28:18,600 --> 00:28:20,600 Thank you.