stanford-ppl / spatial-lang

Spatial: "Specify Parameterized Accelerators Through Inordinately Abstract Language"
MIT License
99 stars 12 forks source link

ScopeCheck sees DRAM dimension access as illegal input #222

Closed mattfel1 closed 6 years ago

mattfel1 commented 6 years ago

If I try to do something like this, it sees the input.rows and input.cols accesses as illegal, since they are RegRead of ArgIns created by the DRAM. I put a temporary hack in ScopeCheck.scala but this should probably be fixed for real

  def Convolution(output: DRAM2[T], 
                      input: DRAM2[T],
                      ...): Unit = {

...
    Foreach(input.rows by rowstride){row =>
      Foreach(input.cols by coltile){col => 
...
dkoeplin commented 6 years ago

Fixed - just have to move Scope Check after we fix this in the IR