azonenberg, to random
@azonenberg@ioc.exchange avatar

Anybody familiar with the LRM who can tell me if it's legal to use an integer or logic (vs a genvar) as an index into an array of interfaces?

Example:
logic[PORT_BITS-1:0] devid;
always_comb upstream.prdata = prdata[downstream[g].prdata;

where upstream and downstream are both interface objects.

Vivado complains when I do this. I can achieve the same result in two steps by creating a wire[DATA_WIDTH-1:0][NUM_PORTS-1:0] prdata, then assigning it to the interface value with a generate loop, then doing a normal behavioral mux on this vector, so it's not the end of the world, but it does make the code uglier.

didier, to verilog
@didier@malenfant.net avatar

Looking to get started with development or just curious on how it's done? I got ya...

Just merged my tutorial site with the repo hosting all the sample code.

https://codeberg.org/DidierMalenfant/openFPGA-tutorials

ClashHDL, to haskell
@ClashHDL@fosstodon.org avatar

Time for my #introduction to the Fediverse! :masto_love:

Clash is an open source functional hardware description language built on #Haskell.
The Clash compiler allows you to use Haskell features like its strong and powerful typesystem as well as use existing Haskell code and libraries in your #FPGA and #ASIC designs! You can test your designs right inside the REPL, simulate it alongside other Haskell code or output #VHDL / #Verilog / #SystemVerilog code for synthesis.

Links in the profile ✨

didier, to systemverilog
@didier@malenfant.net avatar

Just updated the FAQ on the whole logic, reg, bit, wire and var mess in #SystemVerilog

I really wish I’d had that handy when I first started…

https://openfpgatutorials.org/docs/System-Verilog-FAQ

#OpenFPGA #FPGA #OpenFPGATutorials

  • All
  • Subscribed
  • Moderated
  • Favorites
  • megavids
  • khanakhh
  • mdbf
  • ethstaker
  • magazineikmin
  • GTA5RPClips
  • rosin
  • thenastyranch
  • Youngstown
  • InstantRegret
  • slotface
  • osvaldo12
  • kavyap
  • DreamBathrooms
  • JUstTest
  • Durango
  • everett
  • cisconetworking
  • normalnudes
  • tester
  • ngwrru68w68
  • cubers
  • modclub
  • tacticalgear
  • provamag3
  • Leos
  • anitta
  • lostlight
  • All magazines