Skip to content

Commit

Permalink
Merge pull request #172 from rseac/master
Browse files Browse the repository at this point in the history
Update test to have more than one argument in sensitivity list.
  • Loading branch information
rseac authored Dec 28, 2020
2 parents a13dedd + d933184 commit 750d6d9
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions tests/parsing/simple-parsing.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ SC_MODULE( test ){
int x{2};
SC_METHOD(entry_function_1);
sensitive << clk.pos();
sensitive << out_array_port[x -1];
sensitive << out_array_port[x -1] << data[x + 2];
}
};
Expand Down Expand Up @@ -180,21 +180,19 @@ int sc_main(int argc, char *argv[]) {
REQUIRE(process_map.size() == 1);

for (auto const &proc : process_map) {
llvm::outs() << "@@@@@@@@@@@@@@@@@@************************* LOOKING FOR "
"ENTRYFUNC\n";
auto entry_func{proc.second->getEntryFunction()};
if (entry_func) {
llvm::outs() << "@@@@@@@@@@@@@@@@@@************************* INSIDE "
"LOOKING FOR ENTRYFUNC\n";
auto sense_map{entry_func->getSenseMap()};
REQUIRE(sense_map.size() == 2);
REQUIRE(sense_map.size() == 3);

int check{2};
int check{3};
for (auto const &sense : sense_map) {
llvm::outs() << "@@@@@@@@@@@@@@@@@@************************* : "
<< sense.first << "\n";
if ((sense.first == "entry_function_1_handle__clkpos") ||
(sense.first == "entry_function_1_handle__out_array_port")) {
(sense.first == "entry_function_1_handle__out_array_port") ||
(sense.first == "entry_function_1_handle__data")
) {
--check;
}
}
Expand Down

0 comments on commit 750d6d9

Please sign in to comment.