sc_buffer.hh (13205:e965ce37608e) | sc_buffer.hh (13277:b479038de4d9) |
---|---|
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 --- 36 unchanged lines hidden (view full) --- 45 sc_buffer() : sc_signal<T, WRITER_POLICY>(sc_gen_unique_name("buffer")) {} 46 explicit sc_buffer(const char *name) : 47 sc_signal<T, WRITER_POLICY>(sc_gen_unique_name(name)) 48 {} 49 50 virtual void 51 write(const T &t) 52 { | 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 --- 36 unchanged lines hidden (view full) --- 45 sc_buffer() : sc_signal<T, WRITER_POLICY>(sc_gen_unique_name("buffer")) {} 46 explicit sc_buffer(const char *name) : 47 sc_signal<T, WRITER_POLICY>(sc_gen_unique_name(name)) 48 {} 49 50 virtual void 51 write(const T &t) 52 { |
53# if !defined(SC_NO_WRITE_CHECK) 54 { 55 this->_checker.checkWriter(); 56 } 57# endif |
|
53 this->m_new_val = t; 54 this->request_update(); 55 } 56 57 sc_buffer<T, WRITER_POLICY> & 58 operator = (const T &arg) 59 { 60 write(arg); --- 33 unchanged lines hidden --- | 58 this->m_new_val = t; 59 this->request_update(); 60 } 61 62 sc_buffer<T, WRITER_POLICY> & 63 operator = (const T &arg) 64 { 65 write(arg); --- 33 unchanged lines hidden --- |