adam_lo
Newbie level 6
- Joined
- Feb 21, 2013
- Messages
- 11
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1,281
- Activity points
- 1,571
Hello
I create in XPS program Custom ip that add two number and It work correct and the result appeared in hyper terminal .
But when replace add to multiplier two no. the result in hyper terminal always be zero ?
This code I add after beginning in arch. in user logic
mult : process (slv_reg0,slv_reg1,slv_reg2)
variable r1,r2 : std_logic_vector(0 to 7);
begin
r1:=slv_reg0(0 to 7);
r2:=slv_reg1(0 to 7);
slv_reg2(0 to 15)<= r1 *r2;
end process mult;
reg_out <=slv_reg2(0 to 15);
and make the reg_out external port .
Plz ,help me to overcome this problem.
I create in XPS program Custom ip that add two number and It work correct and the result appeared in hyper terminal .
But when replace add to multiplier two no. the result in hyper terminal always be zero ?
This code I add after beginning in arch. in user logic
mult : process (slv_reg0,slv_reg1,slv_reg2)
variable r1,r2 : std_logic_vector(0 to 7);
begin
r1:=slv_reg0(0 to 7);
r2:=slv_reg1(0 to 7);
slv_reg2(0 to 15)<= r1 *r2;
end process mult;
reg_out <=slv_reg2(0 to 15);
and make the reg_out external port .
Plz ,help me to overcome this problem.