Bug 347 - add setb (to CR pipeline?)
Summary: add setb (to CR pipeline?)
Status: RESOLVED FIXED
Alias: None
Product: Libre-SOC's first SoC
Classification: Unclassified
Component: Source Code (show other bugs)
Version: unspecified
Hardware: PC Mac OS
: --- enhancement
Assignee: Michael Nolan
URL:
Depends on:
Blocks:
 
Reported: 2020-05-24 20:57 BST by Luke Kenneth Casson Leighton
Modified: 2020-05-28 16:39 BST (History)
2 users (show)

See Also:
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:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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