Bug 347

Summary: add setb (to CR pipeline?)
Product: Libre-SOC's first SoC Reporter: Luke Kenneth Casson Leighton <lkcl>
Component: Source CodeAssignee: Michael Nolan <mtnolan2640>
Status: RESOLVED FIXED    
Severity: enhancement CC: libre-soc-bugs, mtnolan2640
Priority: ---    
Version: unspecified   
Hardware: PC   
OS: Mac OS   
See Also: https://bugs.libre-soc.org/show_bug.cgi?id=314
NLnet milestone: --- total budget (EUR) for completion of task and all subtasks: 0
budget (EUR) for this task, excluding subtasks' budget: 0 parent task for budget allocation:
child tasks for budget allocation: The table of payments (in EUR) for this task; TOML format:

Description Luke Kenneth Casson Leighton 2020-05-24 20:57:09 BST
we should add setb and the most likely place to add it is the CR pipeline.

however i just spotted this though:

class DecodeCRIn(Elaboratable):

            with m.Case(CRInSel.BFA):
                comb += self.cr_bitfield.data.eq(self.dec.FormX.BFA[0:-1])
                comb += self.cr_bitfield.ok.eq(1)

# Set Boolean 

X-Form

* setb RT,BFA

    if CR[4*BFA+32] = 1 then
       RT <- 0xFFFF_FFFF_FFFF_FFFF
    else if CR[4*BFA+33]=1 then
       RT <- 0x0000_0000_0000_0001
    else
       RT <- 0x0000_0000_0000_0000
Comment 1 Michael Nolan 2020-05-28 16:39:06 BST
Added OP_SETB to cr/main_stage.py: https://git.libre-soc.org/?p=soc.git;a=commitdiff;h=9fc022b107d293611e70a54376bc10c78918a81b