New official Arduno Cinque board uses 320 MHz RISC-V SoC. - Page 1
Forum section: electronics / general

author: brucehoult
author_rank: Super Contributor
timestamp: May 19, 2017, 06:28:08 pm
content: https://blog.hackster.io/sifive-unveils-the-first-risc-v-based-arduino-a4d07fe7f21fI've had SiFive's Arduino-compatible "HiFive1" with the same SoC for four months, but this is a whole new level of cred.The announcement is low on details at the moment, beyond the 320 MHz and that a WIFI/BT chip has been added. If it's the exact same SoC (very likely) then it's got 16 KB of SRAM and 16 KB of instruction cache.The orginal SiFive board has 16 MB of off-chip SPI flash, but that could obviously be different on this board.It will be interesting to see if the Arduino version has analogue inputs. That's the main thing the SoC itself (and SiFive's original board) is lacking.

author: thm_w
author_rank: Super Contributor
timestamp: May 19, 2017, 07:42:55 pm
content: They are saying it has an ESP32 on board as well.Just the ESP32 alone would be plenty for most applications. 240MHz and 520kB SRAM, 18 channel 12-bit ADC.Looks good but don't think it will be cheap when you have two powerful processors on it. Can make programming more difficult as well (at least at the low level).

author: ataradov
author_rank: Super Contributor
timestamp: May 19, 2017, 08:00:42 pm
content: FE310 needs a lot more work to be useful for anything. This is another marketing broad.

author: brucehoult
author_rank: Super Contributor
timestamp: May 20, 2017, 09:17:34 am
content: Quote from: ataradov on May 19, 2017, 08:00:42 pmWhile not yet as polished and comprehensive as the competing products made by your employer, I think it's going a bit too far to say there is nothing it is useful for.

author: coppice
author_rank: Super Contributor
timestamp: May 20, 2017, 12:04:00 pm
content: Quote from: brucehoult on May 20, 2017, 09:17:34 amIts useful for very little. In general, MCUs are about the peripherals, not the core.

author: CJay
author_rank: Super Contributor
timestamp: May 20, 2017, 01:59:40 pm
content: Have they fixed the bloody awful IDE and debug yet or do we have to still rely on crappy serial port debugging and no breakpoints etc?

author: ataradov
author_rank: Super Contributor
timestamp: May 20, 2017, 03:06:50 pm
content: Quote from: brucehoult on May 20, 2017, 09:17:34 amWhat are you going to do with all that power if there are no peripherals to get the data in or out of the device?I wish them luck, and I did support them on the KickStarter, but let's be real, this is a toy at the moment. And peripherals can make or break the MCU regardless of the core.

author: ehughes
author_rank: Frequent Contributor
timestamp: May 20, 2017, 03:22:47 pm
content: Execution from quad SPI essentially makes this a 40MHz part. I use SPIFI on the LPC series as it is good for boot code, etc but it is very slow.I am curious to the amount of SRAM and their target use case.

author: CM800
author_rank: Frequent Contributor
timestamp: May 20, 2017, 03:37:22 pm
content: So..... what's the point of open source silicon?...still haven't figured that part out.

author: ataradov
author_rank: Super Contributor
timestamp: May 20, 2017, 04:02:11 pm
content: The point is absence of licensing fees an potential lock outs.40 MHz QSPI is not a huge problem with caches. Embedded flash is better, but in conventional MCU is does not run much faster, there are still a lot of wait states at high frequencies.

