You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
first pass, yosys gets stuck in a techmapping pass, so will require some debugging to figure out why
I'll share something later today, but it's before the PDK is even referenced, so I don't think that would matter (it's something in the RTL from the Chisel subsystem)
@gadfort , which steps did you follow to generate the SV with the CoralNPUChiselSubsystem top module?
I was looking at the Integration Guide and it gives instructions on how to generate the SV for top modules with the names CoreMiniAxi or RvvCoreMiniAxi.
The issue with yosys stems from the Chisel generated code, so once I isolated that thats the only file included. It was generated by building just the chisel part isolation, not sure if something went wrong when I ran it, but yosys still chokes on it.
I was following some of the FPGA integration since it has a top level with a reasonable number of ports (ie. integrated external memory).
FYI, Chisel allows a lot of control over how code is generated via firtool, such as memories, verilog style, disabling verification layers, disable randomization of registers, etc. This used to be more important before slang as yosys without slang is much more finicky about what Verilog constructs that it supports.
The issue with yosys stems from the Chisel generated code, so once I isolated that thats the only file included. It was generated by building just the chisel part isolation, not sure if something went wrong when I ran it, but yosys still chokes on it.
I was following some of the FPGA integration since it has a top level with a reasonable number of ports (ie. integrated external memory).
Thanks for the clarification. I wasn't looking at the FPGA code before. I'm able to export essentially the same SV as you included in your tarball (only changes appeared to be the ifdef's and some newlines).
So, now the question is what version of the design should be added to ORFS:
CoralNPUChiselSubsystem (FPGA)
CoreMiniAxi (scalar-only Coral NPU configuration is provided that can integrate with an AXI-based system)
RvvCoreMiniAxi (RISC-V vector (RV32IMF_Zve32x) version of Coral NPU)
@maliberty Perhaps it is a bridge too far to try to fake RAM for this design in asap7 initially?
There's interesting stuff to be learned from this design, other than how to set up SRAMs?
Given that the SRAMs will have a mismatch in behavioral model (number of ports, read clock, etc.), wrapper/interfaced logic would have to be written to combine one or more fake RAMs to a single RAM. This is what barstools does in Chipyard and SRAM inference support in FPGA.
I find that setting number of rows in SRAMs to 1 row and then looking at what else there is to learn from a big design first is a good first step.
W.r.t. interesting issues to investigate with coralnpu, I think memory instantiation and placement is the least novel/interestin, there are already designs that investigate that.
It would be neat with a feature that could put a pin in memory instantiation and placement to look for other interesting aspects with coralnpu:
I was looking at the bad tree we see. I have a branch that improves delay insertion in CTS and I tried it out. I got a skew of 77.04ps, which is not that much better.
When looking at the CTS result and the final result there is a huge difference on the trees. During balancing CTS thinks it has done a good job at the branch on the right, but at the final the over delay appears. This looks like some designs that we were not seting the correct RC values for the clock nets.
Excuse me, has anyone synthesized this design and found the Fmax or specifications for CoralNPU?
The design has too many logic levels with yosys to make sense physically(60+ as I recall), IMO. I wonder if it relies heavily on retiming which abc only does to a limited extent. Same as SonicBOOM, which is documented as requiring retiming.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 21 days if no further activity occurs. Remove the Stale label or comment to keep it open.
Activity
jeffng-or commentedon Oct 21, 2025
From Peter Gadfort:
first pass, yosys gets stuck in a techmapping pass, so will require some debugging to figure out why
I'll share something later today, but it's before the PDK is even referenced, so I don't think that would matter (it's something in the RTL from the Chisel subsystem)
test case: https://drive.google.com/file/d/1Glx6R5E9fm3ldPyH_hJKmE0mLV123_we/view?usp=sharing
oharboe commentedon Oct 22, 2025
How about adding a PR for coralnpu with bazel-orfs?
maliberty commentedon Oct 22, 2025
In ORFS? We have no bazel-orfs test there.
jeffng-or commentedon Oct 22, 2025
@gadfort , which steps did you follow to generate the SV with the CoralNPUChiselSubsystem top module?
I was looking at the Integration Guide and it gives instructions on how to generate the SV for top modules with the names CoreMiniAxi or RvvCoreMiniAxi.
gadfort commentedon Oct 23, 2025
The issue with yosys stems from the Chisel generated code, so once I isolated that thats the only file included. It was generated by building just the chisel part isolation, not sure if something went wrong when I ran it, but yosys still chokes on it.
I was following some of the FPGA integration since it has a top level with a reasonable number of ports (ie. integrated external memory).
oharboe commentedon Oct 23, 2025
FYI, Chisel allows a lot of control over how code is generated via firtool, such as memories, verilog style, disabling verification layers, disable randomization of registers, etc. This used to be more important before slang as yosys without slang is much more finicky about what Verilog constructs that it supports.
maliberty commentedon Oct 23, 2025
Note that slang is not yet on by default
oharboe commentedon Oct 23, 2025
Should it ever be?
It is easily enabled per project...
maliberty commentedon Oct 23, 2025
I don't see why not as the sv support in yosys is inferior.
oharboe commentedon Oct 23, 2025
Noted. Timeframe to make slang default? "asymptotic goal"?
maliberty commentedon Oct 23, 2025
More just a matter of getting around to testing it and making sure nothing breaks.
jeffng-or commentedon Oct 24, 2025
Thanks for the clarification. I wasn't looking at the FPGA code before. I'm able to export essentially the same SV as you included in your tarball (only changes appeared to be the ifdef's and some newlines).
So, now the question is what version of the design should be added to ORFS:
oharboe commentedon Oct 26, 2025
@maliberty Perhaps it is a bridge too far to try to fake RAM for this design in asap7 initially?
There's interesting stuff to be learned from this design, other than how to set up SRAMs?
Given that the SRAMs will have a mismatch in behavioral model (number of ports, read clock, etc.), wrapper/interfaced logic would have to be written to combine one or more fake RAMs to a single RAM. This is what barstools does in Chipyard and SRAM inference support in FPGA.
I find that setting number of rows in SRAMs to 1 row and then looking at what else there is to learn from a big design first is a good first step.
Realism in SRAM is dessert...
oharboe commentedon Oct 27, 2025
W.r.t. interesting issues to investigate with coralnpu, I think memory instantiation and placement is the least novel/interestin, there are already designs that investigate that.
It would be neat with a feature that could put a pin in memory instantiation and placement to look for other interesting aspects with coralnpu:
#3621
28 remaining items
jeffng-or commentedon May 4, 2026
No, the worst timing path is between two flops and there's not a whole lot of buffering going on. It does go through a synthesized regfile, though.
oharboe commentedon May 4, 2026
Does this design require retiming? What is the published frequency?
maliberty commentedon May 4, 2026
Possibly a candidate for operator swapping.
arthurjolo commentedon May 4, 2026
I was looking at the bad tree we see. I have a branch that improves delay insertion in CTS and I tried it out. I got a skew of 77.04ps, which is not that much better.
When looking at the CTS result and the final result there is a huge difference on the trees. During balancing CTS thinks it has done a good job at the branch on the right, but at the final the over delay appears. This looks like some designs that we were not seting the correct RC values for the clock nets.
CTS

Final
LeThanh666 commentedon May 20, 2026
Excuse me, has anyone synthesized this design and found the Fmax or specifications for CoralNPU?
oharboe commentedon May 20, 2026
The design has too many logic levels with yosys to make sense physically(60+ as I recall), IMO. I wonder if it relies heavily on retiming which abc only does to a limited extent. Same as SonicBOOM, which is documented as requiring retiming.
github-actions commentedon Jul 20, 2026
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 21 days if no further activity occurs. Remove the
Stalelabel or comment to keep it open.jeffng-or commentedon Aug 14, 2026
With da37dce, the config in (https://github.com/The-OpenROAD-Project-private/OpenROAD-flow-scripts/tree/asap7-coralnpu-take-2) gets stuck in DRT (36th iteration with 3k violations/14h).
jeffng-or commentedon Aug 26, 2026
Added via #4474