- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
I would like accomplish next operation in DFB block:
When signal In1 present take value of stage A register and execute in MAC operation A*A . Computed value then put to holding register A.
I tryied to use simulator integrated in component but value of MacOut in output box is still zero.
Could you give me some advise please?
My code is below:
initial:
acu(hold,hold) dmux(srm,srm) alu(hold) mac(clra)
acu(hold,hold) dmux(srm,srm) alu(hold) mac(hold) jmp(eob, waitfordata)
waitfordata:
acu(hold,hold) addr(1) dmux(ba,ba) alu(hold) mac(macc) jmpl(in1,write_bus)
write_bus:
acu(hold,hold) dmux(srm,srm) alu(seta) mac(hold)
acu(hold,hold)addr(1) dmux(srm,srm) alu(setsem,001) mac(hold)write(abus)
acu(clear,clear) dmux(srm,srm) alu(hold) mac(hold)jmpl(eob,waitfordata)
- Labels:
-
PSoC 5LP