1
0

coreplex: print the A first to look nicer

This commit is contained in:
Wesley W. Terpstra 2017-10-18 16:52:35 -07:00
parent a1ac23d7ec
commit 82b1aa8116

View File

@ -169,11 +169,11 @@ abstract class BaseCoreplexModule[+L <: BaseCoreplex](_outer: L) extends BareCor
println(fmt.format( println(fmt.format(
range.base, range.base,
range.base+range.size, range.base+range.size,
if (a) 'A' else ' ',
if (r) 'R' else ' ', if (r) 'R' else ' ',
if (w) 'W' else ' ', if (w) 'W' else ' ',
if (x) 'X' else ' ', if (x) 'X' else ' ',
if (c) 'C' else ' ', if (c) 'C' else ' ',
if (a) 'A' else ' ',
names.mkString(", "))) names.mkString(", ")))
s"""{"base":[${range.base}],"size":[${range.size}],"r":[$r],"w":[$w],"x":[$x],"c":[$c],"a":[$a],"names":[${names.map('"'+_+'"').mkString(",")}]}""" s"""{"base":[${range.base}],"size":[${range.size}],"r":[$r],"w":[$w],"x":[$x],"c":[$c],"a":[$a],"names":[${names.map('"'+_+'"').mkString(",")}]}"""
} }