Skip to content

[P0] Codegen error for FIR on 2x4 CGRA #205

@tancheng

Description

@tancheng

The arch.yaml:

architecture:
  name: Reference CGRA Device
  version: '1.0'
multi_cgra_defaults:
  base_topology: mesh
  rows: 1
  columns: 1
  memory:
    capacity: 1024
per_cgra_defaults:
  rows: 2
  columns: 4
  ctrl_mem_items: 8
  base_topology: mesh
  memory:
    banks: 16
tile_defaults:
  num_registers: 32
  operations:
    - add
    - load
    - logic
    - mac
    - mul
    - phi
    - shift
    - store
link_defaults:
  latency: 1
  bandwidth: 32
link_overrides: []
tile_overrides: []
extensions:
  crossbar: false
simulator:
  execution_model: serial
  logging:
    enabled: true
    file: output.log
  driver:
    name: Driver
    frequency: 1GHz
  device:
    name: Device
    frequency: 1GHz
    bind_to_architecture: true

It reports:

/cgra/dataflow/test/e2e/fir/Output/fir_kernel.mlir.tmp-kernel.mlir:14:17: error: same-tile data_mov without register mapping is illegal. Provide a register in mapping_locs.
  ^bb1(%4: i64, %5: i32):  // 2 preds: ^bb0, ^bb1

Either sth wrong with mapping or with codegen.

@ShangkunLi Can you plz help take a look?

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions