Ztachip Accelerates Tensorflow And Image Workloads

[Vuong Nguyen] clearly knows his way around artificial intelligence accelerator hardware, creating ztachip: an open source implementation of an accelerator platform for AI and traditional image processing workloads. Ztachip (pronounced “zeta-chip”) contains an array of custom processors, and is not tied to one particular architecture. Ztachip implements a new tensor programming paradigm that [Vuong] has created, which can accelerate TensorFlow tasks, but is not limited to that. In fact it can process TensorFlow in parallel with non-AI tasks, as the video below shows.

A RISC-V core, based on the VexRiscV design, is used as the host processor handling the distribution of the application. VexRiscV itself is quite interesting. Written in SpinalHDL (a Scala variant), it’s super configurable, producing a Verilog core, ready to drop into the design.

A Digilent Arty-A7, Arducam and a VGA PMOD is all you need

From a hardware design perspective the RISC-V core hooks up to an AXI crossbar, with all the AXI-lite busses muxed as is usual for the AMBA AXI ecosystem. The Ztachip core as well as a DDR3 controller are also connected, together with a camera interface and VGA video.

Other than providing an FPGA-specific DDR3 controller and AXI crossbar IP, the rest of the design is generic RTL. This is good news. The demo below deploys onto an Artix-7 based Digilent (Arty-A7) with a VGA PMOD module, but little else needed. Pre-build Xilinx IP is provided, but targeting a different FPGA shouldn’t be a huge task for the experienced FPGA ninja.

Ztachip top level architecture

The magic happens in the Ztachip core, which is mostly an array of Pcores. Each Pcore has both vector and scalar processing capability, making it super flexible. The Tensor Engine (internally this is the ‘dataplane processor’) is in charge here, sending instructions from the RISC-V core into the Pcore array together with image data, as well as streaming video data out. That camera is only a 0.3 MP Arducam, and the video is VGA resolution, but give it a bigger FPGA and those limits could be raised.

This domain-specific approach uses a highly modified C-like language (with a custom compiler) to describe the application that is to be distributed across the accelerator array. We couldn’t find any documentation on this, but there are a few example algorithms.

The demo video shows a real-time mix of four algorithms running in parallel; one object classification (Google’s Tensorflow mobilenet-ssd, a pre-trained AI model) canny edge detection, a Harris corner detection, and Optical flow which gives it a predator-like motion vision.

[Vuong] reckons, efficiency wise it is 5.5x more computationally efficient than a Jetson Nano and 37x more than Google’s TPU edge. These are bold claims, to say the least, but who are we to argue with a clearly incredibly talented engineer?

We cover many AI-related topics, like this AI assisted tap-typing gadget, for starters. And not wanting to forget about the original AI hardware, the good old-fashioned neuron, we got that covered as well!

Continue reading “Ztachip Accelerates Tensorflow And Image Workloads”

Something’s Up In Switzerland: Explaining The B Meson News From The Large Hadron Collider

Particle physics is a field of extremes. Scales always have 10really big number associated. Some results from the Large Hadron Collider Beauty (LHCb) experiment have recently been reported that are statistically significant, and they may have profound implications for the Standard Model, but it might also just be a numbers anomaly, and we won’t get to find out for a while. Let’s dive into the basics of quantum particles, in case your elementary school education is a little rusty.

It all starts when one particle loves another particle very much and they are attracted to each other, but then things move too fast, and all of a sudden they’re going in circles in opposite directions, and then they break up catastrophically…

Continue reading “Something’s Up In Switzerland: Explaining The B Meson News From The Large Hadron Collider”

The Future Circular Collider: Can It Unlock Mysteries Of The Universe?

In the early 1990s, I was lucky enough to get some time on a 60 MeV linear accelerator as part of an undergraduate lab course. Having had this experience, I can feel for the scientists at CERN who have had to make do with their current 13 TeV accelerator, which only manages energies some 200,000 times larger. So, I read with great interest when they announced the publication of the initial design concept for the Future Circular Collider (FCC), which promises collisions nearly an order of magnitude more energetic. The plan, which has been in the  works since 2014, includes three proposals for accelerators which would succeed CERN’s current big iron, the LHC.

Want to know what’s on the horizon in high-energy physics?

Continue reading “The Future Circular Collider: Can It Unlock Mysteries Of The Universe?”

