[Libre-soc-dev] daily kan-ban update 16aug2021

Tobias Platen libre-soc at platen-software.de
Mon Aug 16 18:58:18 BST 2021

On Mon, 16 Aug 2021 18:32:56 +0200
Tobias Platen <libre-soc at platen-software.de> wrote:

> today: continuing where I left two weeks ago
this includes fixing the renamed symbols. I get an AttributeError in the store function:

def store(dut, src1, src2, src3, imm, imm_ok=True, update=False,
    print("ST", src1, src2, src3, imm, imm_ok, update)
    yield dut.oper_i.insn_type.eq(MicrOp.OP_STORE)
    yield dut.oper_i.data_len.eq(2)  # half-word
    yield dut.oper_i.byte_reverse.eq(byterev)
    yield dut.src1_i.eq(src1)
    yield dut.src2_i.eq(src2)
    yield dut.src3_i.eq(src3)
    #FIXME -- symbols have been renamed --
    #orig yield dut.oper_i.imm_data.imm.eq(imm)
    #orig yield dut.oper_i.imm_data.ok.eq(imm_ok)
    #orig yield dut.oper_i.update.eq(update)
    yield dut.oper_i.imm_data.data.eq(imm)
    yield dut.oper_i.imm_data.ok.eq(imm_ok)
    #error here: yield dut.oper_i.update.eq(update)
    #AttributeError: Record 'oper_i_None' does not have a field 'update'.
    #Did you mean one of: insn_type, fn_unit, imm_data, zero_a, rc, oe,
    #msr, is_32bit, is_signed, data_len, byte_reverse, sign_extend,
    #ldst_mode, insn, sv_pred_sz, sv_pred_dz, sv_saturate, sv_ldstmode, SV_Ptype
    yield dut.issue_i.eq(1)
    yield dut.issue_i.eq(0)
> _______________________________________________
> Libre-soc-dev mailing list
> Libre-soc-dev at lists.libre-soc.org
> http://lists.libre-soc.org/mailman/listinfo/libre-soc-dev

Tobias Platen <libre-soc[at]platen-software[dot]de>

More information about the Libre-soc-dev mailing list