[Open-graphics] Synthesizing oga1hq
Michael Meeuwisse
mickeymeeuw at gmail.com
Sun Aug 12 19:31:45 EDT 2007
- In stage 2 module definition add m_o
//> First stage of multiply
output[63:0] m_o;
// I don't get the Compute x / y part, but I do want to use x_o and
y_o here in essence.
wire[31:0] m_o = x_o[15:0] * y_o[15:0];
wire[47:32] m_o = x_o[15:0] * y_o[31:16];
wire[63:48] m_o = x_o[31:16] * y_o[15:0];
- In stage 3 module definition add m
//> First stage of multiply result
input[47:0] m;
// Does a static shift work like this?
`QOP_MULT: res_o <= (m[63:48] + m[47:32]) << 16 + m[31:0];
That should do it on the math-side of things I hope. Still don't know
whether this'll work in stage 2 due to the clock thingy.
Mike
www.wacco.mveas.com
More information about the Open-graphics
mailing list