Rotary Electric Gun Might Not Put Your Eye Out, Kid

This one is clearly from the “it’s all fun and games until someone loses an eye” file, and it’s a bit of a departure from [Make It Extreme]’s usual focus on building tools for the shop. But what’s the point of having a well-equipped shop if you don’t build cool things, like this unique homebrew electric gun?

When we hear “electric gun” around here, we naturally think of the rail guns and coil guns we feature on a regular basis, which use stored electric charge to accelerate a projectile using electromagnetic forces. This gun is much simpler than that, using purely mechanical means to accelerate the projectiles. The heart of the unit is a machined aluminum spiral from an old scroll compressor, which uses interleaved orbiting spirals to compress gasses. This scroll was cut down to reduce its mass and fixed to a complex shaft assembly allowing it to spin up to tremendous speed with a powerful electric motor. A hopper feeds the marble-sized ammo into the eye of the scroll, which spits it out at high speed. Lacking a barrel, the gun can only spew rounds in the general direction of the target, but it makes up for inaccuracy with an impressive rate of fire — 100 rounds downrange in two seconds. It’s pretty powerful, too, judging by the divots in the sheet steel target in the video below.

Like all of [Make It Extreme]’s build, a lot of effort went into this, and it shows. Their other fun builds of dubious safety include these electromagnetic wall climbers and these “Go Go Gadget” legs.

Continue reading “Rotary Electric Gun Might Not Put Your Eye Out, Kid”

Military Surplus Repurposed For High Energy Physics

Performing high-energy physics experiments can get very expensive, a fact that attracts debate on public funding for scientific research. But the reality is that scientists often work very hard to stretch their funding as far as they can. This is why we need informative and entertaining stories like Gizmodo’s How Physicists Recycled WWII Ships and Artillery to Unlock the Mysteries of the Universe.

The military have specific demands on components for their equipment. Hackers are well aware MIL-SPEC parts typically command higher prices. That quality is useful beyond their military service, which lead to how CERN obtained large quantities of a specific type of brass from obsolete Russian naval ordnance.

The remainder of the article shared many anecdotes around Fermilab’s use of armor plate from decommissioned US Navy warships. They obtained a mind-boggling amount – thousands of tons – just for the cost of transport. Dropping the cost of high quality steel to “only” $53 per ton (1975 dollars, ~$250 today) and far more economical than buying new. Not all of the steel acquired by Fermilab went to science experiments, though. They also put a little bit towards sculptures on the Fermilab campus. (One of the few contexts where 21 tons of steel can be considered “a little bit”.)

Continue reading “Military Surplus Repurposed For High Energy Physics”

The Physics Of Healing: Radiation Therapy

Few days are worse than a day when you hear the words, “I’m sorry, you have cancer.” Fear of the unknown, fear of pain, and fear of death all attend the moment when you learn the news, and nothing can prepare you for the shock of learning that your body has betrayed you. It can be difficult to know there’s something growing inside you that shouldn’t be there, and the urge to get it out can be overwhelming.

Sometimes there are surgical options, other times not. But eradicating the tumor is not always the job of a surgeon. Up to 60% of cancer patients will be candidates for some sort of radiation therapy, often in concert with surgery and chemotherapy. Radiation therapy can be confusing to some people — after all, doesn’t radiation cause cancer? But modern radiation therapy is a remarkably precise process that can selectively kill tumor cells while leaving normal tissue unharmed, and the machines we’ve built to accomplish the job are fascinating tools that combine biology and engineering to help people deal with a dreaded diagnosis.

Continue reading “The Physics Of Healing: Radiation Therapy”

How To Know When An Accelerator Is Not Right For Your Startup

A few weeks ago we ran an article on the benefits of accelerator programs. While I agreed with almost everything in it, the article still bothered me, and I wanted to start a discussion about when an accelerator is not appropriate. So many startups are regularly asked “have you thought about Kickstarter? Shark Tank? Are you raising money? YCombinator?” These questions are constantly ingrained into people’s brains and they come to think those are the only options.

The reality is that there are lots of ways to build a company, and Kickstarter, Shark Tank, angel investors, and accelerators are all new within the last few years, and they aren’t right for many people. So let’s look at when an accelerator is right for you.

Continue reading “How To Know When An Accelerator Is Not Right For Your Startup”