More SystemVerilog Streaming Examples
In my previous post I promised I would write about more interesting cases of streaming using a slice_size and arrays of ints and bytes. Well, I just posted another set of streaming examples to edaplayground . I'm going to mostly let you look at that code and learn by example, but I will take some time in this post to explain what I think is the trickiest of the conversions. When you go to edaplayground, choose the Modelsim simulator to run these. Riviera-PRO is currently the only other SystemVerilog simulator choice on edaplayground, and it messes up on the tricky ones (more on that in a bit). These examples demonstrate using the streaming operator to do these conversions: unpacked array of bytes to int queue of ints to queue of bytes queue of bytes to queue of ints int to queue of bytes class to queue of bytes Of all those examples, the queue of ints to queue of bytes and the queue of bytes to queue of ints are the tricky ones that I want to spend more ...