author: coppice
author_rank: Super Contributor
timestamp: May 20, 2017, 04:11:11 pm
content: Quote from: ataradov on May 20, 2017, 04:02:11 pmWhat is the point of being absent of licencing fees for just one small piece of an MCU? (Yes, try looking at a typical MCU die, and you'll find the CPU is one of the smallest parts of the chip.). Developing a good set of peripherals for yourself is not a cheap activity.

author: ataradov
author_rank: Super Contributor
timestamp: May 20, 2017, 04:13:40 pm
content: Developing a working core is not cheap either, it is not a reason to give up. Over time they will make the peripherals as well. It is not that hard.

author: legacy
author_rank: Super Contributor
timestamp: May 20, 2017, 07:21:28 pm
content: It seems pure marketing shit.As usual

author: brucehoult
author_rank: Super Contributor
timestamp: May 20, 2017, 10:38:12 pm
content: Quote from: legacy on May 20, 2017, 07:21:28 pm"marketing" as in "You'll soon be able to casually wander into your local Arduino/Pi hobby store and pick one up, instead of ordering from a web site in another country and waiting a month"?That seems like a good thing to me. If it arrives faster than the bloody Due did.I believe the more correct term is "distribution".

author: legacy
author_rank: Super Contributor
timestamp: May 20, 2017, 10:51:55 pm
content: Quote from: brucehoult on May 20, 2017, 10:38:12 pmSince all the "arm" products (e.g. Zero, Due, ...) suck, I wonder why don't they stay focused on a replacement for the Teensy platform, which is neither made-by nor affiliated-with them. It's compatible with arduino through external support.RISC5 is even worse, it's experimental, unsupported, and useless, therefore completely useless for the common Arduino-user.

author: ataradov
author_rank: Super Contributor
timestamp: May 20, 2017, 10:53:27 pm
content: They don't have to have all they products to be useful for everyone. Don't like the board - don't buy it.

author: legacy
author_rank: Super Contributor
timestamp: May 20, 2017, 10:58:57 pm
content: Quote from: ataradov on May 20, 2017, 10:53:27 pmI like none of their products. They are all useless, except those based on AVR8(e.g. Arduino2009, Mega*, Nano*, etc)Of course, it's my point. I won't buy it for sure

author: julian1
author_rank: Frequent Contributor
timestamp: May 20, 2017, 11:10:07 pm
content: I'm interested. Although I'd like it if they published their implementation and core-ip as well.

author: ataradov
author_rank: Super Contributor
timestamp: May 20, 2017, 11:12:12 pm
content: Quote from: julian1 on May 20, 2017, 11:10:07 pmTheir? This thing is using FE310, which has everything published. It is not the easiest read though. It is all written in some obscure HDL conceived by Berkley.

author: julian1
author_rank: Frequent Contributor
timestamp: May 20, 2017, 11:16:56 pm
content: Quote from: ataradov on May 20, 2017, 11:12:12 pmRisc-v is published as a spec by Berkley no? And SiFive have only published their implementation's synthesized RTL according to Google?Quotehttps://blog.hackster.io/hifive1-is-an-open-source-arduino-compatible-risc-v-dev-kit-304c52cfee09

author: ataradov
author_rank: Super Contributor
timestamp: May 20, 2017, 11:19:46 pm
content: By RTL they mean synthesizeable. They provide full source code. Link to GitHub above.But yeah, good luck reading that Chisel. I really wish they went with Verilog.

author: julian1
author_rank: Frequent Contributor
timestamp: May 20, 2017, 11:27:30 pm
content: Thanks for the links. It looks like the Chisel stuff is embedded in Scala.Quote

author: ataradov
author_rank: Super Contributor
timestamp: May 21, 2017, 12:08:12 am
content: But implementation of actual interest are the ones that get implemented in the silicon. And I expect that it will be chisel for all of them.

author: brucehoult
author_rank: Super Contributor
timestamp: May 21, 2017, 12:28:41 am
content: Quote from: evb149 on May 21, 2017, 12:06:35 amI don't think that's really correct.There are three basic free and open microarchitecture designs for RISC-V that have come out of Berkeley:ZScale is newer than Vscale, and is "current". It's a very small 3-stage pipeline CPU, competitive with Cortex M0-M4. Last I heard, the RocketChip generator was being modified to output ZScale as an option.The Rocket itself is a deeper pipeline in-order CPU competitive with ARM designs such as A7, A9, A53. By default Rocket is 64 bit, but SiFive modified the generator to produce 32 bit CPUs as well, which is what is in this Arduino and the HiFive1.BOOM is an out of order design competitive with Cortex A15 or whichever is the equivalent 64 bit. A72? It's the least developed of the cores at the moment.The first Linux-capable SoCs will be multi-core 1.6 GHz 64 bit Rocket made on TSMC 28 nm and should start to be available around the end of the year. Those will be competitive with the Pi3 or Odroid C2.

author: timb
author_rank: Super Contributor
timestamp: May 21, 2017, 01:05:03 am
content: Quote from: ehughes on May 20, 2017, 03:22:47 pmWell, keep in mind that 40MHz QSPI is the equivalent of 160MHz standard SPI, so it's still quite fast!Most low-end MCUs can't even do regular SPI faster than 20MHz or so; 40-80MHz is common on the mid to high end range of parts.

author: retrolefty
author_rank: Super Contributor
timestamp: May 21, 2017, 01:42:51 am
content: Quote from: legacy on May 20, 2017, 10:58:57 pmI too believe that the Arduino platform 'peaked' with the AVR 8 bit boards. I will always be grateful for what they brought to the open source world. However their attempt to expand to ARM have been underwhelming and fractured.There remains a great opportunity for someone to bring the world a hobbyist and beginners friendly and easy to use ARM based product and IDE.

author: ataradov
author_rank: Super Contributor
timestamp: May 21, 2017, 01:46:35 am
content: Quote from: evb149 on May 21, 2017, 01:37:08 amThey will not get to that price in many-many years. ARM's cut in those things is not that great, and to see substantial savings, you need to make millions of them, and this is just not gonna happen with RISC V for quite some time.

author: ataradov
author_rank: Super Contributor
timestamp: May 21, 2017, 01:59:48 am
content: Quote from: blueskull on May 21, 2017, 01:57:28 amI would imagine it is a matter of specific contract with Si Five. Where is this information from (Si Five license cost)?Also, you should really compare it to M7, not M0.

author: ataradov
author_rank: Super Contributor
timestamp: May 21, 2017, 02:05:58 am
content: Ok, so I guess they have "pivoted". Good luck to them with this, but I'm not really interested in that. ARM has nothing to worry about hereQuoteWow, that's some marketing spin. So documenting and standing behind the open version was not an option?

author: brucehoult
author_rank: Super Contributor
timestamp: May 21, 2017, 03:39:23 am
content: Quote from: evb149 on May 21, 2017, 01:37:08 amThose guys are using obsolete and fully amortised smartphone application processors that have already shipped in huge volume.Pretty clearly a board using a new architecture and new SoC is not going to hit those price points. Anything we see in the near future is intended primarily as a "dip your toes in the water" route for people who are considering designing the SoC (or a related custom one) into a product. Literally an evaluation board.The boards are also not going to cost the $500 - $2000 that such boards used to cost.They will also sell to hobbyists who only want one or two and actually are not all that price sensitive about paying maybe twice the price. e.g. people who buy Odroid XU3/4 now.

author: ataradov
author_rank: Super Contributor
timestamp: May 21, 2017, 03:41:50 am
content: But with all this, if core is closed, then I really see no reason to even go to the hobbyist. Normal people will just stick with ARM. I seriously doubt RV will have any performance advantage.

author: brucehoult
author_rank: Super Contributor
timestamp: May 21, 2017, 03:52:02 am
content: Quote from: ehughes on May 20, 2017, 03:22:47 pmYou may have missed the 16 KB of instruction cache? (32 byte lines, 2 way associative)If it's exactly the same SoC as the HiFive1 (it seems to be) then it will also have the same 16 KB of SRAM for RW globals/stack/heap.I haven't seen anything about what SPI flash is on this board. The HiFive1 has a 16 MB part that runs at up to 133 MHz (and then quad on top of that), so reasonably speedy to stream code to fill the cache.On the HiFive1 the SPI does badly hurt *data* accesses to RO data in the .text/.rodata as there is no data cache. If you're going to access some lookup table in your inner loop then you get a massive speedup from copying it to the SRAM if you can afford the space for it ... or just leave off the "const" so the startup code will do it for you.

author: brucehoult
author_rank: Super Contributor
timestamp: May 21, 2017, 03:58:36 am
content: Quote from: ataradov on May 21, 2017, 03:41:50 amOf course.Literally no one thinks RISC-V will suddenly replace 99% of the ARMs out there, just as the 8086 and 68000 didn't suddenly replace all the VAXes and IBM mainframes, and Linus' toy OS didn't suddenly replace all the Solaris and Irix and HP/UX and AIX.In the next five years, no one is going to get fired for buying ARM cores or SoCs.

author: ataradov
author_rank: Super Contributor
timestamp: May 21, 2017, 04:02:05 am
content: All those things in your comparison were under-performing, but had real advantages over the thing they replaced.This closed system aims to replace another closed system with no performance advantage. There is a difference.Also, with it being closed, TrustZone and Management Engine will follwow, since market will demand this, and sales people will want to see a bullet point in the PowerPoint presentation.

author: brucehoult
author_rank: Super Contributor
timestamp: May 21, 2017, 07:34:31 am
content: Quote from: evb149 on May 21, 2017, 04:47:57 amAgree with all.Their previous "HiFive1" board is $59https://www.crowdsupply.com/sifive/hifive1The major differences we know of now are the addition of the ESB32 (+$5), and the replacement of FTDI by an STM Cortex M3 with USB (maybe a buck or two saved).So the price should be pretty similar. Maybe a little higher BOM, but also maybe they'll make more than the thousand or so of the HiFive1. And we don't know what profit or subsidy, if any, there is in either one. SiFIve just got another $8.5m of Series B to burn through. Even subsidising 10000 boards by $50 each ($0.5m) might not be a stupid use of money to help create that buzz. The salary clock is ticking away all the time and the runway getting shorter.Quote from: evb149 on May 21, 2017, 04:47:57 amYou know you can load the HiFive1 design into a $99 Arty FPGA board? And you can tweak it with your custom instructions etc all you want.https://dev.sifive.com/freedom-soc/evaluate/fpga/It only runs at 65 MHz, but that's true even with the $3500 VC707 FPGA board.

author: ataradov
author_rank: Super Contributor
timestamp: May 21, 2017, 07:39:02 am
content: What's the point of loading that into FPGA, when it is basically an abandoned platform? They are not going to support any of this open-source nonsense as soon as they get closed designs out.The whole thing is one big marketing plot.

author: brucehoult
author_rank: Super Contributor
timestamp: May 21, 2017, 08:25:03 am
content: Quote from: ataradov on May 21, 2017, 07:39:02 amThat's your opinion, to which you are entitled, though I'd be more comfortable if you added an "I work on ARM stuff for Atmel" disclaimer.Your opinion is contrary to what the SiFive founders, several of whom are also still academics at Berkeley, say. They'll lose face more by changing the plan than they will by failing commercially.A major advantage of open source with a free license, of course, is that once it is released it is out there forever, regardless of whether the originator ceases to exist, or makes later improvements closed (as the license entitles anyone to do, not only SiFive).Note that the thing they are offering for a $275k fee is primarily "free" support, along with customization and some extra peripheral busses.My own disclaimer: I currently work at Samsung R&D Russia on a project for "Device Solutions", the chipmaking division of Samsung, an ARM architectural licencee that designs some of its own ARM cores and SoCs (e.g. Exynos). However I'm working on another kind of chip and have no knowledge of any future ARM, RISC-V or other CPU plans.

author: ataradov
author_rank: Super Contributor
timestamp: May 21, 2017, 08:28:38 am
content: Quote from: brucehoult on May 21, 2017, 08:25:03 amThis has absolutely nothing to do with this. I want RISC V to succeed, I supported both KS campaigns, and got the board. But I want it to succeed on the promised freedom and openness. If all commercial implementations are closed and proprietary, then there is really no point in any of this, it is just another platform.My opinion is based purely on observing trends. This is not the first project to start with a goal of freedom, but as soon as investors come in, all freedom ends, and cut throat capitalism starts.

author: brucehoult
author_rank: Super Contributor
timestamp: May 21, 2017, 09:05:41 am
content: Quote from: ataradov on May 21, 2017, 08:28:38 amI agree 100%.The innovation here is in the "business model" not in the technical side, which is pretty straight up simple 2010 accumulated "Industry best practice" rather than some startling innovation.Technically, RISC-V is much cleaner than a full ARM chip with 3 - 5 ISAs (A32, T32, A64, Jazelle, T2EE). The advantage over a restricted T32-only Cortex M or A64-only like Cavium (and Apple?) is minor to zero.RISC-V does have one Unique Selling Proposition that may be very attractive in some markets: by far the best code density of any 64 bit ISA.Even if it fails in embedded, I think we're likely to see 100 - 1000 core RV64 chips hitting data centres within a couple of years at most. How hard would it be for Cavium to pivot and strap an RV64GC decoder on to their uArch? Not very, I think. And their customers don't have a lot of code in A64 assembler.

author: julian1
author_rank: Frequent Contributor
timestamp: May 21, 2017, 11:17:11 am
content: Quote from: evb149 on May 21, 2017, 12:17:55 amI have an icoboard. Unfortunately, I haven't had a chance to try Clifford's pico risc-v core with it yet.

author: julian1
author_rank: Frequent Contributor
timestamp: May 21, 2017, 11:25:14 am
content: Quote from: ataradov on May 21, 2017, 04:02:05 amThere's actually a market for CPU's that don't have IME, PSP or (from what I can determine - the less intrusive) TrustZone,https://www.reddit.com/r/Amd/comments/5x4hxu/we_are_amd_creators_of_athlon_radeon_and_other/def5h1b/

author: ataradov
author_rank: Super Contributor
timestamp: May 21, 2017, 05:23:16 pm
content: All of the above will require thousands of man-years to develop. Where you will get money to fund this?It is easier to build working communism than what's described above.Also, simulation of the silicon alone is already so slow, that it is impractical to do a lot of it. Adding system level things will make you wait weeks until minutes of real-time operation is characterized.And all of that assumes that your whole thing is open, and you somehow managed to get all of the peripherals in an open form. Most high-end MCUs on the market right now include a number of licensed peripherals, so you will have to either write them yourself, or convince vendors to do a lot more work for you. They will gladly do it, but they will also charge you for it. Your fully characterized system will cost more than the most expensive military hardware wee have today.

author: ataradov
author_rank: Super Contributor
timestamp: May 21, 2017, 05:30:28 pm
content: Quote from: julian1 on May 21, 2017, 11:25:14 amThis is demand comes from people being screwed over. But most likely, if spying chip has higher performance and costs less (because it is subsidized by Microsoft, for example), then people will go and by it.It is like being beaten up on United flight. All they have to do is offer cheaper flights, and people will buy them despite the outrage on the forums.And marketing people know all of this perfectly well.

author: ataradov
author_rank: Super Contributor
timestamp: May 21, 2017, 06:17:35 pm
content: Quote from: evb149 on May 21, 2017, 06:07:38 pmYes, but it is just ISA emulation, and not a cycle accurate simulation. I've seen cycle accurate simulation of Cortex-M0 with modern tools, and it is way way slower.Quote from: evb149 on May 21, 2017, 06:07:38 pmI've seen projects that had ~90% utilization on the highest density Virtex-2Pro, they took ~24 hours to synthesize, and hours to simulate milliseconds of real-time operation. This was when Virtex-2Pro was new, around 2005 or so, but I doubt things improved that much.XMOS can do that because your configuration options are reasonably limited compared to a real CPU core.There has been a huge improvement in development tools in recent years, and trend continues. But so far I see no indication that being open source is a contributing factor. If corporations wanted to come up with brilliant debug tools, they wold. The problem is that debug tools are money sinkers, so nobody goes out of their way to implement new things.

author: mac.6
author_rank: Regular Contributor
timestamp: May 23, 2017, 08:49:56 pm
content: Today there is hybrid machine for RTL simulation, like synopsys zebu machines, these are real beasts able to simulate at cycle level and with good speed (around Mhz range) a full cortex-A with peripherals (inc GPU).ok that's not a common tool to find in your average-joe company...

author: coppice
author_rank: Super Contributor
timestamp: May 24, 2017, 05:07:02 am
content: Quote from: mac.6 on May 23, 2017, 08:49:56 pmZebu machines are quite popular inside silicon vendors.

author: legacy
author_rank: Super Contributor
timestamp: May 24, 2017, 08:13:28 am
content: Quote from: coppice on May 24, 2017, 05:07:02 amPrice?

author: legacy
author_rank: Super Contributor
timestamp: May 24, 2017, 08:29:45 am
content: Quote from: evb149 on May 21, 2017, 06:07:38 pmYeah, people believe what they want to believe.I want to believe cows are violet and white,and mine produces delicious free chocolates

author: coppice
author_rank: Super Contributor
timestamp: May 24, 2017, 08:51:25 am
content: Quote from: legacy on May 24, 2017, 08:13:28 amIf you worry about the cost, you've never faced the financial consequences of an error in a mask set that can't be fixed on the metal layers.

author: legacy
author_rank: Super Contributor
timestamp: May 24, 2017, 10:01:04 am
content: Quote from: coppice on May 24, 2017, 08:51:25 amand it doesn't take a Sherlock to figure out that.(it's written in every HDL book).My question is just a question: what is the price of this tool?

author: mac.6
author_rank: Regular Contributor
timestamp: May 24, 2017, 12:55:21 pm
content: Quote from: legacy on May 24, 2017, 08:13:28 amInsane, only big chip makers use them, and even for them the machine are time slotted and shared all over the world (this is where it's handy to have sites in US/EU/Asia, 24/24h operation is possible).The first time I use them was when I was at nvidia few years ago.

author: brucehoult
author_rank: Super Contributor
timestamp: May 24, 2017, 02:21:16 pm
content: Quote from: mac.6 on May 24, 2017, 12:55:21 pmAccording to here ...https://www.semiwiki.com/forum/content/2738-cadence-introduces-palladium-xp-ii.html... "90% of the top semiconductor companies use Palladium emulation" rather than Zebu. Or maybe as well as. I, personally, hadn't heard of Zebu before this thread.

author: coppice
author_rank: Super Contributor
timestamp: May 24, 2017, 02:26:20 pm
content: Quote from: brucehoult on May 24, 2017, 02:21:16 pmIt says 90% of the top 30 semiconductor companies. The top 30 are big enough that you'll generally find one of everything around their organisation.