azonenberg, to random
@azonenberg@ioc.exchange avatar

Anybody familiar with the #SystemVerilog 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

Time for my to the Fediverse! :masto_love:

Clash is an open source functional hardware description language built on .
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 and designs! You can test your designs right inside the REPL, simulate it alongside other Haskell code or output / / 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
  • provamag3
  • InstantRegret
  • magazineikmin
  • modclub
  • khanakhh
  • Youngstown
  • rosin
  • mdbf
  • slotface
  • Durango
  • ngwrru68w68
  • thenastyranch
  • kavyap
  • DreamBathrooms
  • JUstTest
  • cubers
  • osvaldo12
  • Leos
  • anitta
  • everett
  • ethstaker
  • GTA5RPClips
  • tester
  • cisconetworking
  • megavids
  • tacticalgear
  • normalnudes
  • lostlight
  • All magazines