primitive BRAM + EOF + grey