Deleted Added
sdiff udiff text old ( 12841:22aa7ba47bf9 ) new ( 12878:97fdce181f51 )
full compact
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

--- 44 unchanged lines hidden (view full) ---

53
54 sc_clock(const char *name, double period_v, sc_time_unit period_tu,
55 double duty_cycle=0.5);
56
57 sc_clock(const char *name, double period_v, sc_time_unit period_tu,
58 double duty_cycle, double start_time_v,
59 sc_time_unit start_time_tu, bool posedge_first=true);
60
61 virtual ~sc_clock();
62
63 virtual void write(const bool &);
64
65 const sc_time &period() const;
66 double duty_cycle() const;
67 const sc_time &start_time() const;
68 bool posedge_first() const;

--- 6 unchanged lines hidden (view full) ---

75 private:
76 // Disabled
77 sc_clock(const sc_clock &) : sc_interface(), sc_signal<bool>() {}
78 sc_clock &operator = (const sc_clock &) { return *this; }
79};
80
81typedef sc_in<bool> sc_in_clk;
82
83} // namespace sc_core
84
85#endif //__SYSTEMC_EXT_CHANNEL_SC_CLOCK_HH__