chainastole
Newbie
I have two blocks in design, which functionality is almost similar (about 5% difference) and working together. It is quite obvious it need to be a single RTL file with selectors, activating each instance in the appropriate mode - "this is block A", "this is block B". What should be preferred - defines (`ifdef IS_BLOCK_A) or parameters (if(instance==BLOCK_A))? All relevant considerations are welcome.