sc_module.hh (13191:a2254693aa5b) | sc_module.hh (13210:8f6d757c46dc) |
---|---|
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)); \ | 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; \ 315 this->sensitive << clk; \ 316 } \ | 313 if (p) \ 314 this->sensitive(p, clk); \ |
317 } 318 319// Nonstandard 320// Documentation for this is very scarce, but it looks like it's supposed to 321// stop the currently executing cthread, or if a cthread isn't running report 322// an error. 323void halt(); 324void at_posedge(const sc_signal_in_if<bool> &); --- 40 unchanged lines hidden --- | 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 --- |