Altera_Forum
Honored Contributor
14 years agoSystemVerilog Coding Style
Hello,
I have what might seem a strange question - but as you might be able to see from my other posts, I am a young, inexperienced designer and am currently at University taking my major individual project. I am creating a hardware implementation of AES-128 algorithm in SystemVerilog, and as of tonight, have finished my first implementation and am now looking for any optimisations. I have coded 2 different versions of an Encryption Core...however both use different coding styles. They both operate the same, and simulate the same. One style uses more functions, and the other uses more ASSIGN statements to generate the combinational logic. The code that uses functions has an 10MHz higher FMAX on Quartus once synthesised...and im not sure why? I was wondering whether I could get some feedback on each style (files should be attached), and general best practices. *I dont expect you to understand the AES algorithm, and yes I havent uploaded the "KeyExpansion" module so that code wont compile* Any replies would be appreciated :)