Design Your Own CPU!!!

Linus Tech Tips ·Linus Tech Tips ·2019-05-06 · 1,986 words · ~9 min read
Floatplane YouTube

Transcript

JSON SRT VTT 169
0:00 the year was 2018
0:03 which actually now that i think about it wasn't really that long ago but things
0:08 are moving really fast and it's already time for an update so earlier this year
0:13 we did a video about the first ever open source CPU architecture risk 5 in
0:19 collaboration with sci-5 the makers of
0:23 the first ever commercial risk 5 hardware and today today we get to go
0:28 deeper so sci-fi sponsored our trip down
0:31 to their headquarters in san francisco to see some early concepts of real
0:36 hardware products that are being built using their ip all the way from a normal
0:42 SSD like what you'd install in your pc or laptop to a functioning media server
0:47 and it might not look like much but buried under this mess of wires as
0:54 there so often is darby treasure
1:06 let's start with risk fives benefits in a nutshell one it's brand new which
1:11 means that it sheds a lot of the legacy bloat that accompanies traditional
1:15 processor architectures making it both extremely scalable and extremely power
1:20 efficient and two it's open source which
1:23 means no expensive licensing fees for the companies that use it in their
1:27 products it always comes down to money doesn't it
1:31 but it has some problems even if you had an
1:35 open source CPU architecture and you
1:38 knew how to build a CPU unless you're already vc backed out the butt and you
1:43 can scrape together a minimum order quantity on the order of hundreds of
1:47 thousands of chips a foundry like tsmc or global foundries is very unlikely to
1:53 even pick up the phone that is where sci-fi's real plan for the
1:58 future comes in so today if you
2:02 yeah you like you right there need to build a custom chip for some reason
2:05 let's say uh you want to build a microcontroller for a car or a smart
2:09 thermostat there's a good chance that you would need to build an entire team
2:14 of people that specialize in chip design and manufacturing looks expensive but
2:19 check this out in the same way that large-scale computing has largely moved
2:24 from servers in a closet under the stairs to the cloud where processing
2:29 power storage and network speed can be ordered a la carte
2:33 sci-5 has created the pizza ordering app
2:37 of custom chip development so you jump onto their website select
2:42 things like performance memory size the type of ports and
2:47 interfaces that you want and then as you go it generates a block diagram for you
2:54 in real time then you click build and it goes to a
2:58 cloud instance that chugs away generating and verifying the processor
3:03 that you defined then the next day you can download the
3:07 verilog rtl and fpga images that you can
3:10 then program onto a board and you're ready to rock
3:14 it's basically self-serve this is in stark contrast to
3:19 working with a traditional ip provider where you might have to sign an nda and
3:24 hand over some fat stacks before getting anywhere close to actually testing your
3:28 software on your custom chip now right now sci-fi core designer only
3:34 works for the CPU but in the future they'll integrate third-party
3:38 intellectual property like graphics controllers and allow customers to build
3:42 an entire soc through their web interface and then if they want to take
3:46 it a step further they can even have the chips fabbed and delivered through
3:51 scifi's partnership with tsmc
3:54 so the demo room then finally it starts with the sci-fi
3:59 fu540 the same computer that was previously running quake in our office
4:04 currently it's actually doing something a little different it's playing a
4:07 youtube video here which might not seem
4:11 that impressive but this is more of a
4:14 software compatibility demo so the operating system that's running here is
4:19 debian Linux with no risk 5 special
4:22 expertise required in order to use it now it's the daily update stream so you
4:26 can expect frequent updates but
4:29 if you wanted to install some random application let's say a firefox you just
4:35 app get install to be clear
4:38 no one at sci-5 is trying to convince average consumers to run out and buy one
4:43 of these boards and run it at home
4:46 outside of software from the package manager
4:50 very little will run at this time don't expect to download steam and start
4:54 gaming or whatever but the message here is that compatibility is improving about
5:00 94 of the packages in the debian repository support risk 5 and other
5:05 flavors of Linux are working as well including fedora open wrt and open
5:11 embedded and performance is improving too so web browsing
5:16 yeah it's actually super slow right now like let's go ahead and go to our
5:20 website
5:23 oh boy but the problem here
5:26 is that the engine behind the browser
5:30 doesn't have a javascript just in time compiler so it's kind of like having a
5:33 10 year old engine on a brand new car
5:36 with more optimization that should get as much as 10 times faster about
5:42 equivalent to an entry-level quad-core army 53 which as some of you probably
5:47 realize still isn't an overabundance of
5:50 performance if only there was some way to add
5:54 co-processing capability to it
5:57 oh wait there is so this demo right here comes courtesy
6:02 of microsemi a microchip company these
6:06 guys build field programmable gate arrays and fpgas are expensive but these
6:12 things are really cool so basically they're hardware chips that you can
6:17 program to offload certain workloads to
6:20 hardware rather than software allowing your device to perform a specific task
6:25 in this case computer vision really really quickly
6:30 so their plan is actually to take this entire thing here and turn it into a
6:35 single soc that they're calling polar fire marrying risk fives real-time Linux
6:41 capabilities to their programmability with full cache and memory coherency i'm
6:47 going to challenge this thing let's try a chair
6:50 what do you think can you do a chair oh airplane
6:54 wait ah there it is not had it for a second chair
6:59 it's still early still early days but hey person scott person confirmed here
7:05 first Linus is a real person
7:08 and it gets even more modular the risk five foundation includes some really
7:13 influential members these days including NVIDIA who has one of their nvdla deep learning
7:19 accelerators running the yolo you only look once algorithm for object detection
7:26 so in a similar fashion to the last demo we saw it pulls images from the webcam
7:30 here pushes them into the nvdla's buffers where the object is detected
7:35 then it displays the results on the monitor it's just a more powerful
7:40 example of fundamentally the same idea
7:43 let's see if it picks up the phone yeah look at that and the scalability goes
7:48 down as well so this is sci-fi's fe310
7:52 on a high five one board it's an embedded board that is physically
7:56 compatible with arduino but with about 10 times the performance
8:01 so the demo we're looking at here doesn't look like much but
8:05 what we're seeing is that it can work on a computational task in the background
8:10 and a real-time one which is the blinking of these leds right here so
8:15 there is a performance penalty to our led going off exactly on time
8:20 interrupting whatever else is going on but for some applications like medical
8:25 for example key tasks need to be performed
8:28 right now and actually this design across the table from upbeat is
8:33 targeting the chinese fitness wearable industry and is expected to show up in
8:38 future devices from huami it integrates a similar e3 series core but with extra
8:44 ip including a cnn or convolutional neural network and a graphics
8:49 accelerator it looks really big but this is just development stuff it's right
8:53 there cool huh now this next station is a
8:57 little more relatable for pc enthusiasts we talked at considerable length
9:01 recently about the complexity of pushing SSD performance up when nand flash
9:07 performance has gone down in recent years it requires very high speed
9:12 controller chips and scifi's partner fadu is actually working on what they
9:18 hope will be the fastest consumer SSD on the market with a planned ship date of
9:23 q3 2019 so this here is a fadoo asic
9:28 with three sci-5 e51 core ips so that's
9:32 their 64-bit high performance embedded core and those are driving the SSD
9:36 controller algorithms that do all of the page mapping and whatnot and fadu claims
9:42 that the sci-5 cores were one-third of the power and area of competing designs
9:48 now we couldn't plug it in to verify any of this it's still very early stages but
9:53 here's something we were able to plug in in years past
9:58 this home media server or nas device
10:01 from wd would have had an soc based on
10:05 licensed ARM intellectual property hooked up to its shingled magnetic
10:08 recording hard drive and then handling streaming media over your network to a
10:12 device like this laptop well
10:16 not today now they're really far away from talking
10:20 about performance at this point but the demo that you're seeing is running on
10:25 real risk five silicon with the cost savings that come with it and they're
10:30 hopeful that on top of a cost savings thanks to a greater degree of control
10:35 over the hardware they could create custom instructions that improve the
10:39 data path increasing performance dang leaving us with just a couple of
10:44 housekeeping items here so one sci-five had not one but three debugging tool
10:50 partners demoing their wares including iar sager and lauterbach and had a
10:56 couple really cool security demos this secure boot demo checks for a properly
11:01 signed Linux image and if everything's fine it boots normally but if
11:06 something's amiss this light goes off
11:11 wait for it
11:17 there it is bad evil Linux
11:21 cannot boot Linux authentication failed now obviously this is
11:26 not how it'll actually work in the real world but it's it's very cute
11:30 and then over here we have the hex 5 multi-zone demo
11:36 so the sci-5 processor is running this
11:39 motor control a console and a real-time program that's
11:44 making this led blink and each of them
11:48 is in its own bucket so the idea here is that if the
11:53 led blinker were to get attacked it can't turn around and in turn attack
11:59 your motor control
12:03 which basically concludes our portion of
12:06 today's exercise but you guys still have a homework assignment
12:10 this is pretty cool if you've ever even thought that chip design is kind of cool
12:15 go to sci-fi site and fire up their core designer just give it a try i think you
12:20 guys might be impressed at how cool it is even just as
12:24 like kind of a fun learning tool to look at what components there are to a CPU if
12:30 you've never really given it any thought anymore we're going to have that linked in the video description
12:34 so thanks to sci-fi for sponsoring this video thanks to you guys for watching it
12:38 if you guys disliked it you can hit that button but if you liked it hit like get
12:42 subscribed or maybe consider checking out where to buy the stuff we featured at the link below also down there is our
12:46 merch store which has cool shirts like this one and our community forum which
12:50 you should totally join