mirror of
https://github.com/YosysHQ/yosys
synced 2025-08-05 10:50:25 +00:00
Add support for load value into DSP48E1.P
This commit is contained in:
parent
682153de4b
commit
2d80866daf
2 changed files with 48 additions and 31 deletions
|
@ -40,6 +40,7 @@ void pack_xilinx_dsp(dict<SigBit, Cell*> &bit_to_driver, xilinx_dsp_pm &pm)
|
|||
log("dsp: %s\n", log_id(st.dsp, "--"));
|
||||
log("ffM: %s\n", log_id(st.ffM, "--"));
|
||||
log("addAB: %s\n", log_id(st.addAB, "--"));
|
||||
log("muxAB: %s\n", log_id(st.muxAB, "--"));
|
||||
log("ffP: %s\n", log_id(st.ffP, "--"));
|
||||
//log("muxP: %s\n", log_id(st.muxP, "--"));
|
||||
log("sigPused: %s\n", log_signal(st.sigPused));
|
||||
|
@ -58,7 +59,11 @@ void pack_xilinx_dsp(dict<SigBit, Cell*> &bit_to_driver, xilinx_dsp_pm &pm)
|
|||
log(" adder %s (%s)\n", log_id(st.addAB), log_id(st.addAB->type));
|
||||
|
||||
SigSpec &opmode = cell->connections_.at("\\OPMODE");
|
||||
if (st.ffP && C == P) {
|
||||
if (st.ffP && st.muxAB) {
|
||||
opmode[4] = st.muxAB->getPort("\\S");
|
||||
pm.autoremove(st.muxAB);
|
||||
}
|
||||
else if (st.ffP && C == P) {
|
||||
C = SigSpec();
|
||||
opmode[4] = State::S0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue