Add batch 1 (YosysHQ_picorv32, alexforencich_verilog-ethernet, The-OpenROAD-Project_OpenROAD, darklife_darkriscv, corundum_corundum)
f61bac1 verified Download The-OpenROAD-Project_OpenROAD/src/odb/test/cpp/TestAbstractLef.cc from SAIFIINDUSTRIES/verilog_data-1: direct link, hf CLI and curl.
- Browser
- Download file 1.96 kB
-
https://huggingface.co/datasets/SAIFIINDUSTRIES/verilog_data-1/resolve/main/The-OpenROAD-Project_OpenROAD/src/odb/test/cpp/TestAbstractLef.cc
- Command line
-
hf download hf://datasets/SAIFIINDUSTRIES/verilog_data-1/The-OpenROAD-Project_OpenROAD/src/odb/test/cpp/TestAbstractLef.cc
-
curl -L -o TestAbstractLef.cc https://huggingface.co/datasets/SAIFIINDUSTRIES/verilog_data-1/resolve/main/The-OpenROAD-Project_OpenROAD/src/odb/test/cpp/TestAbstractLef.cc
1.96 kB
| // SPDX-License-Identifier: BSD-3-Clause | |
| // Copyright (c) 2023-2025, The OpenROAD Authors | |
| namespace odb { | |
| using ::testing::HasSubstr; | |
| using tst::Sky130Fixture; | |
| TEST_F(Sky130Fixture, AbstractLefWriterMapsTieOffToSignal) | |
| { | |
| // Arrange | |
| std::ostringstream os; | |
| odb::lefout lefout(&logger_, os); | |
| odb::dbNet* tieoff_net = odb::dbNet::create(block_, "tieoff_net"); | |
| tieoff_net->setSigType(odb::dbSigType::TIEOFF); | |
| odb::dbBTerm::create(tieoff_net, "tieoff_pin"); | |
| // Act | |
| lefout.writeAbstractLef(block_); | |
| std::string result = os.str(); | |
| // Assert | |
| // Not Found | |
| EXPECT_THAT(result, Not(HasSubstr("TIEOFF"))); | |
| // Found | |
| EXPECT_THAT(result, HasSubstr("SIGNAL")); | |
| } | |
| TEST_F(Sky130Fixture, AbstractLefWriterMapsScanToSignal) | |
| { | |
| // Arrange | |
| std::ostringstream os; | |
| odb::lefout lefout(&logger_, os); | |
| odb::dbNet* tieoff_net = odb::dbNet::create(block_, "scan_net"); | |
| tieoff_net->setSigType(odb::dbSigType::SCAN); | |
| odb::dbBTerm::create(tieoff_net, "scan_pin"); | |
| // Act | |
| lefout.writeAbstractLef(block_); | |
| std::string result = os.str(); | |
| // Assert | |
| // Not Found | |
| EXPECT_THAT(result, Not(HasSubstr("SCAN"))); | |
| // Found | |
| EXPECT_THAT(result, HasSubstr("SIGNAL")); | |
| } | |
| TEST_F(Sky130Fixture, AbstractLefWriterMapsResetToSignal) | |
| { | |
| // Arrange | |
| std::ostringstream os; | |
| odb::lefout lefout(&logger_, os); | |
| odb::dbNet* tieoff_net = odb::dbNet::create(block_, "reset_net"); | |
| tieoff_net->setSigType(odb::dbSigType::RESET); | |
| odb::dbBTerm::create(tieoff_net, "reset_pin"); | |
| // Act | |
| lefout.writeAbstractLef(block_); | |
| std::string result = os.str(); | |
| // Assert | |
| // Not Found | |
| EXPECT_THAT(result, Not(HasSubstr("RESET"))); | |
| // Found | |
| EXPECT_THAT(result, HasSubstr("SIGNAL")); | |
| } | |
| } // namespace odb | |