1/* 2 * Copyright 2018 Google, Inc. 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions are 6 * met: redistributions of source code must retain the above copyright 7 * notice, this list of conditions and the following disclaimer; 8 * redistributions in binary form must reproduce the above copyright --- 296 unchanged lines hidden (view full) --- 305 } 306#define SC_CTHREAD(name, clk) \ 307 { \ 308 ::sc_gem5::Process *p = \ 309 ::sc_gem5::newCThreadProcess( \ 310 #name, new ::sc_gem5::ProcessMemberFuncWrapper< \ 311 SC_CURRENT_USER_MODULE>(this, \ 312 &SC_CURRENT_USER_MODULE::name)); \ |
313 if (p) \ 314 this->sensitive(p, clk); \ |
315 } 316 317// Nonstandard 318// Documentation for this is very scarce, but it looks like it's supposed to 319// stop the currently executing cthread, or if a cthread isn't running report 320// an error. 321void halt(); 322void at_posedge(const sc_signal_in_if<bool> &); --- 40 unchanged lines hidden --- |