Zip CPU (@zipcpu) profile picture

FPGA design engineer and blogger, placing particular emphasis on test and formal verification

Gisselquist Technology, LLC,
Joined January 2017
Photo by Zip CPU (@zipcpu)Photo by Zip CPU (@zipcpu)Photo by Zip CPU (@zipcpu)Photo by Zip CPU (@zipcpu)Photo by Zip CPU (@zipcpu)Photo by Zip CPU (@zipcpu)Photo by Zip CPU (@zipcpu)Photo by Zip CPU (@zipcpu)Photo by Zip CPU (@zipcpu)Photo by Zip CPU (@zipcpu)
Wow, lots of new twitter followers just joined. Welcome! Just to give you an opportunity to get to know me and the ZipCPU blog, here's a bit about me and what you can expect here: zipcpu.com/blog/2018/10/04/w… Again, welcome!
6
4
1
63
Here's a trace from a NAND SPI system. Note that you can speed up the transfer rate, but there comes a point where no matter how fast you speed the transfer rate, the operation just doesn't go significantly faster.
1
21
1,184
I've asked another engineer working with me to run some memory testing. I suggested he use my memory testing function, but I had apparently forgotten how optimized the function was. This led to a long discussion about software optimizations. github.com/ZipCPU/kimos/blob…
27
894
One of the challenges of digital signal processing is knowing whether or not your chosen algorithm is "good enough." This morning, I was remembering this challenge from decades ago. It's a fun problem, requiring some good old fashioned of numerical analysis ...
3
53
2,654
The real trick to this problem is guaranteeing that the chosen interpolation method will be "good enough."
1
8
396
In my case, I chose to use piecewise polynomial upsampling, as described by Harris (I personally *love* the technique), but with a completely different basis from the 6th order ad hoc polynomials he chooses to generate. Hence, unlike Harris, I chose a Cubic polynomial designed to guarantee constants, lines, quadratics and cubics would pass without distortion. Incidentally, this also guarantees a very flat passband near zero frequency. To measure accuracy, you can then examine the Fourier transform of the resulting piecewise polynomial. (It acts like a continuous FIR filter, applied to discrete sample points.)
9
308
5 years ago, everyone and his grandmother did a RISC-V core for a FPGA. Today I have the impression it is fashionable that everyone and his grandmother design a Vulcan compatible GPU for FPGA. I am very fine with that. It might push forward openXC7, the open source Xilinx tools
13
29
1
347
13,399
Perhaps a picture would do a better job explaining what happened ... The good news is that regressions are now passing (again) following a simple fix (S/W change only) to move the sample clock earlier.
Today's bug: two simulators (XCelium, Icarus), same logic, one test case passes, one doesn't. Why? It's a race condition. The model sets its data on the same cycle as it gets sampled. One simulator samples the data before it gets set by the model, the other afterwards.
1
1
30
1,583
Today's bug: two simulators (XCelium, Icarus), same logic, one test case passes, one doesn't. Why? It's a race condition. The model sets its data on the same cycle as it gets sampled. One simulator samples the data before it gets set by the model, the other afterwards.
5
1
1
29
3,542
Today's bug of the week is a story. It starts with a commercial memory controller (built by yours truly), that passes all of its simulation tests. Reads tested, writes tested, WRAP tested, Exclusive access checked, etc. Many, but not all components were formally verified.
1
2
63
2,647
Formally verifying the components involved required building proper interface property sets--to make sure any input assumptions were guaranteed by the prior component and so on. In the process, another bug was found whereby reads (or writes) crossing different devices might get merged. Likewise, reads might have accidentally merged requests across WRAP requests--turning WRAP requests of the H/W into hybrid WRAP requests--even though not all memories support hybrid wrap.
1
2
234
Sadly, this was a "working" IP. There was no time (or money ...) planned in the schedule for rebuilding critical components. Time had to be made, but that will push everything else a bit later. I was supposed to be working on a memory controller for another type of memory. Life happens.
4
219
I can't say I've never made this mistake before Note that TFR_WRITE != TFR_TXPARITY ... otherwise this might've worked accidentally ...
4
1
15
985
Just for context, r_transfer is the name of the state variable -- although the bug would still be a bug either way.
243
This weeks design puzzle has been to build an AXI cache: AXI in, AXI out with all WSTRB bits set. I've been a bit surprised at the requirements of such a controller, and the more I've dug into it, the more challenging and complex it becomes.
2
1
12
1,042
One subtle reality, is that the two streams (read/write) of such a cache cannot be independent. If nothing else, they will need arbitration to access tag memory. This is in contrast to most of my AXI work, where I try to keep the read/write FSMs as independent as possible.
1
3
362
Further, because this is intended to be an ASIC design, all cache accesses--both tag and memory--will be single port only, for area reduction purposes. That's just a sample of some sticky details.
4
226
This stack exchange post has a good description of the problems with using AES-CTR for memory encryption. I love the included pictures. They tell the story well. crypto.stackexchange.com/que…
19
1,592