Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

NeeD Help in My CIP ?

Status
Not open for further replies.

adam_lo

Newbie level 6
Newbie level 6
Joined
Feb 21, 2013
Messages
11
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Visit site
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.
 

are you sure one of the operands isnt 0?
yes of course,
in c code

MYIP_mWriteSlaveReg0(XPAR_MYIP_0_BASEADDR,0,12);
MYIP_mWriteSlaveReg1(XPAR_MYIP_0_BASEADDR,1,3);
res=MYIP_mReadSlaveReg2(XPAR_MYIP_0_BASEADDR,2);
xil_printf("%d",res);
 

that doesnt mean anything. Are you sure the values are being set correctly in the registers?
 

that doesnt mean anything. Are you sure the values are being set correctly in the registers?
Thanks TrickyDicky for your reply
Yes,
When I read the register the value printed correct
Are you mean that?

res=MYIP_mReadSlaveReg0(XPAR_MYIP_0_BASEADDR,0);
xil_printf("%d",res);
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top