KONRAD Frederic

example: fix warning in mixed example.

This fixes a suggest parentheses warning in the mixed example:

./pciesocket/examples/mixed/ddr_ram.cpp: In member function ‘virtual bool
ddr::read(gs::GSDataType::dtype&, tlm::gs_uint32, tlm::gs_uint32)’:
./pciesocket/examples/mixed/ddr_ram.cpp:44:3: attention : suggest parentheses
around ‘+’ inside ‘>>’ [-Wparentheses]

Signed-off-by: KONRAD Frederic <fred.konrad@greensocs.com>
... ... @@ -41,8 +41,10 @@ bool ddr::read(gs::GSDataType::dtype &data, const gs_uint32 addr, const gs_uint3
sc_assert(data.size()>=length);
if (length==0) return true;
DEMO_TRACE(sc_module::name(), "Reading %d bytes from memory address 0x%x, takes %d ns",
length, addr, (read_ws+length>>3)*clk_period);
DEMO_TRACE(sc_module::name(),
"Reading %d bytes from memory address 0x%x, takes %d ns", length,
addr, ((read_ws + length) >> 3) * clk_period);
wait((read_ws+length)*clk_period, SC_NS);
if (memory.size() != size/*.getValue()*/)
memory.resize(size/*.getValue()*/,0);
... ...