Re (2): Accessibility of FPGA configuration to V5 system.
From: Michael Schierl <schierlm@gmx.de> Date: Sat, 24 Jul 2021 15:21:45 +0200
The V5 system treats the RISC5 processor as a black box. It is not aware whether it is implemented as FPGA, as an ASIC or an emulator.
Understood. Although obviously I would have to learn far more to re-implement on a new FPGA or to make another emulator and etc.
While there is LOLA, it will only output Verilog and there are no tools in V5 to compile these to a bitstream of any FPGA model.
A limitation of software implementation. (?)
Also, the processor does not expose any way of altering (parts of) the bitstream it is running from.
In other words, the host RISC machine can not change while the OS is running? At the fundamental level, a gate in the array is in one of two states. The state of a gate can't be switched while the system is running? How is that prevented? Thx, ... P.L. -- 48.7693 N 123.3053 W tel: +1 604 670 0140
The fact that LOLA outputs only Verilog is a limitation in the context of most FPGA vendors' software tools to convert to a bitstream, but in the past year QuickLogic has changed that game by going completely open source with their FPGA development tools, so that bitstream generation could change from the proprietary model, if someone makes that effort. Arnim On Sat, 24 Jul 2021 08:17:09 -0700 peter@easthope.ca wrote:
From: Michael Schierl <schierlm@gmx.de> Date: Sat, 24 Jul 2021 15:21:45 +0200
The V5 system treats the RISC5 processor as a black box. It is not aware whether it is implemented as FPGA, as an ASIC or an emulator.
Understood. Although obviously I would have to learn far more to re-implement on a new FPGA or to make another emulator and etc.
While there is LOLA, it will only output Verilog and there are no tools in V5 to compile these to a bitstream of any FPGA model.
A limitation of software implementation. (?)
Also, the processor does not expose any way of altering (parts of) the bitstream it is running from.
In other words, the host RISC machine can not change while the OS is running?
At the fundamental level, a gate in the array is in one of two states. The state of a gate can't be switched while the system is running? How is that prevented?
Thx, ... P.L.
-- 48.7693 N 123.3053 W tel: +1 604 670 0140
-- Oberon@lists.inf.ethz.ch mailing list for ETH Oberon and related systems https://lists.inf.ethz.ch/mailman/listinfo/oberon
-- Arnim Littek <arnim@actrix.gen.nz>
Peter:
At the fundamental level, a gate in the array is in one of two states. The state of a gate can't be switched while the system is running? How is that prevented?
Some of your questions are probably answered on Wikipedia. More information is provided in P.P.Chu's books linked on RiskFive.com. https://en.wikipedia.org/wiki/Field-programmable_gate_array Wojtek
Am 24.07.2021 um 17:17 schrieb peter@easthope.ca:
From: Michael Schierl <schierlm@gmx.de> Date: Sat, 24 Jul 2021 15:21:45 +0200
The V5 system treats the RISC5 processor as a black box. It is not aware whether it is implemented as FPGA, as an ASIC or an emulator.
Understood. Although obviously I would have to learn far more to re-implement on a new FPGA or to make another emulator and etc.
While there is LOLA, it will only output Verilog and there are no tools in V5 to compile these to a bitstream of any FPGA model.
A limitation of software implementation. (?)
Mostly a limitation of not published bitstream formats for the major FPGA vendors.
Also, the processor does not expose any way of altering (parts of) the bitstream it is running from.
In other words, the host RISC machine can not change while the OS is running?
It would be possible to build a RISC machine that can change while the OS is running. The current version does not provide that capability.
At the fundamental level, a gate in the array is in one of two states. The state of a gate can't be switched while the system is running? How is that prevented?
From my limited understanding of how FPGA work (I took a one-semester course about hardware design ~20 years ago when I was at university): Initially the FPGA is usually programmed via JTAG interface. But the JTAG interface is not exposed to the processor in the current design. It is also possible (I believe in all FPGAs) to also expose (parts of the) gates to be programmed from other (parts of the) gates, without going though the JTAG interface, but that was not done in the Verilog files by NW either. That is a bit like using EPROM (single E!) chips for firmware but not providing any way to expose it to UV light, effectively making it a one-time programmable ROM. Regards, Michael
Michael Schierl [schierlm@gmx.de]
[LOLA] A limitation of software implementation. (?) Mostly a limitation of not published bitstream formats for the major FPGA vendors.
More than that. The modern FPGAs provide "hardened IP cores" like DSP slices, SERDES elements with bitslip gears, or hard memory controllers for DDRx. These blocks have hundreds of documented tuning parameters, which combine into a semi-infinite numbers of combinations and interactions. I suspect there are many more hidden parameters than mentioned in the documentation. Publishing the format of the programming file would not provide knowledge "how to use the format and how to tune the parameters". In the vendor's tools tuning is done by the extensive logic of the place-and-route tools, various wizards, core generators, and the predefined soft cores. All of that must be replaced by the dreamed LOLA tool in order to not just output the bit file, but also properly place-and-route all the connections reflected in that file, plus all the needed analog tuning parameters. Anyone who is airing such thoughts should first spend a couple weeks reading the official FPGA data sheets and User Guides for different aspects of the FPGA, followed by a few weeks of reading the vendors' fora, where the FPGA programmers report myriads of problems. Acquiring some background knowledge would prevent airing ideas which are manifestly oversimplified. This discussion is akin to the previous discussion of running the OS on Rpi. Chris pointed out the vastly different ARM cores in various Rpis. Such a background knowledge is easy to acquire before posting. From my side I can advise trying BeagleBone Black or derivatives, where there is always the same ARM chip w/o variations. You do not have to deal with diverse ARM cores. But first consult the AM335x Technical Reference Manual counting about six thousand pages. Referring to the TRM could bring some better meaning to the propositions.
Initially the FPGA is usually programmed via JTAG interface. But the JTAG interface is not exposed to the processor in the current design. It is also possible (I believe in all FPGAs) to also expose (parts of the) gates to be programmed from other (parts of the) gates, without going though the JTAG interface, but that was not done in the Verilog files by NW either.
I would advise to stay away from "partial reconfiguration". If one wants to explore this topic then the User Guide is easy to find on the vendor's website. Read it first to know why you are advised to stay away. Wojtek
participants (4)
-
Arnim Littek -
Michael Schierl -
peter@easthope.ca -
Skulski, Wojciech