Skip to content

Documentation clarification on starting DMA Command Register #16

@lxylxy123456

Description

@lxylxy123456

In https://github.com/UCDClassNitta/riscv-console/blob/main/docs/chipset.md#dma-command-register , I think it is better to specify the order of setting each field.
For example, does the instruction have to set all the fields (size and SDT) in one instruction, or can it set the size first and then the SDT?
I used a packed struct to access this register, and I get the following instructions in gcc's -O0, which is probably not going to work.

# a1 = 0x00000001
# a2 = 0x00000050
# a3 = 0x00000000
# a4 = 0x00000000
# a5 = 0x40000028
sb      a1,0(a5)
sb      a2,1(a5)
sb      a3,2(a5)
sb      a4,3(a5)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions