The RAMs are as large as Mathias makes them. You are probably right, I did
not check this carefully - please do whatever you need to make it
consistent!


On Thu, Sep 26, 2013 at 3:33 PM, Austin Belknap <notifications@github.com>wrote:

> In src/vmestream/OrscEmulator.cc:
>
> >
> >  OrscEmulator::OrscEmulator()
> >  {
> > -    register1 = (uint32_t*) malloc(sizeof(uint32_t));
> > -    register2 = (uint32_t*) malloc(sizeof(uint32_t));
> > -    ram1      = (uint32_t*) malloc(sizeof(uint32_t));
> > -    ram2      = (uint32_t*) malloc(sizeof(uint32_t));
> > +    register1 = 0;
> > +    register2 = 0;
> > +    ram1      = (uint32_t*) malloc(VMERAMSIZE * sizeof(uint32_t));
> > +    ram2      = (uint32_t*) malloc(VMERAMSIZE * sizeof(uint32_t));
> > +
> > +    // setup the VME stream mechanism
> > +    input_buffer = cbuffer_new();
> > +    output_buffer = cbuffer_new();
> > +
> > +    stream = (VMEStream*)malloc(sizeof(VMEStream));
> > +    stream->MAXRAM = VMERAMSIZE;
>
> So, MAXRAM is no longer referring to the number of words, but the number
> of bytes?
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/dabelknap/VMEStream/pull/10/files#r6600514>
> .
>