VTEC is broken with a loud tick
I have a 08 Si with the K20z3 with flashpro and everything. So I went to school the other day about an hour from where I live and VTEC started cutting in and out when I was about ten minutes from school. I parked it, went to class and about two hours later, I got back in to drive and it was acting normal again. Once the engine got to normal temperature, VTEC starting cutting out again and eventually wouldn't kick in at all. And after letting the car sit again when I got to work, it still never started working again. My automatic assumption was to take off the VTEC solenoid and clean the screen and make sure there was no trash preventing it to work right. I put the solenoid back on, and it still didn't work. So I knew I had to order a new solenoid assembly.
Now here's what is weird. I drive it without VTEC home as I have no other option, and the next day I'm going to work and about 3 minutes from my house, the engine dies on me. I was dogging it or anything like that, I knew VTEC wasn't working and I was keeping the rpms below 3 - 4k. I pulled over and let it sit for awhile, checked all my fluids and everything and it started right back up, but it now has a crazy loud tick. Almost a knock. I know these motors tick normally, but this is like a valve tick or something. I can't exactly tell. The tick is constant at idle and gets worse as the rpms go up. I get my new VTEC solenoid in the mail in a couple days, but is that what's causing the problem? Any ideas?