Forum Discussion
2 Replies
- Altera_Forum
Honored Contributor
~& is not a valid operator in Verilog. For a NAND, you should write it as:
(~((!data_in_valid) && (data_in==GET_CONFIGURATION))) or (~((!data_in_valid) & (data_in==GET_CONFIGURATION))) In this case a long as data_in_valid is a single bit expression both will give the same answer. Pete - Altera_Forum
Honored Contributor
--- Quote Start --- ~& is not a valid operator in Verilog. For a NAND, you should write it as: (~((!data_in_valid) && (data_in==GET_CONFIGURATION))) or (~((!data_in_valid) & (data_in==GET_CONFIGURATION))) In this case a long as data_in_valid is a single bit expression both will give the same answer. Pete --- Quote End --- Thank you Pete!