OpenSTA/verilog/VerilogWriter.cc

528 lines
15 KiB
C++
Raw Normal View History

2019-06-17 06:08:00 +02:00
// OpenSTA, Static Timing Analyzer
// Copyright (c) 2025, Parallax Software, Inc.
2019-06-17 06:08:00 +02:00
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
2019-06-17 06:08:00 +02:00
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.
//
// The origin of this software must not be misrepresented; you must not
// claim that you wrote the original software.
//
// Altered source versions must be plainly marked as such, and must not be
// misrepresented as being the original software.
//
// This notice may not be removed or altered from any source distribution.
2019-06-17 06:08:00 +02:00
2020-04-06 01:56:38 +02:00
#include "VerilogWriter.hh"
2020-04-05 20:35:51 +02:00
#include <cstdlib>
2021-01-19 20:40:49 +01:00
#include <algorithm>
2020-04-05 20:35:51 +02:00
2020-04-05 23:53:44 +02:00
#include "Error.hh"
#include "Liberty.hh"
#include "PortDirection.hh"
#include "Network.hh"
#include "NetworkCmp.hh"
#include "VerilogNamespace.hh"
2021-01-19 20:40:49 +01:00
#include "ParseBus.hh"
2019-06-17 06:08:00 +02:00
namespace sta {
2021-01-19 20:40:49 +01:00
using std::min;
using std::max;
2019-06-17 06:08:00 +02:00
class VerilogWriter
{
public:
VerilogWriter(const char *filename,
2019-06-17 21:33:37 +02:00
bool sort,
bool include_pwr_gnd,
CellSeq *remove_cells,
2019-06-17 06:08:00 +02:00
FILE *stream,
Network *network);
void writeModules();
2019-06-17 06:08:00 +02:00
protected:
void writeModule(const Instance *inst);
InstanceSeq findHierChildren();
void findHierChildren(const Instance *inst,
InstanceSeq &children,
CellSet &cells);
void writePorts(const Cell *cell);
void writePortDcls(const Cell *cell);
void writeWireDcls(const Instance *inst);
2019-06-17 06:08:00 +02:00
const char *verilogPortDir(PortDirection *dir);
void writeChildren(const Instance *inst);
void writeChild(const Instance *child);
void writeInstPin(const Instance *inst,
const Port *port,
bool &first_port);
void writeInstBusPin(const Instance *inst,
const Port *port,
bool &first_port);
void writeInstBusPinBit(const Instance *inst,
const Port *port,
bool &first_member);
void writeAssigns(const Instance *inst);
2019-06-17 06:08:00 +02:00
int findUnconnectedNetCount(const Instance *inst);
int findChildNCcount(const Instance *child);
int findPortNCcount(const Instance *inst,
const Port *port);
2019-06-17 06:08:00 +02:00
const char *filename_;
2019-06-17 21:33:37 +02:00
bool sort_;
2020-10-20 05:55:54 +02:00
bool include_pwr_gnd_;
CellSet remove_cells_;
2019-06-17 06:08:00 +02:00
FILE *stream_;
Network *network_;
int unconnected_net_index_;
2019-06-17 06:08:00 +02:00
};
void
writeVerilog(const char *filename,
2019-06-17 21:33:37 +02:00
bool sort,
bool include_pwr_gnd,
CellSeq *remove_cells,
2019-06-17 06:08:00 +02:00
Network *network)
{
if (network->topInstance()) {
FILE *stream = fopen(filename, "w");
if (stream) {
VerilogWriter writer(filename, sort, include_pwr_gnd,
2020-10-20 05:55:54 +02:00
remove_cells, stream, network);
writer.writeModules();
fclose(stream);
}
else
throw FileNotWritable(filename);
2019-06-17 06:08:00 +02:00
}
}
VerilogWriter::VerilogWriter(const char *filename,
2019-06-17 21:33:37 +02:00
bool sort,
bool include_pwr_gnd,
CellSeq *remove_cells,
2019-06-17 06:08:00 +02:00
FILE *stream,
Network *network) :
filename_(filename),
2019-06-17 21:33:37 +02:00
sort_(sort),
include_pwr_gnd_(include_pwr_gnd),
Network::id for maps/sets commit be70d30ae05665021254b0d7e69fb8d2f0a82890 Author: James Cherry <cherry@parallaxsw.com> Date: Tue Jan 17 17:04:49 2023 -0700 cmp Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 4d4ef96948afe3d6a00c4521aeb5bc74274f5737 Author: James Cherry <cherry@parallaxsw.com> Date: Tue Jan 17 16:08:50 2023 -0700 rvo, const Signed-off-by: James Cherry <cherry@parallaxsw.com> commit bb584e4264af2bea867b17d07e8d38c0e9eb0025 Author: James Cherry <cherry@parallaxsw.com> Date: Tue Jan 17 15:05:00 2023 -0700 const Signed-off-by: James Cherry <cherry@parallaxsw.com> commit a08fe558bca6b769b2728882258bd85aed990a27 Author: James Cherry <cherry@parallaxsw.com> Date: Tue Jan 17 14:57:33 2023 -0700 LibertyPortPair no ptrs Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 4d3bd60c109d1ce9d0589d746f4968fa7bebd90d Author: James Cherry <cherry@parallaxsw.com> Date: Tue Jan 17 14:13:07 2023 -0700 cleanup Signed-off-by: James Cherry <cherry@parallaxsw.com> commit dc25ff77771cfbe26f9318bad2b3c45879614783 Author: James Cherry <cherry@parallaxsw.com> Date: Tue Jan 17 14:06:13 2023 -0700 const Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 06e81586ce11a0cc06948ed78fef99353077d69e Author: James Cherry <cherry@parallaxsw.com> Date: Tue Jan 17 14:01:10 2023 -0700 sortByName Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 9d8592aff5b246f83e47e1b94490e3cef8d8e119 Author: James Cherry <cherry@parallaxsw.com> Date: Tue Jan 17 11:57:17 2023 -0700 sort pred Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 462a8e14df8b561ddfc842addc62c4b8435b6347 Author: James Cherry <cherry@parallaxsw.com> Date: Tue Jan 17 11:09:57 2023 -0700 const Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 69f71505b684e88b22d395510429497e87bf1015 Author: James Cherry <cherry@parallaxsw.com> Date: Tue Jan 17 10:45:14 2023 -0700 flush ConstPortSeq Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 6429d578b78eac3fe7e99fcd67a120789932b2eb Author: James Cherry <cherry@parallaxsw.com> Date: Tue Jan 17 09:19:15 2023 -0700 rm ConstNetSet Signed-off-by: James Cherry <cherry@parallaxsw.com> commit f247930b16e40560b957a36af68947249ed1ef04 Author: James Cherry <cherry@parallaxsw.com> Date: Tue Jan 17 08:50:50 2023 -0700 sortPathNames Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 4ca2b0e0af7252c7bcbc65cf141d0ce40634d329 Author: James Cherry <cherry@parallaxsw.com> Date: Mon Jan 16 10:14:05 2023 -0700 const Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 3d18640d2ebc4aae3098c7e7242a554fcb64fd42 Author: James Cherry <cherry@parallaxsw.com> Date: Mon Jan 16 09:41:27 2023 -0700 set_input/ouput_delay -reference_pin Signed-off-by: James Cherry <cherry@parallaxsw.com> commit d4a0854dd2102f46f96a94fb9eb8749f1593a85f Author: James Cherry <cherry@parallaxsw.com> Date: Mon Jan 16 09:13:46 2023 -0700 PinPairSet no malloc Signed-off-by: James Cherry <cherry@parallaxsw.com> commit a6f1583fc6a856c5ecc0dcb15a1d8b1f61e30718 Author: James Cherry <cherry@parallaxsw.com> Date: Mon Jan 16 08:53:33 2023 -0700 no malloc for EdgePins Signed-off-by: James Cherry <cherry@parallaxsw.com> commit c8e4b92e8b619109d6aa3c141c720646067ccb4b Author: James Cherry <cherry@parallaxsw.com> Date: Mon Jan 16 06:31:08 2023 +0000 leak commit abab99e0fc3e466d914f6c1705aa08cdc204df51 Author: James Cherry <cherry@parallaxsw.com> Date: Mon Jan 16 06:07:36 2023 +0000 leaks commit d1913b554bb6e98b89673d80d2295f552eb4ffca Author: James Cherry <cherry@parallaxsw.com> Date: Sun Jan 15 19:48:39 2023 -0700 LibertyCell::checkCornerCell Signed-off-by: James Cherry <cherry@parallaxsw.com> commit bcc172237d48deed647374f9592bac70bd2d5425 Author: James Cherry <cherry@parallaxsw.com> Date: Sun Jan 15 18:19:47 2023 -0700 rvo Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 8ef9800b87f5e5548055a13afc21397f28a6bcf7 Author: James Cherry <cherry@parallaxsw.com> Date: Sun Jan 15 18:07:46 2023 -0700 sdc net id Signed-off-by: James Cherry <cherry@parallaxsw.com> commit d7235abed04ced4e2d84e91bf9968e621268567d Author: James Cherry <cherry@parallaxsw.com> Date: Sun Jan 15 16:00:27 2023 -0700 range iter Signed-off-by: James Cherry <cherry@parallaxsw.com> commit a22f91a3c54c644574339d1126821d9bc8045bd6 Author: James Cherry <cherry@parallaxsw.com> Date: Sun Jan 15 15:52:50 2023 -0700 range iter Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 762615ce3de91d950eeaaa4680549a45b13e0e0a Author: James Cherry <cherry@parallaxsw.com> Date: Sun Jan 15 15:42:19 2023 -0700 range iter Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 7e0c531613d343d23f064c24873bf5a498f6f4ce Author: James Cherry <cherry@parallaxsw.com> Date: Sun Jan 15 12:26:49 2023 -0700 rm removeLoadCaps, removeNetLoadCaps Signed-off-by: James Cherry <cherry@parallaxsw.com> commit f2e88c6082e2d4605e9849348008bf4065401fc8 Author: James Cherry <cherry@parallaxsw.com> Date: Sun Jan 15 12:21:03 2023 -0700 sdc rm map ptrs Signed-off-by: James Cherry <cherry@parallaxsw.com> commit b5939666188c0b94dfe957e22bbd8a92f4786125 Author: James Cherry <cherry@parallaxsw.com> Date: Sun Jan 15 11:36:16 2023 -0700 sdc rm map ptrs Signed-off-by: James Cherry <cherry@parallaxsw.com> commit a435081bafe10260743319f53a59cbe2ed0388b7 Author: James Cherry <cherry@parallaxsw.com> Date: Sun Jan 15 08:43:37 2023 -0700 sdc rm map ptrs Signed-off-by: James Cherry <cherry@parallaxsw.com> commit acfb247559db7b726d47f203613488df0f7add53 Author: James Cherry <cherry@parallaxsw.com> Date: Sun Jan 15 08:38:07 2023 -0700 sdc rm map ptrs Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 7541b71da92ea15085615988a1e6ea1d4d53d8d6 Author: James Cherry <cherry@parallaxsw.com> Date: Sun Jan 15 08:00:55 2023 -0700 sdc rm map ptrs Signed-off-by: James Cherry <cherry@parallaxsw.com> commit d033210132656ea68fa834228575b9def1d02d90 Author: James Cherry <cherry@parallaxsw.com> Date: Sun Jan 15 07:52:03 2023 -0700 sdc rm map ptrs Signed-off-by: James Cherry <cherry@parallaxsw.com> commit ca6e9ecb7821b83ab024c4fee6df8f7fc8fc2ce2 Author: James Cherry <cherry@parallaxsw.com> Date: Sun Jan 15 07:38:12 2023 -0700 instance_pvt_maps_ Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 631e4209b596386f5818045d521784db5239f58d Author: James Cherry <cherry@parallaxsw.com> Date: Sun Jan 15 07:26:42 2023 -0700 rm GroupPathIterator Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 059c32afa87617fff530c9afa1ef8005a136739d Author: James Cherry <cherry@parallaxsw.com> Date: Sat Jan 14 20:07:44 2023 -0700 rm ClockIterator Signed-off-by: James Cherry <cherry@parallaxsw.com> commit c65fe873a6a6696220bbb44c4ecac87d5ca978ac Author: James Cherry <cherry@parallaxsw.com> Date: Sat Jan 14 19:45:58 2023 -0700 rvo Signed-off-by: James Cherry <cherry@parallaxsw.com> commit ce15c9a0cc78915acddc2f03749573d989ae96d6 Author: James Cherry <cherry@parallaxsw.com> Date: Sun Jan 15 01:04:03 2023 +0000 leaks commit f97955a0c7e70b65ceb3f697ff47c0524a9b3cd4 Author: James Cherry <cherry@parallaxsw.com> Date: Sat Jan 14 01:17:58 2023 +0000 leaks commit 7cdd65684adeb14e02827f5d93e7fab3b19af5dd Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 13 16:07:47 2023 -0700 leaks Signed-off-by: James Cherry <cherry@parallaxsw.com> commit ee97c7e50394a3927458e7ef09c5dbeb27719d15 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 13 11:52:48 2023 -0700 swig rm Tmp collections Signed-off-by: James Cherry <cherry@parallaxsw.com> commit c49935da8704e41459280971b7645fccd97e3d13 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 13 11:18:36 2023 -0700 swig rm Tmp types Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 4320b00ce700914843006f592126cd8cc1c4657a Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 13 10:55:10 2023 -0700 swig rm TmpPinSet, TmpPinSeq Signed-off-by: James Cherry <cherry@parallaxsw.com> commit ff6004910980c9b09b41f63a553a4481404cc539 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 13 10:45:06 2023 -0700 swig rm Tmp collections Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 9a5bf5c1a3e5a6d2996b3ab327fa2f3015f2ff20 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 13 10:15:29 2023 -0700 swig rm one TmpPinSet Signed-off-by: James Cherry <cherry@parallaxsw.com> commit f441116b56e23849485b2393b30e7086c33165a8 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 13 09:16:56 2023 -0700 leak Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 050b08df8618340b568d9cd41fd3d5f052e2c680 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 13 09:10:53 2023 -0700 leak Signed-off-by: James Cherry <cherry@parallaxsw.com> commit be8c17f3a715ab53140748dc1d94698209965cf9 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 13 08:59:06 2023 -0700 leak Signed-off-by: James Cherry <cherry@parallaxsw.com> commit e43b82f8fb52eaeda90e3c7e76cf350ae6735ebd Author: James Cherry <cherry@parallaxsw.com> Date: Thu Jan 12 18:57:49 2023 -0700 range iter Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 8db56209de7805ac2574fd2f76170bf68afd156d Author: James Cherry <cherry@parallaxsw.com> Date: Thu Jan 12 18:08:54 2023 -0700 GroupPathSet net id Signed-off-by: James Cherry <cherry@parallaxsw.com> commit cb7917f9827c2ea3afebd735cd4508405a0d77d4 Author: James Cherry <cherry@parallaxsw.com> Date: Thu Jan 12 12:00:15 2023 -0700 DataCheckLess net id Signed-off-by: James Cherry <cherry@parallaxsw.com> commit d9da3c62d7a76699c6ad62cebb1f5c39f89722fa Author: James Cherry <cherry@parallaxsw.com> Date: Thu Jan 12 11:42:27 2023 -0700 rm hashPtr uses Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 5bbea162bb1e023aba813598c7992c740ddf9d0b Author: James Cherry <cherry@parallaxsw.com> Date: Thu Jan 12 11:30:12 2023 -0700 EdgePins has use net id Signed-off-by: James Cherry <cherry@parallaxsw.com> commit df38405e2ebaabdd7bbf99f3b19d78b25bd95720 Author: James Cherry <cherry@parallaxsw.com> Date: Thu Jan 12 09:51:38 2023 -0700 ExceptionPath hash use net id Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 9a6dcfa54c54c9f50b14248a2449c70c20a0d977 Author: James Cherry <cherry@parallaxsw.com> Date: Thu Jan 12 08:56:49 2023 -0700 ClockInsertion, ClockLatency net id Signed-off-by: James Cherry <cherry@parallaxsw.com> commit dbb6dc0b8c93812458df31e93f08e0dbd74e8105 Author: James Cherry <cherry@parallaxsw.com> Date: Thu Jan 12 08:34:03 2023 -0700 ExceptionStateSet obj id Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 70b8721c48ec0816289ee09b664c332ee095875f Author: James Cherry <cherry@parallaxsw.com> Date: Thu Jan 12 08:14:37 2023 -0700 ClockGroups cmp Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 4c6c4ca191a99cd8541e106fec3202ee14968f39 Author: James Cherry <cherry@parallaxsw.com> Date: Thu Jan 12 07:38:17 2023 -0700 ClockGroup typedef to ClockSet Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 66f425315e16deee5f00b05c0a505766e7afbf01 Author: James Cherry <cherry@parallaxsw.com> Date: Wed Jan 11 20:32:38 2023 -0700 set cmps Signed-off-by: James Cherry <cherry@parallaxsw.com> commit a94866c7828af5b6714e3e4fffc13bdaf5155c0e Author: James Cherry <cherry@parallaxsw.com> Date: Wed Jan 11 19:08:09 2023 -0700 net use id Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 6348320908f42ebb5262117182e13d0024f65537 Author: James Cherry <cherry@parallaxsw.com> Date: Wed Jan 11 11:52:13 2023 -0700 exception id cmp Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 0edfca41b6d6408ac17f8dfe10e697c55146c1ef Author: James Cherry <cherry@parallaxsw.com> Date: Wed Jan 11 10:47:02 2023 -0700 range iter Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 44ad77985da9f0b9e7f4780e3f233c8d94fa7db7 Author: James Cherry <cherry@parallaxsw.com> Date: Wed Jan 11 08:27:58 2023 -0700 non-ptr set cmp Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 36de7d88c3fa683465604a9e16b2fc1f6bc5fdd0 Author: James Cherry <cherry@parallaxsw.com> Date: Wed Jan 11 08:00:54 2023 -0700 range iteration Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 4a31a2c8d9bdae58b09af8c05a64702ea3ac6c15 Author: James Cherry <cherry@parallaxsw.com> Date: Tue Jan 10 16:43:54 2023 -0700 tcl types Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 056a7447b494a4c8ecc9764650d78a5bed3d87e8 Author: James Cherry <cherry@parallaxsw.com> Date: Tue Jan 10 16:10:36 2023 -0700 tcl types Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 97239554c7625ba50ee729260f08eda7dec02365 Author: James Cherry <cherry@parallaxsw.com> Date: Tue Jan 10 13:10:42 2023 -0700 use RVO Signed-off-by: James Cherry <cherry@parallaxsw.com> commit c3247d8937d483102e3e1f2b69d7ac1d331ba9d4 Author: James Cherry <cherry@parallaxsw.com> Date: Mon Jan 9 22:41:20 2023 -0700 swig template seq's Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 5431c06feb256adb46858819fcf5d513cfa6b5ec Author: James Cherry <cherry@parallaxsw.com> Date: Mon Jan 9 20:50:24 2023 -0700 swig set in template Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 592ad641bf01d3beb862314a0d8986f66e258642 Author: James Cherry <cherry@parallaxsw.com> Date: Mon Jan 9 17:27:25 2023 -0700 network return containers Signed-off-by: James Cherry <cherry@parallaxsw.com> commit c95f8b77e0d6bd5ffa5ba8102413c70883c756e1 Author: James Cherry <cherry@parallaxsw.com> Date: Mon Jan 9 12:15:37 2023 -0700 PinSeq const Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 702e7f9ba2f901066a38f32e67b35602b6c7bbdf Author: James Cherry <cherry@parallaxsw.com> Date: Mon Jan 9 12:02:29 2023 -0700 InstanceSeq const Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 44fc25ba4a15e4ae570d74af27c9435872a126e0 Author: James Cherry <cherry@parallaxsw.com> Date: Mon Jan 9 12:01:45 2023 -0700 NetSeq const Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 03b2725c81f5d52c33c875b55056c11d482144f1 Author: James Cherry <cherry@parallaxsw.com> Date: Mon Jan 9 11:33:18 2023 -0700 rm PortPair Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 3fb82a7344dc053171c9883a113764ba691ab827 Author: James Cherry <cherry@parallaxsw.com> Date: Mon Jan 9 11:20:53 2023 -0700 PinSet id Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 3dd31f027e15d40d62a11d0a88ef2a115f01fb73 Author: James Cherry <cherry@parallaxsw.com> Date: Sun Jan 8 15:03:33 2023 -0700 InstanceSet id Signed-off-by: James Cherry <cherry@parallaxsw.com> commit a91dea5cc0af3bede36b3faed13adb05239ff907 Author: James Cherry <cherry@parallaxsw.com> Date: Sun Jan 8 11:40:15 2023 -0700 NetSet id Signed-off-by: James Cherry <cherry@parallaxsw.com> commit b91e4b6410134eccae7969ddcfb0b27933b2e746 Author: James Cherry <cherry@parallaxsw.com> Date: Sun Jan 8 10:44:47 2023 -0700 CellSet, PortSet id Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 6f891f77fae5a6b19c1454a1a4b4e3dfae0b5c50 Author: James Cherry <cherry@parallaxsw.com> Date: Sun Jan 8 10:29:25 2023 -0700 network object sets Signed-off-by: James Cherry <cherry@parallaxsw.com> commit eb8c627a57ecc6e7c5846a01d62b090ff91c08bf Author: James Cherry <cherry@parallaxsw.com> Date: Sun Jan 8 10:09:00 2023 -0700 PinSet1 Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 8e864ecbdf87000fbb3c3097c39f06173c941e35 Author: James Cherry <cherry@parallaxsw.com> Date: Sat Jan 7 17:13:03 2023 -0700 concrete network object id Signed-off-by: James Cherry <cherry@parallaxsw.com> Signed-off-by: James Cherry <cherry@parallaxsw.com>
2023-01-19 19:23:45 +01:00
remove_cells_(network),
2019-06-17 06:08:00 +02:00
stream_(stream),
network_(network),
unconnected_net_index_(1)
2019-06-17 06:08:00 +02:00
{
if (remove_cells) {
for(Cell *lib_cell : *remove_cells)
2020-10-20 21:16:17 +02:00
remove_cells_.insert(lib_cell);
}
2019-06-17 06:08:00 +02:00
}
void
VerilogWriter::writeModules()
{
// Write the top level modeule first.
writeModule(network_->topInstance());
InstanceSeq hier_childrenn = findHierChildren();
for (const Instance *child : hier_childrenn)
writeModule(child);
}
InstanceSeq
VerilogWriter::findHierChildren()
{
InstanceSeq children;
CellSet cells(network_);
findHierChildren(network_->topInstance(), children, cells);
if (sort_)
sort(children, [this](const Instance *inst1,
const Instance *inst2) {
const char *cell_name1 = network_->cellName(inst1);
const char *cell_name2 = network_->cellName(inst2);
return stringLess(cell_name1, cell_name2);
});
return children;
}
void
VerilogWriter::findHierChildren(const Instance *inst,
InstanceSeq &children,
CellSet &cells)
{
InstanceChildIterator *child_iter = network_->childIterator(inst);
while (child_iter->hasNext()) {
const Instance *child = child_iter->next();
const Cell *cell = network_->cell(child);
if (network_->isHierarchical(child)
&& !cells.hasKey(cell)) {
children.push_back(child);
cells.insert(cell);
findHierChildren(child, children, cells);
}
}
delete child_iter;
}
void
VerilogWriter::writeModule(const Instance *inst)
2019-06-17 06:08:00 +02:00
{
Cell *cell = network_->cell(inst);
string cell_vname = cellVerilogName(network_->name(cell));
fprintf(stream_, "module %s (", cell_vname.c_str());
2019-06-17 06:08:00 +02:00
writePorts(cell);
writePortDcls(cell);
fprintf(stream_, "\n");
2021-01-19 20:40:49 +01:00
writeWireDcls(inst);
fprintf(stream_, "\n");
2019-06-17 06:08:00 +02:00
writeChildren(inst);
writeAssigns(inst);
2019-06-17 06:08:00 +02:00
fprintf(stream_, "endmodule\n");
}
void
VerilogWriter::writePorts(const Cell *cell)
2019-06-17 06:08:00 +02:00
{
bool first = true;
CellPortIterator *port_iter = network_->portIterator(cell);
while (port_iter->hasNext()) {
Port *port = port_iter->next();
if (include_pwr_gnd_
|| !network_->direction(port)->isPowerGround()) {
if (!first)
fprintf(stream_, ",\n ");
verilog c++ parser commit 6fac3fee87a3309132b5bdbb731292ecd6410a86 Author: James Cherry <cherry@parallaxsw.com> Date: Tue Jan 21 18:24:18 2025 -0700 Sta use VerilogReader class Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 05d4bce4bcfcfaa07392b237a596a82315b895b3 Author: James Cherry <cherry@parallaxsw.com> Date: Tue Jan 21 15:14:29 2025 -0700 vparse Signed-off-by: James Cherry <cherry@parallaxsw.com> commit e977e89b62191688db5c815131fc389d9ce401c5 Author: James Cherry <cherry@parallaxsw.com> Date: Tue Jan 21 11:30:46 2025 -0700 write_verilog missing port ddcl Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 1742d5d92533559235ea4c42d9ea4bf2d47fb943 Author: James Cherry <cherry@parallaxsw.com> Date: Tue Jan 21 11:23:48 2025 -0700 verilog escape constexpr Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 226a23092312a37503100d49ab74d4fb1e5856ef Author: James Cherry <cherry@parallaxsw.com> Date: Mon Jan 20 09:34:32 2025 -0700 comment Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 63ca4ac5855710427e1ddfc5c2cba8998452d1f0 Author: James Cherry <cherry@parallaxsw.com> Date: Sun Jan 19 19:45:48 2025 -0700 leaks Signed-off-by: James Cherry <cherry@parallaxsw.com> commit c1d38aa0cc983204b1bb3f49944709e74c831be7 Author: James Cherry <cherry@parallaxsw.com> Date: Sun Jan 19 13:26:07 2025 -0700 verilog std::string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 22607b41b9eb9fc71d53214893150afb757a8a56 Author: James Cherry <cherry@parallaxsw.com> Date: Sun Jan 19 11:36:23 2025 -0700 verilog std::string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit dba2bc939fc58d465229cc2d474705151cd50d05 Author: James Cherry <cherry@parallaxsw.com> Date: Sun Jan 19 10:01:14 2025 -0700 verilog std::string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 7d449041a2b75b874038af377d46130b45195a00 Author: James Cherry <cherry@parallaxsw.com> Date: Sun Jan 19 09:18:55 2025 -0700 verilog std::string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit d02495222838f037f25d131ce1b270a6121cf16f Author: James Cherry <cherry@parallaxsw.com> Date: Sun Jan 19 08:53:47 2025 -0700 verilog std::string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 10c5c1040f26c8ebe295d245a641fc913e0ec9f5 Author: James Cherry <cherry@parallaxsw.com> Date: Sat Jan 18 21:50:12 2025 -0700 verlog constant use std::string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 21943c1b63fd36d12de1e5986905e14fe73ce7be Author: James Cherry <cherry@parallaxsw.com> Date: Sat Jan 18 17:41:43 2025 -0700 verilog std::string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit c0232b71ea5137b37d055d83f3da194341aed7a0 Author: James Cherry <cherry@parallaxsw.com> Date: Sat Jan 18 17:12:47 2025 -0700 verilog std::string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit c68fd0329ee35b4877763bcdc82e8fe03a3b16de Author: James Cherry <cherry@parallaxsw.com> Date: Sat Jan 18 16:54:10 2025 -0700 verilog std::string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 3e2dca2140db42acce390ec1a18f29ee4de3c631 Author: James Cherry <cherry@parallaxsw.com> Date: Sat Jan 18 16:07:19 2025 -0700 vparse const Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 210196f9e5a63dfdd5ed45a418388b7ec74ade07 Author: James Cherry <cherry@parallaxsw.com> Date: Sat Jan 18 12:31:13 2025 -0700 verilog parse centos7 Signed-off-by: James Cherry <cherry@parallaxsw.com> commit b8e1882121ac1763e767d299fd929bdfb07c5ffb Author: James Cherry <cherry@parallaxsw.com> Date: Sat Jan 18 10:21:48 2025 -0700 verilog names string* Signed-off-by: James Cherry <cherry@parallaxsw.com> commit c455723c5801d2d7386e7d1d53a0f9fb501c0c03 Author: James Cherry <cherry@parallaxsw.com> Date: Sat Jan 18 09:51:47 2025 -0700 verilog reader names Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 47307b1d8a61abab91195969be8708a7646bbfe3 Author: James Cherry <cherry@parallaxsw.com> Date: Sat Jan 18 09:21:30 2025 -0700 valgrind Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 0de49ba76cb0d1e06f93868676b73b4cd2ee609e Author: James Cherry <cherry@parallaxsw.com> Date: Wed Jan 15 16:50:56 2025 -0700 suppress yynerrs_ warning Signed-off-by: James Cherry <cherry@parallaxsw.com> commit dbe2ba18d99d850ba5ebb1c75a4165bfff2df96d Author: James Cherry <cherry@parallaxsw.com> Date: Wed Jan 15 16:37:14 2025 -0700 cmake bison target names Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 388be6c2aa69b839a53be78bafab420216554944 Author: James Cherry <cherry@parallaxsw.com> Date: Tue Jan 14 08:57:02 2025 -0700 network link func rm repor, network args Signed-off-by: James Cherry <cherry@parallaxsw.com> commit f50d5b23aff126e7d396a555f06eae5597ec1354 Author: James Cherry <cherry@parallaxsw.com> Date: Mon Jan 13 19:48:44 2025 -0700 verilog reader use gzstream Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 8a0c8ce09087cceef36824de3656b5c7cea9f0f0 Author: James Cherry <cherry@parallaxsw.com> Date: Mon Jan 13 18:02:40 2025 -0700 VerilogScanner::error Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 413093e46e523d90e45a4c56ecaa25e4457998aa Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 10 18:27:53 2025 -0700 rm verilog_network Signed-off-by: James Cherry <cherry@parallaxsw.com> commit aef8358a8f44e556a3814e9ddd205e179bf2b3d7 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 10 18:01:09 2025 -0700 rm verilog_reader except link Signed-off-by: James Cherry <cherry@parallaxsw.com> commit cfc34aa41a5fe1942867c73061ae483e36c74f54 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 10 17:04:33 2025 -0700 verilog reader rm line_ Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 62dd98b7cb800acc61192b0f326d4a3278e1a72d Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 10 16:26:09 2025 -0700 verilog parse use location Signed-off-by: James Cherry <cherry@parallaxsw.com> commit ad6c26984526312134d03c0f39d3fcd63617efa4 Author: James Cherry <cherry@parallaxsw.com> Date: Sat Jan 4 11:04:16 2025 -0800 verilog parse error Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 1bff12c8c49c847de015dd32042cccf7952a2060 Author: James Cherry <cherry@parallaxsw.com> Date: Sat Jan 4 08:00:40 2025 -0800 attribute -> Attr Signed-off-by: James Cherry <cherry@parallaxsw.com> commit e8372df18a5374b2c9ca8f094a244d06c59a9f4e Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 3 17:57:21 2025 -0800 verilog rm string_buf Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 785818f10108f689b4ea978a13d0131546f1a4e5 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 3 16:10:10 2025 -0800 verilog parse use std::string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 95265fc4ad30325f115eb69d10c77afe3f265701 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 3 15:44:31 2025 -0800 verilog parser const char * -> string* Signed-off-by: James Cherry <cherry@parallaxsw.com> commit b80db6d98057363f90a9497b10073f84c2e7cc3d Author: James Cherry <cherry@parallaxsw.com> Date: Thu Jan 2 08:31:06 2025 -0800 bison warning Signed-off-by: James Cherry <cherry@parallaxsw.com> commit df3b61bf7d590c241ee513eacfb1c7dff2a450d8 Author: James Cherry <cherry@parallaxsw.com> Date: Wed Jan 1 17:04:17 2025 -0800 verilog parse works Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 8b5a8fbb7042ceb58fbb24b836664a1da6028c45 Author: James Cherry <cherry@parallaxsw.com> Date: Wed Jan 1 16:15:44 2025 -0800 rm VerilogParser.hh Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 07bc0cc9c160e9dbe705f4c359973cc35342e05e Author: James Cherry <cherry@parallaxsw.com> Date: Wed Jan 1 15:59:57 2025 -0800 verlog parse compiles Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 8d32f5f3d5e6a252cdb2020c62742f01b1c66f63 Author: James Cherry <cherry@parallaxsw.com> Date: Mon Dec 30 09:14:13 2024 -0800 verilog parser Signed-off-by: James Cherry <cherry@parallaxsw.com> Signed-off-by: James Cherry <cherry@parallaxsw.com>
2025-01-22 02:35:21 +01:00
string verilog_name = portVerilogName(network_->name(port));
fprintf(stream_, "%s", verilog_name.c_str());
first = false;
}
2019-06-17 06:08:00 +02:00
}
delete port_iter;
fprintf(stream_, ");\n");
}
void
VerilogWriter::writePortDcls(const Cell *cell)
2019-06-17 06:08:00 +02:00
{
CellPortIterator *port_iter = network_->portIterator(cell);
while (port_iter->hasNext()) {
Port *port = port_iter->next();
PortDirection *dir = network_->direction(port);
if (include_pwr_gnd_
|| !network_->direction(port)->isPowerGround()) {
verilog c++ parser commit 6fac3fee87a3309132b5bdbb731292ecd6410a86 Author: James Cherry <cherry@parallaxsw.com> Date: Tue Jan 21 18:24:18 2025 -0700 Sta use VerilogReader class Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 05d4bce4bcfcfaa07392b237a596a82315b895b3 Author: James Cherry <cherry@parallaxsw.com> Date: Tue Jan 21 15:14:29 2025 -0700 vparse Signed-off-by: James Cherry <cherry@parallaxsw.com> commit e977e89b62191688db5c815131fc389d9ce401c5 Author: James Cherry <cherry@parallaxsw.com> Date: Tue Jan 21 11:30:46 2025 -0700 write_verilog missing port ddcl Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 1742d5d92533559235ea4c42d9ea4bf2d47fb943 Author: James Cherry <cherry@parallaxsw.com> Date: Tue Jan 21 11:23:48 2025 -0700 verilog escape constexpr Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 226a23092312a37503100d49ab74d4fb1e5856ef Author: James Cherry <cherry@parallaxsw.com> Date: Mon Jan 20 09:34:32 2025 -0700 comment Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 63ca4ac5855710427e1ddfc5c2cba8998452d1f0 Author: James Cherry <cherry@parallaxsw.com> Date: Sun Jan 19 19:45:48 2025 -0700 leaks Signed-off-by: James Cherry <cherry@parallaxsw.com> commit c1d38aa0cc983204b1bb3f49944709e74c831be7 Author: James Cherry <cherry@parallaxsw.com> Date: Sun Jan 19 13:26:07 2025 -0700 verilog std::string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 22607b41b9eb9fc71d53214893150afb757a8a56 Author: James Cherry <cherry@parallaxsw.com> Date: Sun Jan 19 11:36:23 2025 -0700 verilog std::string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit dba2bc939fc58d465229cc2d474705151cd50d05 Author: James Cherry <cherry@parallaxsw.com> Date: Sun Jan 19 10:01:14 2025 -0700 verilog std::string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 7d449041a2b75b874038af377d46130b45195a00 Author: James Cherry <cherry@parallaxsw.com> Date: Sun Jan 19 09:18:55 2025 -0700 verilog std::string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit d02495222838f037f25d131ce1b270a6121cf16f Author: James Cherry <cherry@parallaxsw.com> Date: Sun Jan 19 08:53:47 2025 -0700 verilog std::string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 10c5c1040f26c8ebe295d245a641fc913e0ec9f5 Author: James Cherry <cherry@parallaxsw.com> Date: Sat Jan 18 21:50:12 2025 -0700 verlog constant use std::string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 21943c1b63fd36d12de1e5986905e14fe73ce7be Author: James Cherry <cherry@parallaxsw.com> Date: Sat Jan 18 17:41:43 2025 -0700 verilog std::string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit c0232b71ea5137b37d055d83f3da194341aed7a0 Author: James Cherry <cherry@parallaxsw.com> Date: Sat Jan 18 17:12:47 2025 -0700 verilog std::string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit c68fd0329ee35b4877763bcdc82e8fe03a3b16de Author: James Cherry <cherry@parallaxsw.com> Date: Sat Jan 18 16:54:10 2025 -0700 verilog std::string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 3e2dca2140db42acce390ec1a18f29ee4de3c631 Author: James Cherry <cherry@parallaxsw.com> Date: Sat Jan 18 16:07:19 2025 -0700 vparse const Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 210196f9e5a63dfdd5ed45a418388b7ec74ade07 Author: James Cherry <cherry@parallaxsw.com> Date: Sat Jan 18 12:31:13 2025 -0700 verilog parse centos7 Signed-off-by: James Cherry <cherry@parallaxsw.com> commit b8e1882121ac1763e767d299fd929bdfb07c5ffb Author: James Cherry <cherry@parallaxsw.com> Date: Sat Jan 18 10:21:48 2025 -0700 verilog names string* Signed-off-by: James Cherry <cherry@parallaxsw.com> commit c455723c5801d2d7386e7d1d53a0f9fb501c0c03 Author: James Cherry <cherry@parallaxsw.com> Date: Sat Jan 18 09:51:47 2025 -0700 verilog reader names Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 47307b1d8a61abab91195969be8708a7646bbfe3 Author: James Cherry <cherry@parallaxsw.com> Date: Sat Jan 18 09:21:30 2025 -0700 valgrind Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 0de49ba76cb0d1e06f93868676b73b4cd2ee609e Author: James Cherry <cherry@parallaxsw.com> Date: Wed Jan 15 16:50:56 2025 -0700 suppress yynerrs_ warning Signed-off-by: James Cherry <cherry@parallaxsw.com> commit dbe2ba18d99d850ba5ebb1c75a4165bfff2df96d Author: James Cherry <cherry@parallaxsw.com> Date: Wed Jan 15 16:37:14 2025 -0700 cmake bison target names Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 388be6c2aa69b839a53be78bafab420216554944 Author: James Cherry <cherry@parallaxsw.com> Date: Tue Jan 14 08:57:02 2025 -0700 network link func rm repor, network args Signed-off-by: James Cherry <cherry@parallaxsw.com> commit f50d5b23aff126e7d396a555f06eae5597ec1354 Author: James Cherry <cherry@parallaxsw.com> Date: Mon Jan 13 19:48:44 2025 -0700 verilog reader use gzstream Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 8a0c8ce09087cceef36824de3656b5c7cea9f0f0 Author: James Cherry <cherry@parallaxsw.com> Date: Mon Jan 13 18:02:40 2025 -0700 VerilogScanner::error Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 413093e46e523d90e45a4c56ecaa25e4457998aa Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 10 18:27:53 2025 -0700 rm verilog_network Signed-off-by: James Cherry <cherry@parallaxsw.com> commit aef8358a8f44e556a3814e9ddd205e179bf2b3d7 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 10 18:01:09 2025 -0700 rm verilog_reader except link Signed-off-by: James Cherry <cherry@parallaxsw.com> commit cfc34aa41a5fe1942867c73061ae483e36c74f54 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 10 17:04:33 2025 -0700 verilog reader rm line_ Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 62dd98b7cb800acc61192b0f326d4a3278e1a72d Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 10 16:26:09 2025 -0700 verilog parse use location Signed-off-by: James Cherry <cherry@parallaxsw.com> commit ad6c26984526312134d03c0f39d3fcd63617efa4 Author: James Cherry <cherry@parallaxsw.com> Date: Sat Jan 4 11:04:16 2025 -0800 verilog parse error Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 1bff12c8c49c847de015dd32042cccf7952a2060 Author: James Cherry <cherry@parallaxsw.com> Date: Sat Jan 4 08:00:40 2025 -0800 attribute -> Attr Signed-off-by: James Cherry <cherry@parallaxsw.com> commit e8372df18a5374b2c9ca8f094a244d06c59a9f4e Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 3 17:57:21 2025 -0800 verilog rm string_buf Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 785818f10108f689b4ea978a13d0131546f1a4e5 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 3 16:10:10 2025 -0800 verilog parse use std::string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 95265fc4ad30325f115eb69d10c77afe3f265701 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 3 15:44:31 2025 -0800 verilog parser const char * -> string* Signed-off-by: James Cherry <cherry@parallaxsw.com> commit b80db6d98057363f90a9497b10073f84c2e7cc3d Author: James Cherry <cherry@parallaxsw.com> Date: Thu Jan 2 08:31:06 2025 -0800 bison warning Signed-off-by: James Cherry <cherry@parallaxsw.com> commit df3b61bf7d590c241ee513eacfb1c7dff2a450d8 Author: James Cherry <cherry@parallaxsw.com> Date: Wed Jan 1 17:04:17 2025 -0800 verilog parse works Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 8b5a8fbb7042ceb58fbb24b836664a1da6028c45 Author: James Cherry <cherry@parallaxsw.com> Date: Wed Jan 1 16:15:44 2025 -0800 rm VerilogParser.hh Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 07bc0cc9c160e9dbe705f4c359973cc35342e05e Author: James Cherry <cherry@parallaxsw.com> Date: Wed Jan 1 15:59:57 2025 -0800 verlog parse compiles Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 8d32f5f3d5e6a252cdb2020c62742f01b1c66f63 Author: James Cherry <cherry@parallaxsw.com> Date: Mon Dec 30 09:14:13 2024 -0800 verilog parser Signed-off-by: James Cherry <cherry@parallaxsw.com> Signed-off-by: James Cherry <cherry@parallaxsw.com>
2025-01-22 02:35:21 +01:00
string port_vname = portVerilogName(network_->name(port));
const char *vtype = verilogPortDir(dir);
if (vtype) {
fprintf(stream_, " %s", vtype);
if (network_->isBus(port))
fprintf(stream_, " [%d:%d]",
network_->fromIndex(port),
network_->toIndex(port));
rm tmp string uses commit 2d0a4f8e9a8b46faa2ba91e1be636c3c3ad95a7f Author: James Cherry <cherry@parallaxsw.com> Date: Sat Mar 25 21:25:37 2023 -0700 leaks Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 5514910a91707d615bac0bbed3a29f579eca8de2 Author: James Cherry <cherry@parallaxsw.com> Date: Sat Mar 25 18:21:54 2023 -0700 foo Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 076a51d5816444e883232933c2ded7309291d0bc Author: James Cherry <cherry@parallaxsw.com> Date: Sat Mar 25 16:38:42 2023 -0700 parse bus string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 2b80e563cbbb6563a6b716431f391bbb6639f816 Author: James Cherry <cherry@parallaxsw.com> Date: Sat Mar 25 15:57:05 2023 -0700 rm tmp string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 9e4f2308658232d0b1ee9efcd948bb19ae5dd30f Author: James Cherry <cherry@parallaxsw.com> Date: Sat Mar 25 14:37:35 2023 -0700 rm tmp string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit ebad3afd49b08e7194452dd082c3c7c05767f875 Author: James Cherry <cherry@parallaxsw.com> Date: Sat Mar 25 10:59:11 2023 -0700 rm tmp string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 69647913932312a04ca06e7a04cca17ed50d4daf Author: James Cherry <cherry@parallaxsw.com> Date: Fri Mar 24 21:02:20 2023 -0700 rm tmp string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 55e67996a7b0651dbb5ee06cb89fe0410648c3c1 Author: James Cherry <cherry@parallaxsw.com> Date: Sat Mar 25 10:42:43 2023 -0700 rm tmp string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 73cee43925c0d32940989c616440b4da18640121 Author: James Cherry <cherry@parallaxsw.com> Date: Sat Mar 25 09:55:17 2023 -0700 rm tmp string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit eba6d1413b8d87a64a90141e5263a56eede1df51 Author: James Cherry <cherry@parallaxsw.com> Date: Sat Mar 25 09:40:16 2023 -0700 rm tmp string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 95d6ed78144512a37fd7c1d3d8a62fc4c8965818 Author: James Cherry <cherry@parallaxsw.com> Date: Sat Mar 25 08:18:46 2023 -0700 rm tmp string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit faf82464d7be7fd6c958a21d401fa48ece4ac341 Author: James Cherry <cherry@parallaxsw.com> Date: Sat Mar 25 07:49:11 2023 -0700 rm tmp string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit cfc9064496cb6f46ec562b104bc7fff2fbc1b32e Author: James Cherry <cherry@parallaxsw.com> Date: Sat Mar 25 07:37:12 2023 -0700 rm tmp string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 057933a6ac356a7541883aa64b5109c7a0e8b8d1 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Mar 24 21:02:20 2023 -0700 rm tmp string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit fdeb6436a72413356a627dd1de1d8cec7fca4c4a Author: James Cherry <cherry@parallaxsw.com> Date: Fri Mar 24 19:53:44 2023 -0700 rm TmpString uses Signed-off-by: James Cherry <cherry@parallaxsw.com> Signed-off-by: James Cherry <cherry@parallaxsw.com>
2023-03-26 15:34:36 +02:00
fprintf(stream_, " %s;\n", port_vname.c_str());
if (dir->isTristate()) {
fprintf(stream_, " tri");
if (network_->isBus(port))
fprintf(stream_, " [%d:%d]",
network_->fromIndex(port),
network_->toIndex(port));
rm tmp string uses commit 2d0a4f8e9a8b46faa2ba91e1be636c3c3ad95a7f Author: James Cherry <cherry@parallaxsw.com> Date: Sat Mar 25 21:25:37 2023 -0700 leaks Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 5514910a91707d615bac0bbed3a29f579eca8de2 Author: James Cherry <cherry@parallaxsw.com> Date: Sat Mar 25 18:21:54 2023 -0700 foo Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 076a51d5816444e883232933c2ded7309291d0bc Author: James Cherry <cherry@parallaxsw.com> Date: Sat Mar 25 16:38:42 2023 -0700 parse bus string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 2b80e563cbbb6563a6b716431f391bbb6639f816 Author: James Cherry <cherry@parallaxsw.com> Date: Sat Mar 25 15:57:05 2023 -0700 rm tmp string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 9e4f2308658232d0b1ee9efcd948bb19ae5dd30f Author: James Cherry <cherry@parallaxsw.com> Date: Sat Mar 25 14:37:35 2023 -0700 rm tmp string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit ebad3afd49b08e7194452dd082c3c7c05767f875 Author: James Cherry <cherry@parallaxsw.com> Date: Sat Mar 25 10:59:11 2023 -0700 rm tmp string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 69647913932312a04ca06e7a04cca17ed50d4daf Author: James Cherry <cherry@parallaxsw.com> Date: Fri Mar 24 21:02:20 2023 -0700 rm tmp string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 55e67996a7b0651dbb5ee06cb89fe0410648c3c1 Author: James Cherry <cherry@parallaxsw.com> Date: Sat Mar 25 10:42:43 2023 -0700 rm tmp string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 73cee43925c0d32940989c616440b4da18640121 Author: James Cherry <cherry@parallaxsw.com> Date: Sat Mar 25 09:55:17 2023 -0700 rm tmp string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit eba6d1413b8d87a64a90141e5263a56eede1df51 Author: James Cherry <cherry@parallaxsw.com> Date: Sat Mar 25 09:40:16 2023 -0700 rm tmp string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 95d6ed78144512a37fd7c1d3d8a62fc4c8965818 Author: James Cherry <cherry@parallaxsw.com> Date: Sat Mar 25 08:18:46 2023 -0700 rm tmp string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit faf82464d7be7fd6c958a21d401fa48ece4ac341 Author: James Cherry <cherry@parallaxsw.com> Date: Sat Mar 25 07:49:11 2023 -0700 rm tmp string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit cfc9064496cb6f46ec562b104bc7fff2fbc1b32e Author: James Cherry <cherry@parallaxsw.com> Date: Sat Mar 25 07:37:12 2023 -0700 rm tmp string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 057933a6ac356a7541883aa64b5109c7a0e8b8d1 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Mar 24 21:02:20 2023 -0700 rm tmp string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit fdeb6436a72413356a627dd1de1d8cec7fca4c4a Author: James Cherry <cherry@parallaxsw.com> Date: Fri Mar 24 19:53:44 2023 -0700 rm TmpString uses Signed-off-by: James Cherry <cherry@parallaxsw.com> Signed-off-by: James Cherry <cherry@parallaxsw.com>
2023-03-26 15:34:36 +02:00
fprintf(stream_, " %s;\n", port_vname.c_str());
}
2019-06-17 06:08:00 +02:00
}
}
}
delete port_iter;
}
const char *
VerilogWriter::verilogPortDir(PortDirection *dir)
{
if (dir == PortDirection::input())
return "input";
else if (dir == PortDirection::output())
return "output";
else if (dir == PortDirection::tristate())
return "output";
2020-07-04 01:56:15 +02:00
else if (dir == PortDirection::bidirect())
return "inout";
else if (dir == PortDirection::power())
return "inout";
2020-07-04 01:56:15 +02:00
else if (dir == PortDirection::ground())
return "inout";
verilog c++ parser commit 6fac3fee87a3309132b5bdbb731292ecd6410a86 Author: James Cherry <cherry@parallaxsw.com> Date: Tue Jan 21 18:24:18 2025 -0700 Sta use VerilogReader class Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 05d4bce4bcfcfaa07392b237a596a82315b895b3 Author: James Cherry <cherry@parallaxsw.com> Date: Tue Jan 21 15:14:29 2025 -0700 vparse Signed-off-by: James Cherry <cherry@parallaxsw.com> commit e977e89b62191688db5c815131fc389d9ce401c5 Author: James Cherry <cherry@parallaxsw.com> Date: Tue Jan 21 11:30:46 2025 -0700 write_verilog missing port ddcl Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 1742d5d92533559235ea4c42d9ea4bf2d47fb943 Author: James Cherry <cherry@parallaxsw.com> Date: Tue Jan 21 11:23:48 2025 -0700 verilog escape constexpr Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 226a23092312a37503100d49ab74d4fb1e5856ef Author: James Cherry <cherry@parallaxsw.com> Date: Mon Jan 20 09:34:32 2025 -0700 comment Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 63ca4ac5855710427e1ddfc5c2cba8998452d1f0 Author: James Cherry <cherry@parallaxsw.com> Date: Sun Jan 19 19:45:48 2025 -0700 leaks Signed-off-by: James Cherry <cherry@parallaxsw.com> commit c1d38aa0cc983204b1bb3f49944709e74c831be7 Author: James Cherry <cherry@parallaxsw.com> Date: Sun Jan 19 13:26:07 2025 -0700 verilog std::string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 22607b41b9eb9fc71d53214893150afb757a8a56 Author: James Cherry <cherry@parallaxsw.com> Date: Sun Jan 19 11:36:23 2025 -0700 verilog std::string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit dba2bc939fc58d465229cc2d474705151cd50d05 Author: James Cherry <cherry@parallaxsw.com> Date: Sun Jan 19 10:01:14 2025 -0700 verilog std::string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 7d449041a2b75b874038af377d46130b45195a00 Author: James Cherry <cherry@parallaxsw.com> Date: Sun Jan 19 09:18:55 2025 -0700 verilog std::string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit d02495222838f037f25d131ce1b270a6121cf16f Author: James Cherry <cherry@parallaxsw.com> Date: Sun Jan 19 08:53:47 2025 -0700 verilog std::string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 10c5c1040f26c8ebe295d245a641fc913e0ec9f5 Author: James Cherry <cherry@parallaxsw.com> Date: Sat Jan 18 21:50:12 2025 -0700 verlog constant use std::string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 21943c1b63fd36d12de1e5986905e14fe73ce7be Author: James Cherry <cherry@parallaxsw.com> Date: Sat Jan 18 17:41:43 2025 -0700 verilog std::string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit c0232b71ea5137b37d055d83f3da194341aed7a0 Author: James Cherry <cherry@parallaxsw.com> Date: Sat Jan 18 17:12:47 2025 -0700 verilog std::string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit c68fd0329ee35b4877763bcdc82e8fe03a3b16de Author: James Cherry <cherry@parallaxsw.com> Date: Sat Jan 18 16:54:10 2025 -0700 verilog std::string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 3e2dca2140db42acce390ec1a18f29ee4de3c631 Author: James Cherry <cherry@parallaxsw.com> Date: Sat Jan 18 16:07:19 2025 -0700 vparse const Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 210196f9e5a63dfdd5ed45a418388b7ec74ade07 Author: James Cherry <cherry@parallaxsw.com> Date: Sat Jan 18 12:31:13 2025 -0700 verilog parse centos7 Signed-off-by: James Cherry <cherry@parallaxsw.com> commit b8e1882121ac1763e767d299fd929bdfb07c5ffb Author: James Cherry <cherry@parallaxsw.com> Date: Sat Jan 18 10:21:48 2025 -0700 verilog names string* Signed-off-by: James Cherry <cherry@parallaxsw.com> commit c455723c5801d2d7386e7d1d53a0f9fb501c0c03 Author: James Cherry <cherry@parallaxsw.com> Date: Sat Jan 18 09:51:47 2025 -0700 verilog reader names Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 47307b1d8a61abab91195969be8708a7646bbfe3 Author: James Cherry <cherry@parallaxsw.com> Date: Sat Jan 18 09:21:30 2025 -0700 valgrind Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 0de49ba76cb0d1e06f93868676b73b4cd2ee609e Author: James Cherry <cherry@parallaxsw.com> Date: Wed Jan 15 16:50:56 2025 -0700 suppress yynerrs_ warning Signed-off-by: James Cherry <cherry@parallaxsw.com> commit dbe2ba18d99d850ba5ebb1c75a4165bfff2df96d Author: James Cherry <cherry@parallaxsw.com> Date: Wed Jan 15 16:37:14 2025 -0700 cmake bison target names Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 388be6c2aa69b839a53be78bafab420216554944 Author: James Cherry <cherry@parallaxsw.com> Date: Tue Jan 14 08:57:02 2025 -0700 network link func rm repor, network args Signed-off-by: James Cherry <cherry@parallaxsw.com> commit f50d5b23aff126e7d396a555f06eae5597ec1354 Author: James Cherry <cherry@parallaxsw.com> Date: Mon Jan 13 19:48:44 2025 -0700 verilog reader use gzstream Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 8a0c8ce09087cceef36824de3656b5c7cea9f0f0 Author: James Cherry <cherry@parallaxsw.com> Date: Mon Jan 13 18:02:40 2025 -0700 VerilogScanner::error Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 413093e46e523d90e45a4c56ecaa25e4457998aa Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 10 18:27:53 2025 -0700 rm verilog_network Signed-off-by: James Cherry <cherry@parallaxsw.com> commit aef8358a8f44e556a3814e9ddd205e179bf2b3d7 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 10 18:01:09 2025 -0700 rm verilog_reader except link Signed-off-by: James Cherry <cherry@parallaxsw.com> commit cfc34aa41a5fe1942867c73061ae483e36c74f54 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 10 17:04:33 2025 -0700 verilog reader rm line_ Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 62dd98b7cb800acc61192b0f326d4a3278e1a72d Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 10 16:26:09 2025 -0700 verilog parse use location Signed-off-by: James Cherry <cherry@parallaxsw.com> commit ad6c26984526312134d03c0f39d3fcd63617efa4 Author: James Cherry <cherry@parallaxsw.com> Date: Sat Jan 4 11:04:16 2025 -0800 verilog parse error Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 1bff12c8c49c847de015dd32042cccf7952a2060 Author: James Cherry <cherry@parallaxsw.com> Date: Sat Jan 4 08:00:40 2025 -0800 attribute -> Attr Signed-off-by: James Cherry <cherry@parallaxsw.com> commit e8372df18a5374b2c9ca8f094a244d06c59a9f4e Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 3 17:57:21 2025 -0800 verilog rm string_buf Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 785818f10108f689b4ea978a13d0131546f1a4e5 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 3 16:10:10 2025 -0800 verilog parse use std::string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 95265fc4ad30325f115eb69d10c77afe3f265701 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 3 15:44:31 2025 -0800 verilog parser const char * -> string* Signed-off-by: James Cherry <cherry@parallaxsw.com> commit b80db6d98057363f90a9497b10073f84c2e7cc3d Author: James Cherry <cherry@parallaxsw.com> Date: Thu Jan 2 08:31:06 2025 -0800 bison warning Signed-off-by: James Cherry <cherry@parallaxsw.com> commit df3b61bf7d590c241ee513eacfb1c7dff2a450d8 Author: James Cherry <cherry@parallaxsw.com> Date: Wed Jan 1 17:04:17 2025 -0800 verilog parse works Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 8b5a8fbb7042ceb58fbb24b836664a1da6028c45 Author: James Cherry <cherry@parallaxsw.com> Date: Wed Jan 1 16:15:44 2025 -0800 rm VerilogParser.hh Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 07bc0cc9c160e9dbe705f4c359973cc35342e05e Author: James Cherry <cherry@parallaxsw.com> Date: Wed Jan 1 15:59:57 2025 -0800 verlog parse compiles Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 8d32f5f3d5e6a252cdb2020c62742f01b1c66f63 Author: James Cherry <cherry@parallaxsw.com> Date: Mon Dec 30 09:14:13 2024 -0800 verilog parser Signed-off-by: James Cherry <cherry@parallaxsw.com> Signed-off-by: James Cherry <cherry@parallaxsw.com>
2025-01-22 02:35:21 +01:00
else if (dir == PortDirection::internal()
|| dir == PortDirection::unknown())
return "inout";
2020-07-04 01:56:15 +02:00
else {
2020-12-14 02:21:35 +01:00
criticalError(268, "unknown port direction");
2020-07-04 01:56:15 +02:00
return nullptr;
}
2019-06-17 06:08:00 +02:00
}
2021-01-19 20:40:49 +01:00
typedef std::pair<int, int> BusIndexRange;
void
VerilogWriter::writeWireDcls(const Instance *inst)
2021-01-19 20:40:49 +01:00
{
Cell *cell = network_->cell(inst);
char escape = network_->pathEscape();
Map<string, BusIndexRange, std::less<string>> bus_ranges;
2021-01-19 20:40:49 +01:00
NetIterator *net_iter = network_->netIterator(inst);
while (net_iter->hasNext()) {
Net *net = net_iter->next();
if (include_pwr_gnd_
|| !(network_->isPower(net) || network_->isGround(net))) {
const char *net_name = network_->name(net);
if (network_->findPort(cell, net_name) == nullptr) {
if (isBusName(net_name, '[', ']', escape)) {
bool is_bus;
string bus_name;
int index;
parseBusName(net_name, '[', ']', escape, is_bus, bus_name, index);
BusIndexRange &range = bus_ranges[bus_name];
range.first = max(range.first, index);
range.second = min(range.second, index);
}
else {
verilog c++ parser commit 6fac3fee87a3309132b5bdbb731292ecd6410a86 Author: James Cherry <cherry@parallaxsw.com> Date: Tue Jan 21 18:24:18 2025 -0700 Sta use VerilogReader class Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 05d4bce4bcfcfaa07392b237a596a82315b895b3 Author: James Cherry <cherry@parallaxsw.com> Date: Tue Jan 21 15:14:29 2025 -0700 vparse Signed-off-by: James Cherry <cherry@parallaxsw.com> commit e977e89b62191688db5c815131fc389d9ce401c5 Author: James Cherry <cherry@parallaxsw.com> Date: Tue Jan 21 11:30:46 2025 -0700 write_verilog missing port ddcl Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 1742d5d92533559235ea4c42d9ea4bf2d47fb943 Author: James Cherry <cherry@parallaxsw.com> Date: Tue Jan 21 11:23:48 2025 -0700 verilog escape constexpr Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 226a23092312a37503100d49ab74d4fb1e5856ef Author: James Cherry <cherry@parallaxsw.com> Date: Mon Jan 20 09:34:32 2025 -0700 comment Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 63ca4ac5855710427e1ddfc5c2cba8998452d1f0 Author: James Cherry <cherry@parallaxsw.com> Date: Sun Jan 19 19:45:48 2025 -0700 leaks Signed-off-by: James Cherry <cherry@parallaxsw.com> commit c1d38aa0cc983204b1bb3f49944709e74c831be7 Author: James Cherry <cherry@parallaxsw.com> Date: Sun Jan 19 13:26:07 2025 -0700 verilog std::string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 22607b41b9eb9fc71d53214893150afb757a8a56 Author: James Cherry <cherry@parallaxsw.com> Date: Sun Jan 19 11:36:23 2025 -0700 verilog std::string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit dba2bc939fc58d465229cc2d474705151cd50d05 Author: James Cherry <cherry@parallaxsw.com> Date: Sun Jan 19 10:01:14 2025 -0700 verilog std::string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 7d449041a2b75b874038af377d46130b45195a00 Author: James Cherry <cherry@parallaxsw.com> Date: Sun Jan 19 09:18:55 2025 -0700 verilog std::string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit d02495222838f037f25d131ce1b270a6121cf16f Author: James Cherry <cherry@parallaxsw.com> Date: Sun Jan 19 08:53:47 2025 -0700 verilog std::string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 10c5c1040f26c8ebe295d245a641fc913e0ec9f5 Author: James Cherry <cherry@parallaxsw.com> Date: Sat Jan 18 21:50:12 2025 -0700 verlog constant use std::string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 21943c1b63fd36d12de1e5986905e14fe73ce7be Author: James Cherry <cherry@parallaxsw.com> Date: Sat Jan 18 17:41:43 2025 -0700 verilog std::string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit c0232b71ea5137b37d055d83f3da194341aed7a0 Author: James Cherry <cherry@parallaxsw.com> Date: Sat Jan 18 17:12:47 2025 -0700 verilog std::string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit c68fd0329ee35b4877763bcdc82e8fe03a3b16de Author: James Cherry <cherry@parallaxsw.com> Date: Sat Jan 18 16:54:10 2025 -0700 verilog std::string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 3e2dca2140db42acce390ec1a18f29ee4de3c631 Author: James Cherry <cherry@parallaxsw.com> Date: Sat Jan 18 16:07:19 2025 -0700 vparse const Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 210196f9e5a63dfdd5ed45a418388b7ec74ade07 Author: James Cherry <cherry@parallaxsw.com> Date: Sat Jan 18 12:31:13 2025 -0700 verilog parse centos7 Signed-off-by: James Cherry <cherry@parallaxsw.com> commit b8e1882121ac1763e767d299fd929bdfb07c5ffb Author: James Cherry <cherry@parallaxsw.com> Date: Sat Jan 18 10:21:48 2025 -0700 verilog names string* Signed-off-by: James Cherry <cherry@parallaxsw.com> commit c455723c5801d2d7386e7d1d53a0f9fb501c0c03 Author: James Cherry <cherry@parallaxsw.com> Date: Sat Jan 18 09:51:47 2025 -0700 verilog reader names Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 47307b1d8a61abab91195969be8708a7646bbfe3 Author: James Cherry <cherry@parallaxsw.com> Date: Sat Jan 18 09:21:30 2025 -0700 valgrind Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 0de49ba76cb0d1e06f93868676b73b4cd2ee609e Author: James Cherry <cherry@parallaxsw.com> Date: Wed Jan 15 16:50:56 2025 -0700 suppress yynerrs_ warning Signed-off-by: James Cherry <cherry@parallaxsw.com> commit dbe2ba18d99d850ba5ebb1c75a4165bfff2df96d Author: James Cherry <cherry@parallaxsw.com> Date: Wed Jan 15 16:37:14 2025 -0700 cmake bison target names Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 388be6c2aa69b839a53be78bafab420216554944 Author: James Cherry <cherry@parallaxsw.com> Date: Tue Jan 14 08:57:02 2025 -0700 network link func rm repor, network args Signed-off-by: James Cherry <cherry@parallaxsw.com> commit f50d5b23aff126e7d396a555f06eae5597ec1354 Author: James Cherry <cherry@parallaxsw.com> Date: Mon Jan 13 19:48:44 2025 -0700 verilog reader use gzstream Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 8a0c8ce09087cceef36824de3656b5c7cea9f0f0 Author: James Cherry <cherry@parallaxsw.com> Date: Mon Jan 13 18:02:40 2025 -0700 VerilogScanner::error Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 413093e46e523d90e45a4c56ecaa25e4457998aa Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 10 18:27:53 2025 -0700 rm verilog_network Signed-off-by: James Cherry <cherry@parallaxsw.com> commit aef8358a8f44e556a3814e9ddd205e179bf2b3d7 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 10 18:01:09 2025 -0700 rm verilog_reader except link Signed-off-by: James Cherry <cherry@parallaxsw.com> commit cfc34aa41a5fe1942867c73061ae483e36c74f54 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 10 17:04:33 2025 -0700 verilog reader rm line_ Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 62dd98b7cb800acc61192b0f326d4a3278e1a72d Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 10 16:26:09 2025 -0700 verilog parse use location Signed-off-by: James Cherry <cherry@parallaxsw.com> commit ad6c26984526312134d03c0f39d3fcd63617efa4 Author: James Cherry <cherry@parallaxsw.com> Date: Sat Jan 4 11:04:16 2025 -0800 verilog parse error Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 1bff12c8c49c847de015dd32042cccf7952a2060 Author: James Cherry <cherry@parallaxsw.com> Date: Sat Jan 4 08:00:40 2025 -0800 attribute -> Attr Signed-off-by: James Cherry <cherry@parallaxsw.com> commit e8372df18a5374b2c9ca8f094a244d06c59a9f4e Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 3 17:57:21 2025 -0800 verilog rm string_buf Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 785818f10108f689b4ea978a13d0131546f1a4e5 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 3 16:10:10 2025 -0800 verilog parse use std::string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 95265fc4ad30325f115eb69d10c77afe3f265701 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 3 15:44:31 2025 -0800 verilog parser const char * -> string* Signed-off-by: James Cherry <cherry@parallaxsw.com> commit b80db6d98057363f90a9497b10073f84c2e7cc3d Author: James Cherry <cherry@parallaxsw.com> Date: Thu Jan 2 08:31:06 2025 -0800 bison warning Signed-off-by: James Cherry <cherry@parallaxsw.com> commit df3b61bf7d590c241ee513eacfb1c7dff2a450d8 Author: James Cherry <cherry@parallaxsw.com> Date: Wed Jan 1 17:04:17 2025 -0800 verilog parse works Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 8b5a8fbb7042ceb58fbb24b836664a1da6028c45 Author: James Cherry <cherry@parallaxsw.com> Date: Wed Jan 1 16:15:44 2025 -0800 rm VerilogParser.hh Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 07bc0cc9c160e9dbe705f4c359973cc35342e05e Author: James Cherry <cherry@parallaxsw.com> Date: Wed Jan 1 15:59:57 2025 -0800 verlog parse compiles Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 8d32f5f3d5e6a252cdb2020c62742f01b1c66f63 Author: James Cherry <cherry@parallaxsw.com> Date: Mon Dec 30 09:14:13 2024 -0800 verilog parser Signed-off-by: James Cherry <cherry@parallaxsw.com> Signed-off-by: James Cherry <cherry@parallaxsw.com>
2025-01-22 02:35:21 +01:00
string net_vname = netVerilogName(net_name);
fprintf(stream_, " wire %s;\n", net_vname.c_str());;
}
rm tmp string uses commit 2d0a4f8e9a8b46faa2ba91e1be636c3c3ad95a7f Author: James Cherry <cherry@parallaxsw.com> Date: Sat Mar 25 21:25:37 2023 -0700 leaks Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 5514910a91707d615bac0bbed3a29f579eca8de2 Author: James Cherry <cherry@parallaxsw.com> Date: Sat Mar 25 18:21:54 2023 -0700 foo Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 076a51d5816444e883232933c2ded7309291d0bc Author: James Cherry <cherry@parallaxsw.com> Date: Sat Mar 25 16:38:42 2023 -0700 parse bus string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 2b80e563cbbb6563a6b716431f391bbb6639f816 Author: James Cherry <cherry@parallaxsw.com> Date: Sat Mar 25 15:57:05 2023 -0700 rm tmp string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 9e4f2308658232d0b1ee9efcd948bb19ae5dd30f Author: James Cherry <cherry@parallaxsw.com> Date: Sat Mar 25 14:37:35 2023 -0700 rm tmp string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit ebad3afd49b08e7194452dd082c3c7c05767f875 Author: James Cherry <cherry@parallaxsw.com> Date: Sat Mar 25 10:59:11 2023 -0700 rm tmp string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 69647913932312a04ca06e7a04cca17ed50d4daf Author: James Cherry <cherry@parallaxsw.com> Date: Fri Mar 24 21:02:20 2023 -0700 rm tmp string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 55e67996a7b0651dbb5ee06cb89fe0410648c3c1 Author: James Cherry <cherry@parallaxsw.com> Date: Sat Mar 25 10:42:43 2023 -0700 rm tmp string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 73cee43925c0d32940989c616440b4da18640121 Author: James Cherry <cherry@parallaxsw.com> Date: Sat Mar 25 09:55:17 2023 -0700 rm tmp string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit eba6d1413b8d87a64a90141e5263a56eede1df51 Author: James Cherry <cherry@parallaxsw.com> Date: Sat Mar 25 09:40:16 2023 -0700 rm tmp string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 95d6ed78144512a37fd7c1d3d8a62fc4c8965818 Author: James Cherry <cherry@parallaxsw.com> Date: Sat Mar 25 08:18:46 2023 -0700 rm tmp string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit faf82464d7be7fd6c958a21d401fa48ece4ac341 Author: James Cherry <cherry@parallaxsw.com> Date: Sat Mar 25 07:49:11 2023 -0700 rm tmp string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit cfc9064496cb6f46ec562b104bc7fff2fbc1b32e Author: James Cherry <cherry@parallaxsw.com> Date: Sat Mar 25 07:37:12 2023 -0700 rm tmp string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 057933a6ac356a7541883aa64b5109c7a0e8b8d1 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Mar 24 21:02:20 2023 -0700 rm tmp string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit fdeb6436a72413356a627dd1de1d8cec7fca4c4a Author: James Cherry <cherry@parallaxsw.com> Date: Fri Mar 24 19:53:44 2023 -0700 rm TmpString uses Signed-off-by: James Cherry <cherry@parallaxsw.com> Signed-off-by: James Cherry <cherry@parallaxsw.com>
2023-03-26 15:34:36 +02:00
}
2021-01-19 20:40:49 +01:00
}
}
delete net_iter;
for (const auto& [bus_name1, range] : bus_ranges) {
const char *bus_name = bus_name1.c_str();
verilog c++ parser commit 6fac3fee87a3309132b5bdbb731292ecd6410a86 Author: James Cherry <cherry@parallaxsw.com> Date: Tue Jan 21 18:24:18 2025 -0700 Sta use VerilogReader class Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 05d4bce4bcfcfaa07392b237a596a82315b895b3 Author: James Cherry <cherry@parallaxsw.com> Date: Tue Jan 21 15:14:29 2025 -0700 vparse Signed-off-by: James Cherry <cherry@parallaxsw.com> commit e977e89b62191688db5c815131fc389d9ce401c5 Author: James Cherry <cherry@parallaxsw.com> Date: Tue Jan 21 11:30:46 2025 -0700 write_verilog missing port ddcl Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 1742d5d92533559235ea4c42d9ea4bf2d47fb943 Author: James Cherry <cherry@parallaxsw.com> Date: Tue Jan 21 11:23:48 2025 -0700 verilog escape constexpr Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 226a23092312a37503100d49ab74d4fb1e5856ef Author: James Cherry <cherry@parallaxsw.com> Date: Mon Jan 20 09:34:32 2025 -0700 comment Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 63ca4ac5855710427e1ddfc5c2cba8998452d1f0 Author: James Cherry <cherry@parallaxsw.com> Date: Sun Jan 19 19:45:48 2025 -0700 leaks Signed-off-by: James Cherry <cherry@parallaxsw.com> commit c1d38aa0cc983204b1bb3f49944709e74c831be7 Author: James Cherry <cherry@parallaxsw.com> Date: Sun Jan 19 13:26:07 2025 -0700 verilog std::string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 22607b41b9eb9fc71d53214893150afb757a8a56 Author: James Cherry <cherry@parallaxsw.com> Date: Sun Jan 19 11:36:23 2025 -0700 verilog std::string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit dba2bc939fc58d465229cc2d474705151cd50d05 Author: James Cherry <cherry@parallaxsw.com> Date: Sun Jan 19 10:01:14 2025 -0700 verilog std::string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 7d449041a2b75b874038af377d46130b45195a00 Author: James Cherry <cherry@parallaxsw.com> Date: Sun Jan 19 09:18:55 2025 -0700 verilog std::string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit d02495222838f037f25d131ce1b270a6121cf16f Author: James Cherry <cherry@parallaxsw.com> Date: Sun Jan 19 08:53:47 2025 -0700 verilog std::string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 10c5c1040f26c8ebe295d245a641fc913e0ec9f5 Author: James Cherry <cherry@parallaxsw.com> Date: Sat Jan 18 21:50:12 2025 -0700 verlog constant use std::string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 21943c1b63fd36d12de1e5986905e14fe73ce7be Author: James Cherry <cherry@parallaxsw.com> Date: Sat Jan 18 17:41:43 2025 -0700 verilog std::string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit c0232b71ea5137b37d055d83f3da194341aed7a0 Author: James Cherry <cherry@parallaxsw.com> Date: Sat Jan 18 17:12:47 2025 -0700 verilog std::string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit c68fd0329ee35b4877763bcdc82e8fe03a3b16de Author: James Cherry <cherry@parallaxsw.com> Date: Sat Jan 18 16:54:10 2025 -0700 verilog std::string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 3e2dca2140db42acce390ec1a18f29ee4de3c631 Author: James Cherry <cherry@parallaxsw.com> Date: Sat Jan 18 16:07:19 2025 -0700 vparse const Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 210196f9e5a63dfdd5ed45a418388b7ec74ade07 Author: James Cherry <cherry@parallaxsw.com> Date: Sat Jan 18 12:31:13 2025 -0700 verilog parse centos7 Signed-off-by: James Cherry <cherry@parallaxsw.com> commit b8e1882121ac1763e767d299fd929bdfb07c5ffb Author: James Cherry <cherry@parallaxsw.com> Date: Sat Jan 18 10:21:48 2025 -0700 verilog names string* Signed-off-by: James Cherry <cherry@parallaxsw.com> commit c455723c5801d2d7386e7d1d53a0f9fb501c0c03 Author: James Cherry <cherry@parallaxsw.com> Date: Sat Jan 18 09:51:47 2025 -0700 verilog reader names Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 47307b1d8a61abab91195969be8708a7646bbfe3 Author: James Cherry <cherry@parallaxsw.com> Date: Sat Jan 18 09:21:30 2025 -0700 valgrind Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 0de49ba76cb0d1e06f93868676b73b4cd2ee609e Author: James Cherry <cherry@parallaxsw.com> Date: Wed Jan 15 16:50:56 2025 -0700 suppress yynerrs_ warning Signed-off-by: James Cherry <cherry@parallaxsw.com> commit dbe2ba18d99d850ba5ebb1c75a4165bfff2df96d Author: James Cherry <cherry@parallaxsw.com> Date: Wed Jan 15 16:37:14 2025 -0700 cmake bison target names Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 388be6c2aa69b839a53be78bafab420216554944 Author: James Cherry <cherry@parallaxsw.com> Date: Tue Jan 14 08:57:02 2025 -0700 network link func rm repor, network args Signed-off-by: James Cherry <cherry@parallaxsw.com> commit f50d5b23aff126e7d396a555f06eae5597ec1354 Author: James Cherry <cherry@parallaxsw.com> Date: Mon Jan 13 19:48:44 2025 -0700 verilog reader use gzstream Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 8a0c8ce09087cceef36824de3656b5c7cea9f0f0 Author: James Cherry <cherry@parallaxsw.com> Date: Mon Jan 13 18:02:40 2025 -0700 VerilogScanner::error Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 413093e46e523d90e45a4c56ecaa25e4457998aa Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 10 18:27:53 2025 -0700 rm verilog_network Signed-off-by: James Cherry <cherry@parallaxsw.com> commit aef8358a8f44e556a3814e9ddd205e179bf2b3d7 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 10 18:01:09 2025 -0700 rm verilog_reader except link Signed-off-by: James Cherry <cherry@parallaxsw.com> commit cfc34aa41a5fe1942867c73061ae483e36c74f54 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 10 17:04:33 2025 -0700 verilog reader rm line_ Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 62dd98b7cb800acc61192b0f326d4a3278e1a72d Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 10 16:26:09 2025 -0700 verilog parse use location Signed-off-by: James Cherry <cherry@parallaxsw.com> commit ad6c26984526312134d03c0f39d3fcd63617efa4 Author: James Cherry <cherry@parallaxsw.com> Date: Sat Jan 4 11:04:16 2025 -0800 verilog parse error Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 1bff12c8c49c847de015dd32042cccf7952a2060 Author: James Cherry <cherry@parallaxsw.com> Date: Sat Jan 4 08:00:40 2025 -0800 attribute -> Attr Signed-off-by: James Cherry <cherry@parallaxsw.com> commit e8372df18a5374b2c9ca8f094a244d06c59a9f4e Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 3 17:57:21 2025 -0800 verilog rm string_buf Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 785818f10108f689b4ea978a13d0131546f1a4e5 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 3 16:10:10 2025 -0800 verilog parse use std::string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 95265fc4ad30325f115eb69d10c77afe3f265701 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 3 15:44:31 2025 -0800 verilog parser const char * -> string* Signed-off-by: James Cherry <cherry@parallaxsw.com> commit b80db6d98057363f90a9497b10073f84c2e7cc3d Author: James Cherry <cherry@parallaxsw.com> Date: Thu Jan 2 08:31:06 2025 -0800 bison warning Signed-off-by: James Cherry <cherry@parallaxsw.com> commit df3b61bf7d590c241ee513eacfb1c7dff2a450d8 Author: James Cherry <cherry@parallaxsw.com> Date: Wed Jan 1 17:04:17 2025 -0800 verilog parse works Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 8b5a8fbb7042ceb58fbb24b836664a1da6028c45 Author: James Cherry <cherry@parallaxsw.com> Date: Wed Jan 1 16:15:44 2025 -0800 rm VerilogParser.hh Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 07bc0cc9c160e9dbe705f4c359973cc35342e05e Author: James Cherry <cherry@parallaxsw.com> Date: Wed Jan 1 15:59:57 2025 -0800 verlog parse compiles Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 8d32f5f3d5e6a252cdb2020c62742f01b1c66f63 Author: James Cherry <cherry@parallaxsw.com> Date: Mon Dec 30 09:14:13 2024 -0800 verilog parser Signed-off-by: James Cherry <cherry@parallaxsw.com> Signed-off-by: James Cherry <cherry@parallaxsw.com>
2025-01-22 02:35:21 +01:00
string net_vname = netVerilogName(bus_name);
2021-01-19 20:40:49 +01:00
fprintf(stream_, " wire [%d:%d] %s;\n",
range.first,
range.second,
rm tmp string uses commit 2d0a4f8e9a8b46faa2ba91e1be636c3c3ad95a7f Author: James Cherry <cherry@parallaxsw.com> Date: Sat Mar 25 21:25:37 2023 -0700 leaks Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 5514910a91707d615bac0bbed3a29f579eca8de2 Author: James Cherry <cherry@parallaxsw.com> Date: Sat Mar 25 18:21:54 2023 -0700 foo Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 076a51d5816444e883232933c2ded7309291d0bc Author: James Cherry <cherry@parallaxsw.com> Date: Sat Mar 25 16:38:42 2023 -0700 parse bus string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 2b80e563cbbb6563a6b716431f391bbb6639f816 Author: James Cherry <cherry@parallaxsw.com> Date: Sat Mar 25 15:57:05 2023 -0700 rm tmp string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 9e4f2308658232d0b1ee9efcd948bb19ae5dd30f Author: James Cherry <cherry@parallaxsw.com> Date: Sat Mar 25 14:37:35 2023 -0700 rm tmp string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit ebad3afd49b08e7194452dd082c3c7c05767f875 Author: James Cherry <cherry@parallaxsw.com> Date: Sat Mar 25 10:59:11 2023 -0700 rm tmp string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 69647913932312a04ca06e7a04cca17ed50d4daf Author: James Cherry <cherry@parallaxsw.com> Date: Fri Mar 24 21:02:20 2023 -0700 rm tmp string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 55e67996a7b0651dbb5ee06cb89fe0410648c3c1 Author: James Cherry <cherry@parallaxsw.com> Date: Sat Mar 25 10:42:43 2023 -0700 rm tmp string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 73cee43925c0d32940989c616440b4da18640121 Author: James Cherry <cherry@parallaxsw.com> Date: Sat Mar 25 09:55:17 2023 -0700 rm tmp string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit eba6d1413b8d87a64a90141e5263a56eede1df51 Author: James Cherry <cherry@parallaxsw.com> Date: Sat Mar 25 09:40:16 2023 -0700 rm tmp string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 95d6ed78144512a37fd7c1d3d8a62fc4c8965818 Author: James Cherry <cherry@parallaxsw.com> Date: Sat Mar 25 08:18:46 2023 -0700 rm tmp string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit faf82464d7be7fd6c958a21d401fa48ece4ac341 Author: James Cherry <cherry@parallaxsw.com> Date: Sat Mar 25 07:49:11 2023 -0700 rm tmp string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit cfc9064496cb6f46ec562b104bc7fff2fbc1b32e Author: James Cherry <cherry@parallaxsw.com> Date: Sat Mar 25 07:37:12 2023 -0700 rm tmp string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 057933a6ac356a7541883aa64b5109c7a0e8b8d1 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Mar 24 21:02:20 2023 -0700 rm tmp string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit fdeb6436a72413356a627dd1de1d8cec7fca4c4a Author: James Cherry <cherry@parallaxsw.com> Date: Fri Mar 24 19:53:44 2023 -0700 rm TmpString uses Signed-off-by: James Cherry <cherry@parallaxsw.com> Signed-off-by: James Cherry <cherry@parallaxsw.com>
2023-03-26 15:34:36 +02:00
net_vname.c_str());;
2021-01-19 20:40:49 +01:00
}
// Wire net dcls for writeInstBusPinBit.
int nc_count = findUnconnectedNetCount(inst);
for (int i = 1; i < nc_count + 1; i++)
fprintf(stream_, " wire _NC%d;\n", i);
2021-01-19 20:40:49 +01:00
}
2019-06-17 06:08:00 +02:00
void
VerilogWriter::writeChildren(const Instance *inst)
2019-06-17 06:08:00 +02:00
{
Vector<Instance*> children;
InstanceChildIterator *child_iter = network_->childIterator(inst);
while (child_iter->hasNext()) {
Instance *child = child_iter->next();
children.push_back(child);
}
delete child_iter;
2019-06-17 21:33:37 +02:00
if (sort_)
sort(children, [this](const Instance *inst1,
const Instance *inst2) {
return stringLess(network_->name(inst1), network_->name(inst2));
});
2019-06-17 06:08:00 +02:00
for (auto child : children)
writeChild(child);
}
void
VerilogWriter::writeChild(const Instance *child)
2019-06-17 06:08:00 +02:00
{
Cell *child_cell = network_->cell(child);
if (!remove_cells_.hasKey(child_cell)) {
2020-07-15 16:56:34 +02:00
const char *child_name = network_->name(child);
verilog c++ parser commit 6fac3fee87a3309132b5bdbb731292ecd6410a86 Author: James Cherry <cherry@parallaxsw.com> Date: Tue Jan 21 18:24:18 2025 -0700 Sta use VerilogReader class Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 05d4bce4bcfcfaa07392b237a596a82315b895b3 Author: James Cherry <cherry@parallaxsw.com> Date: Tue Jan 21 15:14:29 2025 -0700 vparse Signed-off-by: James Cherry <cherry@parallaxsw.com> commit e977e89b62191688db5c815131fc389d9ce401c5 Author: James Cherry <cherry@parallaxsw.com> Date: Tue Jan 21 11:30:46 2025 -0700 write_verilog missing port ddcl Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 1742d5d92533559235ea4c42d9ea4bf2d47fb943 Author: James Cherry <cherry@parallaxsw.com> Date: Tue Jan 21 11:23:48 2025 -0700 verilog escape constexpr Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 226a23092312a37503100d49ab74d4fb1e5856ef Author: James Cherry <cherry@parallaxsw.com> Date: Mon Jan 20 09:34:32 2025 -0700 comment Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 63ca4ac5855710427e1ddfc5c2cba8998452d1f0 Author: James Cherry <cherry@parallaxsw.com> Date: Sun Jan 19 19:45:48 2025 -0700 leaks Signed-off-by: James Cherry <cherry@parallaxsw.com> commit c1d38aa0cc983204b1bb3f49944709e74c831be7 Author: James Cherry <cherry@parallaxsw.com> Date: Sun Jan 19 13:26:07 2025 -0700 verilog std::string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 22607b41b9eb9fc71d53214893150afb757a8a56 Author: James Cherry <cherry@parallaxsw.com> Date: Sun Jan 19 11:36:23 2025 -0700 verilog std::string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit dba2bc939fc58d465229cc2d474705151cd50d05 Author: James Cherry <cherry@parallaxsw.com> Date: Sun Jan 19 10:01:14 2025 -0700 verilog std::string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 7d449041a2b75b874038af377d46130b45195a00 Author: James Cherry <cherry@parallaxsw.com> Date: Sun Jan 19 09:18:55 2025 -0700 verilog std::string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit d02495222838f037f25d131ce1b270a6121cf16f Author: James Cherry <cherry@parallaxsw.com> Date: Sun Jan 19 08:53:47 2025 -0700 verilog std::string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 10c5c1040f26c8ebe295d245a641fc913e0ec9f5 Author: James Cherry <cherry@parallaxsw.com> Date: Sat Jan 18 21:50:12 2025 -0700 verlog constant use std::string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 21943c1b63fd36d12de1e5986905e14fe73ce7be Author: James Cherry <cherry@parallaxsw.com> Date: Sat Jan 18 17:41:43 2025 -0700 verilog std::string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit c0232b71ea5137b37d055d83f3da194341aed7a0 Author: James Cherry <cherry@parallaxsw.com> Date: Sat Jan 18 17:12:47 2025 -0700 verilog std::string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit c68fd0329ee35b4877763bcdc82e8fe03a3b16de Author: James Cherry <cherry@parallaxsw.com> Date: Sat Jan 18 16:54:10 2025 -0700 verilog std::string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 3e2dca2140db42acce390ec1a18f29ee4de3c631 Author: James Cherry <cherry@parallaxsw.com> Date: Sat Jan 18 16:07:19 2025 -0700 vparse const Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 210196f9e5a63dfdd5ed45a418388b7ec74ade07 Author: James Cherry <cherry@parallaxsw.com> Date: Sat Jan 18 12:31:13 2025 -0700 verilog parse centos7 Signed-off-by: James Cherry <cherry@parallaxsw.com> commit b8e1882121ac1763e767d299fd929bdfb07c5ffb Author: James Cherry <cherry@parallaxsw.com> Date: Sat Jan 18 10:21:48 2025 -0700 verilog names string* Signed-off-by: James Cherry <cherry@parallaxsw.com> commit c455723c5801d2d7386e7d1d53a0f9fb501c0c03 Author: James Cherry <cherry@parallaxsw.com> Date: Sat Jan 18 09:51:47 2025 -0700 verilog reader names Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 47307b1d8a61abab91195969be8708a7646bbfe3 Author: James Cherry <cherry@parallaxsw.com> Date: Sat Jan 18 09:21:30 2025 -0700 valgrind Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 0de49ba76cb0d1e06f93868676b73b4cd2ee609e Author: James Cherry <cherry@parallaxsw.com> Date: Wed Jan 15 16:50:56 2025 -0700 suppress yynerrs_ warning Signed-off-by: James Cherry <cherry@parallaxsw.com> commit dbe2ba18d99d850ba5ebb1c75a4165bfff2df96d Author: James Cherry <cherry@parallaxsw.com> Date: Wed Jan 15 16:37:14 2025 -0700 cmake bison target names Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 388be6c2aa69b839a53be78bafab420216554944 Author: James Cherry <cherry@parallaxsw.com> Date: Tue Jan 14 08:57:02 2025 -0700 network link func rm repor, network args Signed-off-by: James Cherry <cherry@parallaxsw.com> commit f50d5b23aff126e7d396a555f06eae5597ec1354 Author: James Cherry <cherry@parallaxsw.com> Date: Mon Jan 13 19:48:44 2025 -0700 verilog reader use gzstream Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 8a0c8ce09087cceef36824de3656b5c7cea9f0f0 Author: James Cherry <cherry@parallaxsw.com> Date: Mon Jan 13 18:02:40 2025 -0700 VerilogScanner::error Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 413093e46e523d90e45a4c56ecaa25e4457998aa Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 10 18:27:53 2025 -0700 rm verilog_network Signed-off-by: James Cherry <cherry@parallaxsw.com> commit aef8358a8f44e556a3814e9ddd205e179bf2b3d7 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 10 18:01:09 2025 -0700 rm verilog_reader except link Signed-off-by: James Cherry <cherry@parallaxsw.com> commit cfc34aa41a5fe1942867c73061ae483e36c74f54 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 10 17:04:33 2025 -0700 verilog reader rm line_ Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 62dd98b7cb800acc61192b0f326d4a3278e1a72d Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 10 16:26:09 2025 -0700 verilog parse use location Signed-off-by: James Cherry <cherry@parallaxsw.com> commit ad6c26984526312134d03c0f39d3fcd63617efa4 Author: James Cherry <cherry@parallaxsw.com> Date: Sat Jan 4 11:04:16 2025 -0800 verilog parse error Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 1bff12c8c49c847de015dd32042cccf7952a2060 Author: James Cherry <cherry@parallaxsw.com> Date: Sat Jan 4 08:00:40 2025 -0800 attribute -> Attr Signed-off-by: James Cherry <cherry@parallaxsw.com> commit e8372df18a5374b2c9ca8f094a244d06c59a9f4e Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 3 17:57:21 2025 -0800 verilog rm string_buf Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 785818f10108f689b4ea978a13d0131546f1a4e5 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 3 16:10:10 2025 -0800 verilog parse use std::string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 95265fc4ad30325f115eb69d10c77afe3f265701 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 3 15:44:31 2025 -0800 verilog parser const char * -> string* Signed-off-by: James Cherry <cherry@parallaxsw.com> commit b80db6d98057363f90a9497b10073f84c2e7cc3d Author: James Cherry <cherry@parallaxsw.com> Date: Thu Jan 2 08:31:06 2025 -0800 bison warning Signed-off-by: James Cherry <cherry@parallaxsw.com> commit df3b61bf7d590c241ee513eacfb1c7dff2a450d8 Author: James Cherry <cherry@parallaxsw.com> Date: Wed Jan 1 17:04:17 2025 -0800 verilog parse works Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 8b5a8fbb7042ceb58fbb24b836664a1da6028c45 Author: James Cherry <cherry@parallaxsw.com> Date: Wed Jan 1 16:15:44 2025 -0800 rm VerilogParser.hh Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 07bc0cc9c160e9dbe705f4c359973cc35342e05e Author: James Cherry <cherry@parallaxsw.com> Date: Wed Jan 1 15:59:57 2025 -0800 verlog parse compiles Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 8d32f5f3d5e6a252cdb2020c62742f01b1c66f63 Author: James Cherry <cherry@parallaxsw.com> Date: Mon Dec 30 09:14:13 2024 -0800 verilog parser Signed-off-by: James Cherry <cherry@parallaxsw.com> Signed-off-by: James Cherry <cherry@parallaxsw.com>
2025-01-22 02:35:21 +01:00
string child_vname = instanceVerilogName(child_name);
string child_cell_vname = cellVerilogName(network_->name(child_cell));
2020-07-15 16:56:34 +02:00
fprintf(stream_, " %s %s (",
child_cell_vname.c_str(),
rm tmp string uses commit 2d0a4f8e9a8b46faa2ba91e1be636c3c3ad95a7f Author: James Cherry <cherry@parallaxsw.com> Date: Sat Mar 25 21:25:37 2023 -0700 leaks Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 5514910a91707d615bac0bbed3a29f579eca8de2 Author: James Cherry <cherry@parallaxsw.com> Date: Sat Mar 25 18:21:54 2023 -0700 foo Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 076a51d5816444e883232933c2ded7309291d0bc Author: James Cherry <cherry@parallaxsw.com> Date: Sat Mar 25 16:38:42 2023 -0700 parse bus string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 2b80e563cbbb6563a6b716431f391bbb6639f816 Author: James Cherry <cherry@parallaxsw.com> Date: Sat Mar 25 15:57:05 2023 -0700 rm tmp string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 9e4f2308658232d0b1ee9efcd948bb19ae5dd30f Author: James Cherry <cherry@parallaxsw.com> Date: Sat Mar 25 14:37:35 2023 -0700 rm tmp string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit ebad3afd49b08e7194452dd082c3c7c05767f875 Author: James Cherry <cherry@parallaxsw.com> Date: Sat Mar 25 10:59:11 2023 -0700 rm tmp string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 69647913932312a04ca06e7a04cca17ed50d4daf Author: James Cherry <cherry@parallaxsw.com> Date: Fri Mar 24 21:02:20 2023 -0700 rm tmp string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 55e67996a7b0651dbb5ee06cb89fe0410648c3c1 Author: James Cherry <cherry@parallaxsw.com> Date: Sat Mar 25 10:42:43 2023 -0700 rm tmp string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 73cee43925c0d32940989c616440b4da18640121 Author: James Cherry <cherry@parallaxsw.com> Date: Sat Mar 25 09:55:17 2023 -0700 rm tmp string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit eba6d1413b8d87a64a90141e5263a56eede1df51 Author: James Cherry <cherry@parallaxsw.com> Date: Sat Mar 25 09:40:16 2023 -0700 rm tmp string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 95d6ed78144512a37fd7c1d3d8a62fc4c8965818 Author: James Cherry <cherry@parallaxsw.com> Date: Sat Mar 25 08:18:46 2023 -0700 rm tmp string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit faf82464d7be7fd6c958a21d401fa48ece4ac341 Author: James Cherry <cherry@parallaxsw.com> Date: Sat Mar 25 07:49:11 2023 -0700 rm tmp string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit cfc9064496cb6f46ec562b104bc7fff2fbc1b32e Author: James Cherry <cherry@parallaxsw.com> Date: Sat Mar 25 07:37:12 2023 -0700 rm tmp string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 057933a6ac356a7541883aa64b5109c7a0e8b8d1 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Mar 24 21:02:20 2023 -0700 rm tmp string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit fdeb6436a72413356a627dd1de1d8cec7fca4c4a Author: James Cherry <cherry@parallaxsw.com> Date: Fri Mar 24 19:53:44 2023 -0700 rm TmpString uses Signed-off-by: James Cherry <cherry@parallaxsw.com> Signed-off-by: James Cherry <cherry@parallaxsw.com>
2023-03-26 15:34:36 +02:00
child_vname.c_str());
2020-07-15 16:56:34 +02:00
bool first_port = true;
CellPortIterator *port_iter = network_->portIterator(child_cell);
while (port_iter->hasNext()) {
Port *port = port_iter->next();
2020-10-20 05:55:54 +02:00
if (include_pwr_gnd_
|| !network_->direction(port)->isPowerGround()) {
if (network_->hasMembers(port))
writeInstBusPin(child, port, first_port);
else
writeInstPin(child, port, first_port);
}
2020-07-15 16:56:34 +02:00
}
delete port_iter;
fprintf(stream_, ");\n");
}
}
void
VerilogWriter::writeInstPin(const Instance *inst,
const Port *port,
bool &first_port)
{
Pin *pin = network_->findPin(inst, port);
if (pin) {
Net *net = network_->net(pin);
if (net) {
const char *net_name = network_->name(net);
verilog c++ parser commit 6fac3fee87a3309132b5bdbb731292ecd6410a86 Author: James Cherry <cherry@parallaxsw.com> Date: Tue Jan 21 18:24:18 2025 -0700 Sta use VerilogReader class Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 05d4bce4bcfcfaa07392b237a596a82315b895b3 Author: James Cherry <cherry@parallaxsw.com> Date: Tue Jan 21 15:14:29 2025 -0700 vparse Signed-off-by: James Cherry <cherry@parallaxsw.com> commit e977e89b62191688db5c815131fc389d9ce401c5 Author: James Cherry <cherry@parallaxsw.com> Date: Tue Jan 21 11:30:46 2025 -0700 write_verilog missing port ddcl Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 1742d5d92533559235ea4c42d9ea4bf2d47fb943 Author: James Cherry <cherry@parallaxsw.com> Date: Tue Jan 21 11:23:48 2025 -0700 verilog escape constexpr Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 226a23092312a37503100d49ab74d4fb1e5856ef Author: James Cherry <cherry@parallaxsw.com> Date: Mon Jan 20 09:34:32 2025 -0700 comment Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 63ca4ac5855710427e1ddfc5c2cba8998452d1f0 Author: James Cherry <cherry@parallaxsw.com> Date: Sun Jan 19 19:45:48 2025 -0700 leaks Signed-off-by: James Cherry <cherry@parallaxsw.com> commit c1d38aa0cc983204b1bb3f49944709e74c831be7 Author: James Cherry <cherry@parallaxsw.com> Date: Sun Jan 19 13:26:07 2025 -0700 verilog std::string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 22607b41b9eb9fc71d53214893150afb757a8a56 Author: James Cherry <cherry@parallaxsw.com> Date: Sun Jan 19 11:36:23 2025 -0700 verilog std::string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit dba2bc939fc58d465229cc2d474705151cd50d05 Author: James Cherry <cherry@parallaxsw.com> Date: Sun Jan 19 10:01:14 2025 -0700 verilog std::string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 7d449041a2b75b874038af377d46130b45195a00 Author: James Cherry <cherry@parallaxsw.com> Date: Sun Jan 19 09:18:55 2025 -0700 verilog std::string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit d02495222838f037f25d131ce1b270a6121cf16f Author: James Cherry <cherry@parallaxsw.com> Date: Sun Jan 19 08:53:47 2025 -0700 verilog std::string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 10c5c1040f26c8ebe295d245a641fc913e0ec9f5 Author: James Cherry <cherry@parallaxsw.com> Date: Sat Jan 18 21:50:12 2025 -0700 verlog constant use std::string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 21943c1b63fd36d12de1e5986905e14fe73ce7be Author: James Cherry <cherry@parallaxsw.com> Date: Sat Jan 18 17:41:43 2025 -0700 verilog std::string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit c0232b71ea5137b37d055d83f3da194341aed7a0 Author: James Cherry <cherry@parallaxsw.com> Date: Sat Jan 18 17:12:47 2025 -0700 verilog std::string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit c68fd0329ee35b4877763bcdc82e8fe03a3b16de Author: James Cherry <cherry@parallaxsw.com> Date: Sat Jan 18 16:54:10 2025 -0700 verilog std::string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 3e2dca2140db42acce390ec1a18f29ee4de3c631 Author: James Cherry <cherry@parallaxsw.com> Date: Sat Jan 18 16:07:19 2025 -0700 vparse const Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 210196f9e5a63dfdd5ed45a418388b7ec74ade07 Author: James Cherry <cherry@parallaxsw.com> Date: Sat Jan 18 12:31:13 2025 -0700 verilog parse centos7 Signed-off-by: James Cherry <cherry@parallaxsw.com> commit b8e1882121ac1763e767d299fd929bdfb07c5ffb Author: James Cherry <cherry@parallaxsw.com> Date: Sat Jan 18 10:21:48 2025 -0700 verilog names string* Signed-off-by: James Cherry <cherry@parallaxsw.com> commit c455723c5801d2d7386e7d1d53a0f9fb501c0c03 Author: James Cherry <cherry@parallaxsw.com> Date: Sat Jan 18 09:51:47 2025 -0700 verilog reader names Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 47307b1d8a61abab91195969be8708a7646bbfe3 Author: James Cherry <cherry@parallaxsw.com> Date: Sat Jan 18 09:21:30 2025 -0700 valgrind Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 0de49ba76cb0d1e06f93868676b73b4cd2ee609e Author: James Cherry <cherry@parallaxsw.com> Date: Wed Jan 15 16:50:56 2025 -0700 suppress yynerrs_ warning Signed-off-by: James Cherry <cherry@parallaxsw.com> commit dbe2ba18d99d850ba5ebb1c75a4165bfff2df96d Author: James Cherry <cherry@parallaxsw.com> Date: Wed Jan 15 16:37:14 2025 -0700 cmake bison target names Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 388be6c2aa69b839a53be78bafab420216554944 Author: James Cherry <cherry@parallaxsw.com> Date: Tue Jan 14 08:57:02 2025 -0700 network link func rm repor, network args Signed-off-by: James Cherry <cherry@parallaxsw.com> commit f50d5b23aff126e7d396a555f06eae5597ec1354 Author: James Cherry <cherry@parallaxsw.com> Date: Mon Jan 13 19:48:44 2025 -0700 verilog reader use gzstream Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 8a0c8ce09087cceef36824de3656b5c7cea9f0f0 Author: James Cherry <cherry@parallaxsw.com> Date: Mon Jan 13 18:02:40 2025 -0700 VerilogScanner::error Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 413093e46e523d90e45a4c56ecaa25e4457998aa Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 10 18:27:53 2025 -0700 rm verilog_network Signed-off-by: James Cherry <cherry@parallaxsw.com> commit aef8358a8f44e556a3814e9ddd205e179bf2b3d7 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 10 18:01:09 2025 -0700 rm verilog_reader except link Signed-off-by: James Cherry <cherry@parallaxsw.com> commit cfc34aa41a5fe1942867c73061ae483e36c74f54 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 10 17:04:33 2025 -0700 verilog reader rm line_ Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 62dd98b7cb800acc61192b0f326d4a3278e1a72d Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 10 16:26:09 2025 -0700 verilog parse use location Signed-off-by: James Cherry <cherry@parallaxsw.com> commit ad6c26984526312134d03c0f39d3fcd63617efa4 Author: James Cherry <cherry@parallaxsw.com> Date: Sat Jan 4 11:04:16 2025 -0800 verilog parse error Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 1bff12c8c49c847de015dd32042cccf7952a2060 Author: James Cherry <cherry@parallaxsw.com> Date: Sat Jan 4 08:00:40 2025 -0800 attribute -> Attr Signed-off-by: James Cherry <cherry@parallaxsw.com> commit e8372df18a5374b2c9ca8f094a244d06c59a9f4e Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 3 17:57:21 2025 -0800 verilog rm string_buf Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 785818f10108f689b4ea978a13d0131546f1a4e5 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 3 16:10:10 2025 -0800 verilog parse use std::string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 95265fc4ad30325f115eb69d10c77afe3f265701 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 3 15:44:31 2025 -0800 verilog parser const char * -> string* Signed-off-by: James Cherry <cherry@parallaxsw.com> commit b80db6d98057363f90a9497b10073f84c2e7cc3d Author: James Cherry <cherry@parallaxsw.com> Date: Thu Jan 2 08:31:06 2025 -0800 bison warning Signed-off-by: James Cherry <cherry@parallaxsw.com> commit df3b61bf7d590c241ee513eacfb1c7dff2a450d8 Author: James Cherry <cherry@parallaxsw.com> Date: Wed Jan 1 17:04:17 2025 -0800 verilog parse works Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 8b5a8fbb7042ceb58fbb24b836664a1da6028c45 Author: James Cherry <cherry@parallaxsw.com> Date: Wed Jan 1 16:15:44 2025 -0800 rm VerilogParser.hh Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 07bc0cc9c160e9dbe705f4c359973cc35342e05e Author: James Cherry <cherry@parallaxsw.com> Date: Wed Jan 1 15:59:57 2025 -0800 verlog parse compiles Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 8d32f5f3d5e6a252cdb2020c62742f01b1c66f63 Author: James Cherry <cherry@parallaxsw.com> Date: Mon Dec 30 09:14:13 2024 -0800 verilog parser Signed-off-by: James Cherry <cherry@parallaxsw.com> Signed-off-by: James Cherry <cherry@parallaxsw.com>
2025-01-22 02:35:21 +01:00
string net_vname = netVerilogName(net_name);
if (!first_port)
2019-06-17 06:08:00 +02:00
fprintf(stream_, ",\n ");
verilog c++ parser commit 6fac3fee87a3309132b5bdbb731292ecd6410a86 Author: James Cherry <cherry@parallaxsw.com> Date: Tue Jan 21 18:24:18 2025 -0700 Sta use VerilogReader class Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 05d4bce4bcfcfaa07392b237a596a82315b895b3 Author: James Cherry <cherry@parallaxsw.com> Date: Tue Jan 21 15:14:29 2025 -0700 vparse Signed-off-by: James Cherry <cherry@parallaxsw.com> commit e977e89b62191688db5c815131fc389d9ce401c5 Author: James Cherry <cherry@parallaxsw.com> Date: Tue Jan 21 11:30:46 2025 -0700 write_verilog missing port ddcl Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 1742d5d92533559235ea4c42d9ea4bf2d47fb943 Author: James Cherry <cherry@parallaxsw.com> Date: Tue Jan 21 11:23:48 2025 -0700 verilog escape constexpr Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 226a23092312a37503100d49ab74d4fb1e5856ef Author: James Cherry <cherry@parallaxsw.com> Date: Mon Jan 20 09:34:32 2025 -0700 comment Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 63ca4ac5855710427e1ddfc5c2cba8998452d1f0 Author: James Cherry <cherry@parallaxsw.com> Date: Sun Jan 19 19:45:48 2025 -0700 leaks Signed-off-by: James Cherry <cherry@parallaxsw.com> commit c1d38aa0cc983204b1bb3f49944709e74c831be7 Author: James Cherry <cherry@parallaxsw.com> Date: Sun Jan 19 13:26:07 2025 -0700 verilog std::string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 22607b41b9eb9fc71d53214893150afb757a8a56 Author: James Cherry <cherry@parallaxsw.com> Date: Sun Jan 19 11:36:23 2025 -0700 verilog std::string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit dba2bc939fc58d465229cc2d474705151cd50d05 Author: James Cherry <cherry@parallaxsw.com> Date: Sun Jan 19 10:01:14 2025 -0700 verilog std::string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 7d449041a2b75b874038af377d46130b45195a00 Author: James Cherry <cherry@parallaxsw.com> Date: Sun Jan 19 09:18:55 2025 -0700 verilog std::string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit d02495222838f037f25d131ce1b270a6121cf16f Author: James Cherry <cherry@parallaxsw.com> Date: Sun Jan 19 08:53:47 2025 -0700 verilog std::string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 10c5c1040f26c8ebe295d245a641fc913e0ec9f5 Author: James Cherry <cherry@parallaxsw.com> Date: Sat Jan 18 21:50:12 2025 -0700 verlog constant use std::string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 21943c1b63fd36d12de1e5986905e14fe73ce7be Author: James Cherry <cherry@parallaxsw.com> Date: Sat Jan 18 17:41:43 2025 -0700 verilog std::string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit c0232b71ea5137b37d055d83f3da194341aed7a0 Author: James Cherry <cherry@parallaxsw.com> Date: Sat Jan 18 17:12:47 2025 -0700 verilog std::string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit c68fd0329ee35b4877763bcdc82e8fe03a3b16de Author: James Cherry <cherry@parallaxsw.com> Date: Sat Jan 18 16:54:10 2025 -0700 verilog std::string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 3e2dca2140db42acce390ec1a18f29ee4de3c631 Author: James Cherry <cherry@parallaxsw.com> Date: Sat Jan 18 16:07:19 2025 -0700 vparse const Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 210196f9e5a63dfdd5ed45a418388b7ec74ade07 Author: James Cherry <cherry@parallaxsw.com> Date: Sat Jan 18 12:31:13 2025 -0700 verilog parse centos7 Signed-off-by: James Cherry <cherry@parallaxsw.com> commit b8e1882121ac1763e767d299fd929bdfb07c5ffb Author: James Cherry <cherry@parallaxsw.com> Date: Sat Jan 18 10:21:48 2025 -0700 verilog names string* Signed-off-by: James Cherry <cherry@parallaxsw.com> commit c455723c5801d2d7386e7d1d53a0f9fb501c0c03 Author: James Cherry <cherry@parallaxsw.com> Date: Sat Jan 18 09:51:47 2025 -0700 verilog reader names Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 47307b1d8a61abab91195969be8708a7646bbfe3 Author: James Cherry <cherry@parallaxsw.com> Date: Sat Jan 18 09:21:30 2025 -0700 valgrind Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 0de49ba76cb0d1e06f93868676b73b4cd2ee609e Author: James Cherry <cherry@parallaxsw.com> Date: Wed Jan 15 16:50:56 2025 -0700 suppress yynerrs_ warning Signed-off-by: James Cherry <cherry@parallaxsw.com> commit dbe2ba18d99d850ba5ebb1c75a4165bfff2df96d Author: James Cherry <cherry@parallaxsw.com> Date: Wed Jan 15 16:37:14 2025 -0700 cmake bison target names Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 388be6c2aa69b839a53be78bafab420216554944 Author: James Cherry <cherry@parallaxsw.com> Date: Tue Jan 14 08:57:02 2025 -0700 network link func rm repor, network args Signed-off-by: James Cherry <cherry@parallaxsw.com> commit f50d5b23aff126e7d396a555f06eae5597ec1354 Author: James Cherry <cherry@parallaxsw.com> Date: Mon Jan 13 19:48:44 2025 -0700 verilog reader use gzstream Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 8a0c8ce09087cceef36824de3656b5c7cea9f0f0 Author: James Cherry <cherry@parallaxsw.com> Date: Mon Jan 13 18:02:40 2025 -0700 VerilogScanner::error Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 413093e46e523d90e45a4c56ecaa25e4457998aa Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 10 18:27:53 2025 -0700 rm verilog_network Signed-off-by: James Cherry <cherry@parallaxsw.com> commit aef8358a8f44e556a3814e9ddd205e179bf2b3d7 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 10 18:01:09 2025 -0700 rm verilog_reader except link Signed-off-by: James Cherry <cherry@parallaxsw.com> commit cfc34aa41a5fe1942867c73061ae483e36c74f54 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 10 17:04:33 2025 -0700 verilog reader rm line_ Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 62dd98b7cb800acc61192b0f326d4a3278e1a72d Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 10 16:26:09 2025 -0700 verilog parse use location Signed-off-by: James Cherry <cherry@parallaxsw.com> commit ad6c26984526312134d03c0f39d3fcd63617efa4 Author: James Cherry <cherry@parallaxsw.com> Date: Sat Jan 4 11:04:16 2025 -0800 verilog parse error Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 1bff12c8c49c847de015dd32042cccf7952a2060 Author: James Cherry <cherry@parallaxsw.com> Date: Sat Jan 4 08:00:40 2025 -0800 attribute -> Attr Signed-off-by: James Cherry <cherry@parallaxsw.com> commit e8372df18a5374b2c9ca8f094a244d06c59a9f4e Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 3 17:57:21 2025 -0800 verilog rm string_buf Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 785818f10108f689b4ea978a13d0131546f1a4e5 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 3 16:10:10 2025 -0800 verilog parse use std::string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 95265fc4ad30325f115eb69d10c77afe3f265701 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 3 15:44:31 2025 -0800 verilog parser const char * -> string* Signed-off-by: James Cherry <cherry@parallaxsw.com> commit b80db6d98057363f90a9497b10073f84c2e7cc3d Author: James Cherry <cherry@parallaxsw.com> Date: Thu Jan 2 08:31:06 2025 -0800 bison warning Signed-off-by: James Cherry <cherry@parallaxsw.com> commit df3b61bf7d590c241ee513eacfb1c7dff2a450d8 Author: James Cherry <cherry@parallaxsw.com> Date: Wed Jan 1 17:04:17 2025 -0800 verilog parse works Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 8b5a8fbb7042ceb58fbb24b836664a1da6028c45 Author: James Cherry <cherry@parallaxsw.com> Date: Wed Jan 1 16:15:44 2025 -0800 rm VerilogParser.hh Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 07bc0cc9c160e9dbe705f4c359973cc35342e05e Author: James Cherry <cherry@parallaxsw.com> Date: Wed Jan 1 15:59:57 2025 -0800 verlog parse compiles Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 8d32f5f3d5e6a252cdb2020c62742f01b1c66f63 Author: James Cherry <cherry@parallaxsw.com> Date: Mon Dec 30 09:14:13 2024 -0800 verilog parser Signed-off-by: James Cherry <cherry@parallaxsw.com> Signed-off-by: James Cherry <cherry@parallaxsw.com>
2025-01-22 02:35:21 +01:00
string port_vname = portVerilogName(network_->name(port));
fprintf(stream_, ".%s(%s)",
rm tmp string uses commit 2d0a4f8e9a8b46faa2ba91e1be636c3c3ad95a7f Author: James Cherry <cherry@parallaxsw.com> Date: Sat Mar 25 21:25:37 2023 -0700 leaks Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 5514910a91707d615bac0bbed3a29f579eca8de2 Author: James Cherry <cherry@parallaxsw.com> Date: Sat Mar 25 18:21:54 2023 -0700 foo Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 076a51d5816444e883232933c2ded7309291d0bc Author: James Cherry <cherry@parallaxsw.com> Date: Sat Mar 25 16:38:42 2023 -0700 parse bus string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 2b80e563cbbb6563a6b716431f391bbb6639f816 Author: James Cherry <cherry@parallaxsw.com> Date: Sat Mar 25 15:57:05 2023 -0700 rm tmp string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 9e4f2308658232d0b1ee9efcd948bb19ae5dd30f Author: James Cherry <cherry@parallaxsw.com> Date: Sat Mar 25 14:37:35 2023 -0700 rm tmp string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit ebad3afd49b08e7194452dd082c3c7c05767f875 Author: James Cherry <cherry@parallaxsw.com> Date: Sat Mar 25 10:59:11 2023 -0700 rm tmp string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 69647913932312a04ca06e7a04cca17ed50d4daf Author: James Cherry <cherry@parallaxsw.com> Date: Fri Mar 24 21:02:20 2023 -0700 rm tmp string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 55e67996a7b0651dbb5ee06cb89fe0410648c3c1 Author: James Cherry <cherry@parallaxsw.com> Date: Sat Mar 25 10:42:43 2023 -0700 rm tmp string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 73cee43925c0d32940989c616440b4da18640121 Author: James Cherry <cherry@parallaxsw.com> Date: Sat Mar 25 09:55:17 2023 -0700 rm tmp string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit eba6d1413b8d87a64a90141e5263a56eede1df51 Author: James Cherry <cherry@parallaxsw.com> Date: Sat Mar 25 09:40:16 2023 -0700 rm tmp string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 95d6ed78144512a37fd7c1d3d8a62fc4c8965818 Author: James Cherry <cherry@parallaxsw.com> Date: Sat Mar 25 08:18:46 2023 -0700 rm tmp string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit faf82464d7be7fd6c958a21d401fa48ece4ac341 Author: James Cherry <cherry@parallaxsw.com> Date: Sat Mar 25 07:49:11 2023 -0700 rm tmp string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit cfc9064496cb6f46ec562b104bc7fff2fbc1b32e Author: James Cherry <cherry@parallaxsw.com> Date: Sat Mar 25 07:37:12 2023 -0700 rm tmp string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 057933a6ac356a7541883aa64b5109c7a0e8b8d1 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Mar 24 21:02:20 2023 -0700 rm tmp string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit fdeb6436a72413356a627dd1de1d8cec7fca4c4a Author: James Cherry <cherry@parallaxsw.com> Date: Fri Mar 24 19:53:44 2023 -0700 rm TmpString uses Signed-off-by: James Cherry <cherry@parallaxsw.com> Signed-off-by: James Cherry <cherry@parallaxsw.com>
2023-03-26 15:34:36 +02:00
port_vname.c_str(),
net_vname.c_str());
first_port = false;
}
}
}
void
VerilogWriter::writeInstBusPin(const Instance *inst,
const Port *port,
bool &first_port)
{
if (!first_port)
fprintf(stream_, ",\n ");
fprintf(stream_, ".%s({", network_->name(port));
first_port = false;
bool first_member = true;
// Match the member order of the liberty cell if it exists.
LibertyPort *lib_port = network_->libertyPort(port);
if (lib_port) {
Cell *cell = network_->cell(inst);
LibertyPortMemberIterator member_iter(lib_port);
while (member_iter.hasNext()) {
LibertyPort *lib_member = member_iter.next();
Port *member = network_->findPort(cell, lib_member->name());
writeInstBusPinBit(inst, member, first_member);
2019-06-17 06:08:00 +02:00
}
}
else {
PortMemberIterator *member_iter = network_->memberIterator(port);
while (member_iter->hasNext()) {
Port *member = member_iter->next();
writeInstBusPinBit(inst, member, first_member);
}
delete member_iter;
}
fprintf(stream_, "})");
}
void
VerilogWriter::writeInstBusPinBit(const Instance *inst,
const Port *port,
bool &first_member)
{
Pin *pin = network_->findPin(inst, port);
rm tmp string uses commit 2d0a4f8e9a8b46faa2ba91e1be636c3c3ad95a7f Author: James Cherry <cherry@parallaxsw.com> Date: Sat Mar 25 21:25:37 2023 -0700 leaks Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 5514910a91707d615bac0bbed3a29f579eca8de2 Author: James Cherry <cherry@parallaxsw.com> Date: Sat Mar 25 18:21:54 2023 -0700 foo Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 076a51d5816444e883232933c2ded7309291d0bc Author: James Cherry <cherry@parallaxsw.com> Date: Sat Mar 25 16:38:42 2023 -0700 parse bus string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 2b80e563cbbb6563a6b716431f391bbb6639f816 Author: James Cherry <cherry@parallaxsw.com> Date: Sat Mar 25 15:57:05 2023 -0700 rm tmp string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 9e4f2308658232d0b1ee9efcd948bb19ae5dd30f Author: James Cherry <cherry@parallaxsw.com> Date: Sat Mar 25 14:37:35 2023 -0700 rm tmp string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit ebad3afd49b08e7194452dd082c3c7c05767f875 Author: James Cherry <cherry@parallaxsw.com> Date: Sat Mar 25 10:59:11 2023 -0700 rm tmp string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 69647913932312a04ca06e7a04cca17ed50d4daf Author: James Cherry <cherry@parallaxsw.com> Date: Fri Mar 24 21:02:20 2023 -0700 rm tmp string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 55e67996a7b0651dbb5ee06cb89fe0410648c3c1 Author: James Cherry <cherry@parallaxsw.com> Date: Sat Mar 25 10:42:43 2023 -0700 rm tmp string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 73cee43925c0d32940989c616440b4da18640121 Author: James Cherry <cherry@parallaxsw.com> Date: Sat Mar 25 09:55:17 2023 -0700 rm tmp string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit eba6d1413b8d87a64a90141e5263a56eede1df51 Author: James Cherry <cherry@parallaxsw.com> Date: Sat Mar 25 09:40:16 2023 -0700 rm tmp string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 95d6ed78144512a37fd7c1d3d8a62fc4c8965818 Author: James Cherry <cherry@parallaxsw.com> Date: Sat Mar 25 08:18:46 2023 -0700 rm tmp string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit faf82464d7be7fd6c958a21d401fa48ece4ac341 Author: James Cherry <cherry@parallaxsw.com> Date: Sat Mar 25 07:49:11 2023 -0700 rm tmp string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit cfc9064496cb6f46ec562b104bc7fff2fbc1b32e Author: James Cherry <cherry@parallaxsw.com> Date: Sat Mar 25 07:37:12 2023 -0700 rm tmp string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 057933a6ac356a7541883aa64b5109c7a0e8b8d1 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Mar 24 21:02:20 2023 -0700 rm tmp string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit fdeb6436a72413356a627dd1de1d8cec7fca4c4a Author: James Cherry <cherry@parallaxsw.com> Date: Fri Mar 24 19:53:44 2023 -0700 rm TmpString uses Signed-off-by: James Cherry <cherry@parallaxsw.com> Signed-off-by: James Cherry <cherry@parallaxsw.com>
2023-03-26 15:34:36 +02:00
Net *net = pin ? network_->net(pin) : nullptr;
string net_name;
if (net)
net_name = network_->name(net);
else
// There is no verilog syntax to "skip" a bit in the concatentation.
rm tmp string uses commit 2d0a4f8e9a8b46faa2ba91e1be636c3c3ad95a7f Author: James Cherry <cherry@parallaxsw.com> Date: Sat Mar 25 21:25:37 2023 -0700 leaks Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 5514910a91707d615bac0bbed3a29f579eca8de2 Author: James Cherry <cherry@parallaxsw.com> Date: Sat Mar 25 18:21:54 2023 -0700 foo Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 076a51d5816444e883232933c2ded7309291d0bc Author: James Cherry <cherry@parallaxsw.com> Date: Sat Mar 25 16:38:42 2023 -0700 parse bus string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 2b80e563cbbb6563a6b716431f391bbb6639f816 Author: James Cherry <cherry@parallaxsw.com> Date: Sat Mar 25 15:57:05 2023 -0700 rm tmp string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 9e4f2308658232d0b1ee9efcd948bb19ae5dd30f Author: James Cherry <cherry@parallaxsw.com> Date: Sat Mar 25 14:37:35 2023 -0700 rm tmp string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit ebad3afd49b08e7194452dd082c3c7c05767f875 Author: James Cherry <cherry@parallaxsw.com> Date: Sat Mar 25 10:59:11 2023 -0700 rm tmp string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 69647913932312a04ca06e7a04cca17ed50d4daf Author: James Cherry <cherry@parallaxsw.com> Date: Fri Mar 24 21:02:20 2023 -0700 rm tmp string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 55e67996a7b0651dbb5ee06cb89fe0410648c3c1 Author: James Cherry <cherry@parallaxsw.com> Date: Sat Mar 25 10:42:43 2023 -0700 rm tmp string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 73cee43925c0d32940989c616440b4da18640121 Author: James Cherry <cherry@parallaxsw.com> Date: Sat Mar 25 09:55:17 2023 -0700 rm tmp string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit eba6d1413b8d87a64a90141e5263a56eede1df51 Author: James Cherry <cherry@parallaxsw.com> Date: Sat Mar 25 09:40:16 2023 -0700 rm tmp string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 95d6ed78144512a37fd7c1d3d8a62fc4c8965818 Author: James Cherry <cherry@parallaxsw.com> Date: Sat Mar 25 08:18:46 2023 -0700 rm tmp string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit faf82464d7be7fd6c958a21d401fa48ece4ac341 Author: James Cherry <cherry@parallaxsw.com> Date: Sat Mar 25 07:49:11 2023 -0700 rm tmp string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit cfc9064496cb6f46ec562b104bc7fff2fbc1b32e Author: James Cherry <cherry@parallaxsw.com> Date: Sat Mar 25 07:37:12 2023 -0700 rm tmp string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 057933a6ac356a7541883aa64b5109c7a0e8b8d1 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Mar 24 21:02:20 2023 -0700 rm tmp string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit fdeb6436a72413356a627dd1de1d8cec7fca4c4a Author: James Cherry <cherry@parallaxsw.com> Date: Fri Mar 24 19:53:44 2023 -0700 rm TmpString uses Signed-off-by: James Cherry <cherry@parallaxsw.com> Signed-off-by: James Cherry <cherry@parallaxsw.com>
2023-03-26 15:34:36 +02:00
stringPrint(net_name, "_NC%d", unconnected_net_index_++);
verilog c++ parser commit 6fac3fee87a3309132b5bdbb731292ecd6410a86 Author: James Cherry <cherry@parallaxsw.com> Date: Tue Jan 21 18:24:18 2025 -0700 Sta use VerilogReader class Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 05d4bce4bcfcfaa07392b237a596a82315b895b3 Author: James Cherry <cherry@parallaxsw.com> Date: Tue Jan 21 15:14:29 2025 -0700 vparse Signed-off-by: James Cherry <cherry@parallaxsw.com> commit e977e89b62191688db5c815131fc389d9ce401c5 Author: James Cherry <cherry@parallaxsw.com> Date: Tue Jan 21 11:30:46 2025 -0700 write_verilog missing port ddcl Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 1742d5d92533559235ea4c42d9ea4bf2d47fb943 Author: James Cherry <cherry@parallaxsw.com> Date: Tue Jan 21 11:23:48 2025 -0700 verilog escape constexpr Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 226a23092312a37503100d49ab74d4fb1e5856ef Author: James Cherry <cherry@parallaxsw.com> Date: Mon Jan 20 09:34:32 2025 -0700 comment Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 63ca4ac5855710427e1ddfc5c2cba8998452d1f0 Author: James Cherry <cherry@parallaxsw.com> Date: Sun Jan 19 19:45:48 2025 -0700 leaks Signed-off-by: James Cherry <cherry@parallaxsw.com> commit c1d38aa0cc983204b1bb3f49944709e74c831be7 Author: James Cherry <cherry@parallaxsw.com> Date: Sun Jan 19 13:26:07 2025 -0700 verilog std::string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 22607b41b9eb9fc71d53214893150afb757a8a56 Author: James Cherry <cherry@parallaxsw.com> Date: Sun Jan 19 11:36:23 2025 -0700 verilog std::string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit dba2bc939fc58d465229cc2d474705151cd50d05 Author: James Cherry <cherry@parallaxsw.com> Date: Sun Jan 19 10:01:14 2025 -0700 verilog std::string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 7d449041a2b75b874038af377d46130b45195a00 Author: James Cherry <cherry@parallaxsw.com> Date: Sun Jan 19 09:18:55 2025 -0700 verilog std::string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit d02495222838f037f25d131ce1b270a6121cf16f Author: James Cherry <cherry@parallaxsw.com> Date: Sun Jan 19 08:53:47 2025 -0700 verilog std::string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 10c5c1040f26c8ebe295d245a641fc913e0ec9f5 Author: James Cherry <cherry@parallaxsw.com> Date: Sat Jan 18 21:50:12 2025 -0700 verlog constant use std::string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 21943c1b63fd36d12de1e5986905e14fe73ce7be Author: James Cherry <cherry@parallaxsw.com> Date: Sat Jan 18 17:41:43 2025 -0700 verilog std::string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit c0232b71ea5137b37d055d83f3da194341aed7a0 Author: James Cherry <cherry@parallaxsw.com> Date: Sat Jan 18 17:12:47 2025 -0700 verilog std::string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit c68fd0329ee35b4877763bcdc82e8fe03a3b16de Author: James Cherry <cherry@parallaxsw.com> Date: Sat Jan 18 16:54:10 2025 -0700 verilog std::string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 3e2dca2140db42acce390ec1a18f29ee4de3c631 Author: James Cherry <cherry@parallaxsw.com> Date: Sat Jan 18 16:07:19 2025 -0700 vparse const Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 210196f9e5a63dfdd5ed45a418388b7ec74ade07 Author: James Cherry <cherry@parallaxsw.com> Date: Sat Jan 18 12:31:13 2025 -0700 verilog parse centos7 Signed-off-by: James Cherry <cherry@parallaxsw.com> commit b8e1882121ac1763e767d299fd929bdfb07c5ffb Author: James Cherry <cherry@parallaxsw.com> Date: Sat Jan 18 10:21:48 2025 -0700 verilog names string* Signed-off-by: James Cherry <cherry@parallaxsw.com> commit c455723c5801d2d7386e7d1d53a0f9fb501c0c03 Author: James Cherry <cherry@parallaxsw.com> Date: Sat Jan 18 09:51:47 2025 -0700 verilog reader names Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 47307b1d8a61abab91195969be8708a7646bbfe3 Author: James Cherry <cherry@parallaxsw.com> Date: Sat Jan 18 09:21:30 2025 -0700 valgrind Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 0de49ba76cb0d1e06f93868676b73b4cd2ee609e Author: James Cherry <cherry@parallaxsw.com> Date: Wed Jan 15 16:50:56 2025 -0700 suppress yynerrs_ warning Signed-off-by: James Cherry <cherry@parallaxsw.com> commit dbe2ba18d99d850ba5ebb1c75a4165bfff2df96d Author: James Cherry <cherry@parallaxsw.com> Date: Wed Jan 15 16:37:14 2025 -0700 cmake bison target names Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 388be6c2aa69b839a53be78bafab420216554944 Author: James Cherry <cherry@parallaxsw.com> Date: Tue Jan 14 08:57:02 2025 -0700 network link func rm repor, network args Signed-off-by: James Cherry <cherry@parallaxsw.com> commit f50d5b23aff126e7d396a555f06eae5597ec1354 Author: James Cherry <cherry@parallaxsw.com> Date: Mon Jan 13 19:48:44 2025 -0700 verilog reader use gzstream Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 8a0c8ce09087cceef36824de3656b5c7cea9f0f0 Author: James Cherry <cherry@parallaxsw.com> Date: Mon Jan 13 18:02:40 2025 -0700 VerilogScanner::error Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 413093e46e523d90e45a4c56ecaa25e4457998aa Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 10 18:27:53 2025 -0700 rm verilog_network Signed-off-by: James Cherry <cherry@parallaxsw.com> commit aef8358a8f44e556a3814e9ddd205e179bf2b3d7 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 10 18:01:09 2025 -0700 rm verilog_reader except link Signed-off-by: James Cherry <cherry@parallaxsw.com> commit cfc34aa41a5fe1942867c73061ae483e36c74f54 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 10 17:04:33 2025 -0700 verilog reader rm line_ Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 62dd98b7cb800acc61192b0f326d4a3278e1a72d Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 10 16:26:09 2025 -0700 verilog parse use location Signed-off-by: James Cherry <cherry@parallaxsw.com> commit ad6c26984526312134d03c0f39d3fcd63617efa4 Author: James Cherry <cherry@parallaxsw.com> Date: Sat Jan 4 11:04:16 2025 -0800 verilog parse error Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 1bff12c8c49c847de015dd32042cccf7952a2060 Author: James Cherry <cherry@parallaxsw.com> Date: Sat Jan 4 08:00:40 2025 -0800 attribute -> Attr Signed-off-by: James Cherry <cherry@parallaxsw.com> commit e8372df18a5374b2c9ca8f094a244d06c59a9f4e Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 3 17:57:21 2025 -0800 verilog rm string_buf Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 785818f10108f689b4ea978a13d0131546f1a4e5 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 3 16:10:10 2025 -0800 verilog parse use std::string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 95265fc4ad30325f115eb69d10c77afe3f265701 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 3 15:44:31 2025 -0800 verilog parser const char * -> string* Signed-off-by: James Cherry <cherry@parallaxsw.com> commit b80db6d98057363f90a9497b10073f84c2e7cc3d Author: James Cherry <cherry@parallaxsw.com> Date: Thu Jan 2 08:31:06 2025 -0800 bison warning Signed-off-by: James Cherry <cherry@parallaxsw.com> commit df3b61bf7d590c241ee513eacfb1c7dff2a450d8 Author: James Cherry <cherry@parallaxsw.com> Date: Wed Jan 1 17:04:17 2025 -0800 verilog parse works Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 8b5a8fbb7042ceb58fbb24b836664a1da6028c45 Author: James Cherry <cherry@parallaxsw.com> Date: Wed Jan 1 16:15:44 2025 -0800 rm VerilogParser.hh Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 07bc0cc9c160e9dbe705f4c359973cc35342e05e Author: James Cherry <cherry@parallaxsw.com> Date: Wed Jan 1 15:59:57 2025 -0800 verlog parse compiles Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 8d32f5f3d5e6a252cdb2020c62742f01b1c66f63 Author: James Cherry <cherry@parallaxsw.com> Date: Mon Dec 30 09:14:13 2024 -0800 verilog parser Signed-off-by: James Cherry <cherry@parallaxsw.com> Signed-off-by: James Cherry <cherry@parallaxsw.com>
2025-01-22 02:35:21 +01:00
string net_vname = netVerilogName(net_name.c_str());
if (!first_member)
fprintf(stream_, ",\n ");
rm tmp string uses commit 2d0a4f8e9a8b46faa2ba91e1be636c3c3ad95a7f Author: James Cherry <cherry@parallaxsw.com> Date: Sat Mar 25 21:25:37 2023 -0700 leaks Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 5514910a91707d615bac0bbed3a29f579eca8de2 Author: James Cherry <cherry@parallaxsw.com> Date: Sat Mar 25 18:21:54 2023 -0700 foo Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 076a51d5816444e883232933c2ded7309291d0bc Author: James Cherry <cherry@parallaxsw.com> Date: Sat Mar 25 16:38:42 2023 -0700 parse bus string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 2b80e563cbbb6563a6b716431f391bbb6639f816 Author: James Cherry <cherry@parallaxsw.com> Date: Sat Mar 25 15:57:05 2023 -0700 rm tmp string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 9e4f2308658232d0b1ee9efcd948bb19ae5dd30f Author: James Cherry <cherry@parallaxsw.com> Date: Sat Mar 25 14:37:35 2023 -0700 rm tmp string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit ebad3afd49b08e7194452dd082c3c7c05767f875 Author: James Cherry <cherry@parallaxsw.com> Date: Sat Mar 25 10:59:11 2023 -0700 rm tmp string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 69647913932312a04ca06e7a04cca17ed50d4daf Author: James Cherry <cherry@parallaxsw.com> Date: Fri Mar 24 21:02:20 2023 -0700 rm tmp string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 55e67996a7b0651dbb5ee06cb89fe0410648c3c1 Author: James Cherry <cherry@parallaxsw.com> Date: Sat Mar 25 10:42:43 2023 -0700 rm tmp string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 73cee43925c0d32940989c616440b4da18640121 Author: James Cherry <cherry@parallaxsw.com> Date: Sat Mar 25 09:55:17 2023 -0700 rm tmp string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit eba6d1413b8d87a64a90141e5263a56eede1df51 Author: James Cherry <cherry@parallaxsw.com> Date: Sat Mar 25 09:40:16 2023 -0700 rm tmp string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 95d6ed78144512a37fd7c1d3d8a62fc4c8965818 Author: James Cherry <cherry@parallaxsw.com> Date: Sat Mar 25 08:18:46 2023 -0700 rm tmp string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit faf82464d7be7fd6c958a21d401fa48ece4ac341 Author: James Cherry <cherry@parallaxsw.com> Date: Sat Mar 25 07:49:11 2023 -0700 rm tmp string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit cfc9064496cb6f46ec562b104bc7fff2fbc1b32e Author: James Cherry <cherry@parallaxsw.com> Date: Sat Mar 25 07:37:12 2023 -0700 rm tmp string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 057933a6ac356a7541883aa64b5109c7a0e8b8d1 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Mar 24 21:02:20 2023 -0700 rm tmp string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit fdeb6436a72413356a627dd1de1d8cec7fca4c4a Author: James Cherry <cherry@parallaxsw.com> Date: Fri Mar 24 19:53:44 2023 -0700 rm TmpString uses Signed-off-by: James Cherry <cherry@parallaxsw.com> Signed-off-by: James Cherry <cherry@parallaxsw.com>
2023-03-26 15:34:36 +02:00
fprintf(stream_, "%s", net_vname.c_str());
first_member = false;
2019-06-17 06:08:00 +02:00
}
// Verilog "ports" are not distinct from nets.
// Use an assign statement to alias the net when it is connected to
// multiple output ports.
void
VerilogWriter::writeAssigns(const Instance *inst)
{
InstancePinIterator *pin_iter = network_->pinIterator(inst);
while (pin_iter->hasNext()) {
Pin *pin = pin_iter->next();
Term *term = network_->term(pin);
if (term) {
Net *net = network_->net(term);
Port *port = network_->port(pin);
if (port
&& (include_pwr_gnd_
|| !(network_->isPower(net) || network_->isGround(net)))
&& (network_->direction(port)->isAnyOutput()
|| (include_pwr_gnd_ && network_->direction(port)->isPowerGround()))
&& !stringEqual(network_->name(port), network_->name(net))) {
// Port name is different from net name.
verilog c++ parser commit 6fac3fee87a3309132b5bdbb731292ecd6410a86 Author: James Cherry <cherry@parallaxsw.com> Date: Tue Jan 21 18:24:18 2025 -0700 Sta use VerilogReader class Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 05d4bce4bcfcfaa07392b237a596a82315b895b3 Author: James Cherry <cherry@parallaxsw.com> Date: Tue Jan 21 15:14:29 2025 -0700 vparse Signed-off-by: James Cherry <cherry@parallaxsw.com> commit e977e89b62191688db5c815131fc389d9ce401c5 Author: James Cherry <cherry@parallaxsw.com> Date: Tue Jan 21 11:30:46 2025 -0700 write_verilog missing port ddcl Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 1742d5d92533559235ea4c42d9ea4bf2d47fb943 Author: James Cherry <cherry@parallaxsw.com> Date: Tue Jan 21 11:23:48 2025 -0700 verilog escape constexpr Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 226a23092312a37503100d49ab74d4fb1e5856ef Author: James Cherry <cherry@parallaxsw.com> Date: Mon Jan 20 09:34:32 2025 -0700 comment Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 63ca4ac5855710427e1ddfc5c2cba8998452d1f0 Author: James Cherry <cherry@parallaxsw.com> Date: Sun Jan 19 19:45:48 2025 -0700 leaks Signed-off-by: James Cherry <cherry@parallaxsw.com> commit c1d38aa0cc983204b1bb3f49944709e74c831be7 Author: James Cherry <cherry@parallaxsw.com> Date: Sun Jan 19 13:26:07 2025 -0700 verilog std::string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 22607b41b9eb9fc71d53214893150afb757a8a56 Author: James Cherry <cherry@parallaxsw.com> Date: Sun Jan 19 11:36:23 2025 -0700 verilog std::string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit dba2bc939fc58d465229cc2d474705151cd50d05 Author: James Cherry <cherry@parallaxsw.com> Date: Sun Jan 19 10:01:14 2025 -0700 verilog std::string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 7d449041a2b75b874038af377d46130b45195a00 Author: James Cherry <cherry@parallaxsw.com> Date: Sun Jan 19 09:18:55 2025 -0700 verilog std::string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit d02495222838f037f25d131ce1b270a6121cf16f Author: James Cherry <cherry@parallaxsw.com> Date: Sun Jan 19 08:53:47 2025 -0700 verilog std::string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 10c5c1040f26c8ebe295d245a641fc913e0ec9f5 Author: James Cherry <cherry@parallaxsw.com> Date: Sat Jan 18 21:50:12 2025 -0700 verlog constant use std::string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 21943c1b63fd36d12de1e5986905e14fe73ce7be Author: James Cherry <cherry@parallaxsw.com> Date: Sat Jan 18 17:41:43 2025 -0700 verilog std::string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit c0232b71ea5137b37d055d83f3da194341aed7a0 Author: James Cherry <cherry@parallaxsw.com> Date: Sat Jan 18 17:12:47 2025 -0700 verilog std::string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit c68fd0329ee35b4877763bcdc82e8fe03a3b16de Author: James Cherry <cherry@parallaxsw.com> Date: Sat Jan 18 16:54:10 2025 -0700 verilog std::string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 3e2dca2140db42acce390ec1a18f29ee4de3c631 Author: James Cherry <cherry@parallaxsw.com> Date: Sat Jan 18 16:07:19 2025 -0700 vparse const Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 210196f9e5a63dfdd5ed45a418388b7ec74ade07 Author: James Cherry <cherry@parallaxsw.com> Date: Sat Jan 18 12:31:13 2025 -0700 verilog parse centos7 Signed-off-by: James Cherry <cherry@parallaxsw.com> commit b8e1882121ac1763e767d299fd929bdfb07c5ffb Author: James Cherry <cherry@parallaxsw.com> Date: Sat Jan 18 10:21:48 2025 -0700 verilog names string* Signed-off-by: James Cherry <cherry@parallaxsw.com> commit c455723c5801d2d7386e7d1d53a0f9fb501c0c03 Author: James Cherry <cherry@parallaxsw.com> Date: Sat Jan 18 09:51:47 2025 -0700 verilog reader names Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 47307b1d8a61abab91195969be8708a7646bbfe3 Author: James Cherry <cherry@parallaxsw.com> Date: Sat Jan 18 09:21:30 2025 -0700 valgrind Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 0de49ba76cb0d1e06f93868676b73b4cd2ee609e Author: James Cherry <cherry@parallaxsw.com> Date: Wed Jan 15 16:50:56 2025 -0700 suppress yynerrs_ warning Signed-off-by: James Cherry <cherry@parallaxsw.com> commit dbe2ba18d99d850ba5ebb1c75a4165bfff2df96d Author: James Cherry <cherry@parallaxsw.com> Date: Wed Jan 15 16:37:14 2025 -0700 cmake bison target names Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 388be6c2aa69b839a53be78bafab420216554944 Author: James Cherry <cherry@parallaxsw.com> Date: Tue Jan 14 08:57:02 2025 -0700 network link func rm repor, network args Signed-off-by: James Cherry <cherry@parallaxsw.com> commit f50d5b23aff126e7d396a555f06eae5597ec1354 Author: James Cherry <cherry@parallaxsw.com> Date: Mon Jan 13 19:48:44 2025 -0700 verilog reader use gzstream Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 8a0c8ce09087cceef36824de3656b5c7cea9f0f0 Author: James Cherry <cherry@parallaxsw.com> Date: Mon Jan 13 18:02:40 2025 -0700 VerilogScanner::error Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 413093e46e523d90e45a4c56ecaa25e4457998aa Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 10 18:27:53 2025 -0700 rm verilog_network Signed-off-by: James Cherry <cherry@parallaxsw.com> commit aef8358a8f44e556a3814e9ddd205e179bf2b3d7 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 10 18:01:09 2025 -0700 rm verilog_reader except link Signed-off-by: James Cherry <cherry@parallaxsw.com> commit cfc34aa41a5fe1942867c73061ae483e36c74f54 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 10 17:04:33 2025 -0700 verilog reader rm line_ Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 62dd98b7cb800acc61192b0f326d4a3278e1a72d Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 10 16:26:09 2025 -0700 verilog parse use location Signed-off-by: James Cherry <cherry@parallaxsw.com> commit ad6c26984526312134d03c0f39d3fcd63617efa4 Author: James Cherry <cherry@parallaxsw.com> Date: Sat Jan 4 11:04:16 2025 -0800 verilog parse error Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 1bff12c8c49c847de015dd32042cccf7952a2060 Author: James Cherry <cherry@parallaxsw.com> Date: Sat Jan 4 08:00:40 2025 -0800 attribute -> Attr Signed-off-by: James Cherry <cherry@parallaxsw.com> commit e8372df18a5374b2c9ca8f094a244d06c59a9f4e Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 3 17:57:21 2025 -0800 verilog rm string_buf Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 785818f10108f689b4ea978a13d0131546f1a4e5 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 3 16:10:10 2025 -0800 verilog parse use std::string Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 95265fc4ad30325f115eb69d10c77afe3f265701 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 3 15:44:31 2025 -0800 verilog parser const char * -> string* Signed-off-by: James Cherry <cherry@parallaxsw.com> commit b80db6d98057363f90a9497b10073f84c2e7cc3d Author: James Cherry <cherry@parallaxsw.com> Date: Thu Jan 2 08:31:06 2025 -0800 bison warning Signed-off-by: James Cherry <cherry@parallaxsw.com> commit df3b61bf7d590c241ee513eacfb1c7dff2a450d8 Author: James Cherry <cherry@parallaxsw.com> Date: Wed Jan 1 17:04:17 2025 -0800 verilog parse works Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 8b5a8fbb7042ceb58fbb24b836664a1da6028c45 Author: James Cherry <cherry@parallaxsw.com> Date: Wed Jan 1 16:15:44 2025 -0800 rm VerilogParser.hh Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 07bc0cc9c160e9dbe705f4c359973cc35342e05e Author: James Cherry <cherry@parallaxsw.com> Date: Wed Jan 1 15:59:57 2025 -0800 verlog parse compiles Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 8d32f5f3d5e6a252cdb2020c62742f01b1c66f63 Author: James Cherry <cherry@parallaxsw.com> Date: Mon Dec 30 09:14:13 2024 -0800 verilog parser Signed-off-by: James Cherry <cherry@parallaxsw.com> Signed-off-by: James Cherry <cherry@parallaxsw.com>
2025-01-22 02:35:21 +01:00
string port_vname = netVerilogName(network_->name(port));
string net_vname = netVerilogName(network_->name(net));
fprintf(stream_, " assign %s = %s;\n",
port_vname.c_str(),
net_vname.c_str());
}
}
}
delete pin_iter;
}
////////////////////////////////////////////////////////////////
int
VerilogWriter::findUnconnectedNetCount(const Instance *inst)
{
int nc_count = 0;
InstanceChildIterator *child_iter = network_->childIterator(inst);
while (child_iter->hasNext()) {
Instance *child = child_iter->next();
nc_count += findChildNCcount(child);
}
delete child_iter;
return nc_count;
}
int
VerilogWriter::findChildNCcount(const Instance *child)
{
int nc_count = 0;
Cell *child_cell = network_->cell(child);
if (!remove_cells_.hasKey(child_cell)) {
CellPortIterator *port_iter = network_->portIterator(child_cell);
while (port_iter->hasNext()) {
Port *port = port_iter->next();
if (network_->hasMembers(port))
nc_count += findPortNCcount(child, port);
}
Network::id for maps/sets commit be70d30ae05665021254b0d7e69fb8d2f0a82890 Author: James Cherry <cherry@parallaxsw.com> Date: Tue Jan 17 17:04:49 2023 -0700 cmp Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 4d4ef96948afe3d6a00c4521aeb5bc74274f5737 Author: James Cherry <cherry@parallaxsw.com> Date: Tue Jan 17 16:08:50 2023 -0700 rvo, const Signed-off-by: James Cherry <cherry@parallaxsw.com> commit bb584e4264af2bea867b17d07e8d38c0e9eb0025 Author: James Cherry <cherry@parallaxsw.com> Date: Tue Jan 17 15:05:00 2023 -0700 const Signed-off-by: James Cherry <cherry@parallaxsw.com> commit a08fe558bca6b769b2728882258bd85aed990a27 Author: James Cherry <cherry@parallaxsw.com> Date: Tue Jan 17 14:57:33 2023 -0700 LibertyPortPair no ptrs Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 4d3bd60c109d1ce9d0589d746f4968fa7bebd90d Author: James Cherry <cherry@parallaxsw.com> Date: Tue Jan 17 14:13:07 2023 -0700 cleanup Signed-off-by: James Cherry <cherry@parallaxsw.com> commit dc25ff77771cfbe26f9318bad2b3c45879614783 Author: James Cherry <cherry@parallaxsw.com> Date: Tue Jan 17 14:06:13 2023 -0700 const Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 06e81586ce11a0cc06948ed78fef99353077d69e Author: James Cherry <cherry@parallaxsw.com> Date: Tue Jan 17 14:01:10 2023 -0700 sortByName Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 9d8592aff5b246f83e47e1b94490e3cef8d8e119 Author: James Cherry <cherry@parallaxsw.com> Date: Tue Jan 17 11:57:17 2023 -0700 sort pred Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 462a8e14df8b561ddfc842addc62c4b8435b6347 Author: James Cherry <cherry@parallaxsw.com> Date: Tue Jan 17 11:09:57 2023 -0700 const Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 69f71505b684e88b22d395510429497e87bf1015 Author: James Cherry <cherry@parallaxsw.com> Date: Tue Jan 17 10:45:14 2023 -0700 flush ConstPortSeq Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 6429d578b78eac3fe7e99fcd67a120789932b2eb Author: James Cherry <cherry@parallaxsw.com> Date: Tue Jan 17 09:19:15 2023 -0700 rm ConstNetSet Signed-off-by: James Cherry <cherry@parallaxsw.com> commit f247930b16e40560b957a36af68947249ed1ef04 Author: James Cherry <cherry@parallaxsw.com> Date: Tue Jan 17 08:50:50 2023 -0700 sortPathNames Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 4ca2b0e0af7252c7bcbc65cf141d0ce40634d329 Author: James Cherry <cherry@parallaxsw.com> Date: Mon Jan 16 10:14:05 2023 -0700 const Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 3d18640d2ebc4aae3098c7e7242a554fcb64fd42 Author: James Cherry <cherry@parallaxsw.com> Date: Mon Jan 16 09:41:27 2023 -0700 set_input/ouput_delay -reference_pin Signed-off-by: James Cherry <cherry@parallaxsw.com> commit d4a0854dd2102f46f96a94fb9eb8749f1593a85f Author: James Cherry <cherry@parallaxsw.com> Date: Mon Jan 16 09:13:46 2023 -0700 PinPairSet no malloc Signed-off-by: James Cherry <cherry@parallaxsw.com> commit a6f1583fc6a856c5ecc0dcb15a1d8b1f61e30718 Author: James Cherry <cherry@parallaxsw.com> Date: Mon Jan 16 08:53:33 2023 -0700 no malloc for EdgePins Signed-off-by: James Cherry <cherry@parallaxsw.com> commit c8e4b92e8b619109d6aa3c141c720646067ccb4b Author: James Cherry <cherry@parallaxsw.com> Date: Mon Jan 16 06:31:08 2023 +0000 leak commit abab99e0fc3e466d914f6c1705aa08cdc204df51 Author: James Cherry <cherry@parallaxsw.com> Date: Mon Jan 16 06:07:36 2023 +0000 leaks commit d1913b554bb6e98b89673d80d2295f552eb4ffca Author: James Cherry <cherry@parallaxsw.com> Date: Sun Jan 15 19:48:39 2023 -0700 LibertyCell::checkCornerCell Signed-off-by: James Cherry <cherry@parallaxsw.com> commit bcc172237d48deed647374f9592bac70bd2d5425 Author: James Cherry <cherry@parallaxsw.com> Date: Sun Jan 15 18:19:47 2023 -0700 rvo Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 8ef9800b87f5e5548055a13afc21397f28a6bcf7 Author: James Cherry <cherry@parallaxsw.com> Date: Sun Jan 15 18:07:46 2023 -0700 sdc net id Signed-off-by: James Cherry <cherry@parallaxsw.com> commit d7235abed04ced4e2d84e91bf9968e621268567d Author: James Cherry <cherry@parallaxsw.com> Date: Sun Jan 15 16:00:27 2023 -0700 range iter Signed-off-by: James Cherry <cherry@parallaxsw.com> commit a22f91a3c54c644574339d1126821d9bc8045bd6 Author: James Cherry <cherry@parallaxsw.com> Date: Sun Jan 15 15:52:50 2023 -0700 range iter Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 762615ce3de91d950eeaaa4680549a45b13e0e0a Author: James Cherry <cherry@parallaxsw.com> Date: Sun Jan 15 15:42:19 2023 -0700 range iter Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 7e0c531613d343d23f064c24873bf5a498f6f4ce Author: James Cherry <cherry@parallaxsw.com> Date: Sun Jan 15 12:26:49 2023 -0700 rm removeLoadCaps, removeNetLoadCaps Signed-off-by: James Cherry <cherry@parallaxsw.com> commit f2e88c6082e2d4605e9849348008bf4065401fc8 Author: James Cherry <cherry@parallaxsw.com> Date: Sun Jan 15 12:21:03 2023 -0700 sdc rm map ptrs Signed-off-by: James Cherry <cherry@parallaxsw.com> commit b5939666188c0b94dfe957e22bbd8a92f4786125 Author: James Cherry <cherry@parallaxsw.com> Date: Sun Jan 15 11:36:16 2023 -0700 sdc rm map ptrs Signed-off-by: James Cherry <cherry@parallaxsw.com> commit a435081bafe10260743319f53a59cbe2ed0388b7 Author: James Cherry <cherry@parallaxsw.com> Date: Sun Jan 15 08:43:37 2023 -0700 sdc rm map ptrs Signed-off-by: James Cherry <cherry@parallaxsw.com> commit acfb247559db7b726d47f203613488df0f7add53 Author: James Cherry <cherry@parallaxsw.com> Date: Sun Jan 15 08:38:07 2023 -0700 sdc rm map ptrs Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 7541b71da92ea15085615988a1e6ea1d4d53d8d6 Author: James Cherry <cherry@parallaxsw.com> Date: Sun Jan 15 08:00:55 2023 -0700 sdc rm map ptrs Signed-off-by: James Cherry <cherry@parallaxsw.com> commit d033210132656ea68fa834228575b9def1d02d90 Author: James Cherry <cherry@parallaxsw.com> Date: Sun Jan 15 07:52:03 2023 -0700 sdc rm map ptrs Signed-off-by: James Cherry <cherry@parallaxsw.com> commit ca6e9ecb7821b83ab024c4fee6df8f7fc8fc2ce2 Author: James Cherry <cherry@parallaxsw.com> Date: Sun Jan 15 07:38:12 2023 -0700 instance_pvt_maps_ Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 631e4209b596386f5818045d521784db5239f58d Author: James Cherry <cherry@parallaxsw.com> Date: Sun Jan 15 07:26:42 2023 -0700 rm GroupPathIterator Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 059c32afa87617fff530c9afa1ef8005a136739d Author: James Cherry <cherry@parallaxsw.com> Date: Sat Jan 14 20:07:44 2023 -0700 rm ClockIterator Signed-off-by: James Cherry <cherry@parallaxsw.com> commit c65fe873a6a6696220bbb44c4ecac87d5ca978ac Author: James Cherry <cherry@parallaxsw.com> Date: Sat Jan 14 19:45:58 2023 -0700 rvo Signed-off-by: James Cherry <cherry@parallaxsw.com> commit ce15c9a0cc78915acddc2f03749573d989ae96d6 Author: James Cherry <cherry@parallaxsw.com> Date: Sun Jan 15 01:04:03 2023 +0000 leaks commit f97955a0c7e70b65ceb3f697ff47c0524a9b3cd4 Author: James Cherry <cherry@parallaxsw.com> Date: Sat Jan 14 01:17:58 2023 +0000 leaks commit 7cdd65684adeb14e02827f5d93e7fab3b19af5dd Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 13 16:07:47 2023 -0700 leaks Signed-off-by: James Cherry <cherry@parallaxsw.com> commit ee97c7e50394a3927458e7ef09c5dbeb27719d15 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 13 11:52:48 2023 -0700 swig rm Tmp collections Signed-off-by: James Cherry <cherry@parallaxsw.com> commit c49935da8704e41459280971b7645fccd97e3d13 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 13 11:18:36 2023 -0700 swig rm Tmp types Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 4320b00ce700914843006f592126cd8cc1c4657a Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 13 10:55:10 2023 -0700 swig rm TmpPinSet, TmpPinSeq Signed-off-by: James Cherry <cherry@parallaxsw.com> commit ff6004910980c9b09b41f63a553a4481404cc539 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 13 10:45:06 2023 -0700 swig rm Tmp collections Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 9a5bf5c1a3e5a6d2996b3ab327fa2f3015f2ff20 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 13 10:15:29 2023 -0700 swig rm one TmpPinSet Signed-off-by: James Cherry <cherry@parallaxsw.com> commit f441116b56e23849485b2393b30e7086c33165a8 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 13 09:16:56 2023 -0700 leak Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 050b08df8618340b568d9cd41fd3d5f052e2c680 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 13 09:10:53 2023 -0700 leak Signed-off-by: James Cherry <cherry@parallaxsw.com> commit be8c17f3a715ab53140748dc1d94698209965cf9 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 13 08:59:06 2023 -0700 leak Signed-off-by: James Cherry <cherry@parallaxsw.com> commit e43b82f8fb52eaeda90e3c7e76cf350ae6735ebd Author: James Cherry <cherry@parallaxsw.com> Date: Thu Jan 12 18:57:49 2023 -0700 range iter Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 8db56209de7805ac2574fd2f76170bf68afd156d Author: James Cherry <cherry@parallaxsw.com> Date: Thu Jan 12 18:08:54 2023 -0700 GroupPathSet net id Signed-off-by: James Cherry <cherry@parallaxsw.com> commit cb7917f9827c2ea3afebd735cd4508405a0d77d4 Author: James Cherry <cherry@parallaxsw.com> Date: Thu Jan 12 12:00:15 2023 -0700 DataCheckLess net id Signed-off-by: James Cherry <cherry@parallaxsw.com> commit d9da3c62d7a76699c6ad62cebb1f5c39f89722fa Author: James Cherry <cherry@parallaxsw.com> Date: Thu Jan 12 11:42:27 2023 -0700 rm hashPtr uses Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 5bbea162bb1e023aba813598c7992c740ddf9d0b Author: James Cherry <cherry@parallaxsw.com> Date: Thu Jan 12 11:30:12 2023 -0700 EdgePins has use net id Signed-off-by: James Cherry <cherry@parallaxsw.com> commit df38405e2ebaabdd7bbf99f3b19d78b25bd95720 Author: James Cherry <cherry@parallaxsw.com> Date: Thu Jan 12 09:51:38 2023 -0700 ExceptionPath hash use net id Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 9a6dcfa54c54c9f50b14248a2449c70c20a0d977 Author: James Cherry <cherry@parallaxsw.com> Date: Thu Jan 12 08:56:49 2023 -0700 ClockInsertion, ClockLatency net id Signed-off-by: James Cherry <cherry@parallaxsw.com> commit dbb6dc0b8c93812458df31e93f08e0dbd74e8105 Author: James Cherry <cherry@parallaxsw.com> Date: Thu Jan 12 08:34:03 2023 -0700 ExceptionStateSet obj id Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 70b8721c48ec0816289ee09b664c332ee095875f Author: James Cherry <cherry@parallaxsw.com> Date: Thu Jan 12 08:14:37 2023 -0700 ClockGroups cmp Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 4c6c4ca191a99cd8541e106fec3202ee14968f39 Author: James Cherry <cherry@parallaxsw.com> Date: Thu Jan 12 07:38:17 2023 -0700 ClockGroup typedef to ClockSet Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 66f425315e16deee5f00b05c0a505766e7afbf01 Author: James Cherry <cherry@parallaxsw.com> Date: Wed Jan 11 20:32:38 2023 -0700 set cmps Signed-off-by: James Cherry <cherry@parallaxsw.com> commit a94866c7828af5b6714e3e4fffc13bdaf5155c0e Author: James Cherry <cherry@parallaxsw.com> Date: Wed Jan 11 19:08:09 2023 -0700 net use id Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 6348320908f42ebb5262117182e13d0024f65537 Author: James Cherry <cherry@parallaxsw.com> Date: Wed Jan 11 11:52:13 2023 -0700 exception id cmp Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 0edfca41b6d6408ac17f8dfe10e697c55146c1ef Author: James Cherry <cherry@parallaxsw.com> Date: Wed Jan 11 10:47:02 2023 -0700 range iter Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 44ad77985da9f0b9e7f4780e3f233c8d94fa7db7 Author: James Cherry <cherry@parallaxsw.com> Date: Wed Jan 11 08:27:58 2023 -0700 non-ptr set cmp Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 36de7d88c3fa683465604a9e16b2fc1f6bc5fdd0 Author: James Cherry <cherry@parallaxsw.com> Date: Wed Jan 11 08:00:54 2023 -0700 range iteration Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 4a31a2c8d9bdae58b09af8c05a64702ea3ac6c15 Author: James Cherry <cherry@parallaxsw.com> Date: Tue Jan 10 16:43:54 2023 -0700 tcl types Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 056a7447b494a4c8ecc9764650d78a5bed3d87e8 Author: James Cherry <cherry@parallaxsw.com> Date: Tue Jan 10 16:10:36 2023 -0700 tcl types Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 97239554c7625ba50ee729260f08eda7dec02365 Author: James Cherry <cherry@parallaxsw.com> Date: Tue Jan 10 13:10:42 2023 -0700 use RVO Signed-off-by: James Cherry <cherry@parallaxsw.com> commit c3247d8937d483102e3e1f2b69d7ac1d331ba9d4 Author: James Cherry <cherry@parallaxsw.com> Date: Mon Jan 9 22:41:20 2023 -0700 swig template seq's Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 5431c06feb256adb46858819fcf5d513cfa6b5ec Author: James Cherry <cherry@parallaxsw.com> Date: Mon Jan 9 20:50:24 2023 -0700 swig set in template Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 592ad641bf01d3beb862314a0d8986f66e258642 Author: James Cherry <cherry@parallaxsw.com> Date: Mon Jan 9 17:27:25 2023 -0700 network return containers Signed-off-by: James Cherry <cherry@parallaxsw.com> commit c95f8b77e0d6bd5ffa5ba8102413c70883c756e1 Author: James Cherry <cherry@parallaxsw.com> Date: Mon Jan 9 12:15:37 2023 -0700 PinSeq const Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 702e7f9ba2f901066a38f32e67b35602b6c7bbdf Author: James Cherry <cherry@parallaxsw.com> Date: Mon Jan 9 12:02:29 2023 -0700 InstanceSeq const Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 44fc25ba4a15e4ae570d74af27c9435872a126e0 Author: James Cherry <cherry@parallaxsw.com> Date: Mon Jan 9 12:01:45 2023 -0700 NetSeq const Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 03b2725c81f5d52c33c875b55056c11d482144f1 Author: James Cherry <cherry@parallaxsw.com> Date: Mon Jan 9 11:33:18 2023 -0700 rm PortPair Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 3fb82a7344dc053171c9883a113764ba691ab827 Author: James Cherry <cherry@parallaxsw.com> Date: Mon Jan 9 11:20:53 2023 -0700 PinSet id Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 3dd31f027e15d40d62a11d0a88ef2a115f01fb73 Author: James Cherry <cherry@parallaxsw.com> Date: Sun Jan 8 15:03:33 2023 -0700 InstanceSet id Signed-off-by: James Cherry <cherry@parallaxsw.com> commit a91dea5cc0af3bede36b3faed13adb05239ff907 Author: James Cherry <cherry@parallaxsw.com> Date: Sun Jan 8 11:40:15 2023 -0700 NetSet id Signed-off-by: James Cherry <cherry@parallaxsw.com> commit b91e4b6410134eccae7969ddcfb0b27933b2e746 Author: James Cherry <cherry@parallaxsw.com> Date: Sun Jan 8 10:44:47 2023 -0700 CellSet, PortSet id Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 6f891f77fae5a6b19c1454a1a4b4e3dfae0b5c50 Author: James Cherry <cherry@parallaxsw.com> Date: Sun Jan 8 10:29:25 2023 -0700 network object sets Signed-off-by: James Cherry <cherry@parallaxsw.com> commit eb8c627a57ecc6e7c5846a01d62b090ff91c08bf Author: James Cherry <cherry@parallaxsw.com> Date: Sun Jan 8 10:09:00 2023 -0700 PinSet1 Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 8e864ecbdf87000fbb3c3097c39f06173c941e35 Author: James Cherry <cherry@parallaxsw.com> Date: Sat Jan 7 17:13:03 2023 -0700 concrete network object id Signed-off-by: James Cherry <cherry@parallaxsw.com> Signed-off-by: James Cherry <cherry@parallaxsw.com>
2023-01-19 19:23:45 +01:00
delete port_iter;
}
return nc_count;
}
int
VerilogWriter::findPortNCcount(const Instance *inst,
const Port *port)
{
int nc_count = 0;
LibertyPort *lib_port = network_->libertyPort(port);
if (lib_port) {
Cell *cell = network_->cell(inst);
LibertyPortMemberIterator member_iter(lib_port);
while (member_iter.hasNext()) {
LibertyPort *lib_member = member_iter.next();
Port *member = network_->findPort(cell, lib_member->name());
Pin *pin = network_->findPin(inst, member);
if (pin == nullptr
|| network_->net(pin) == nullptr)
nc_count++;
}
}
return nc_count;
}
2019-06-17 06:08:00 +02:00
} // namespace