Forum Discussion
Altera_Forum
Honored Contributor
9 years ago --- Quote Start --- Perhaps you should replace the relational operator "equal" ( =24 ) by "less-or-equal" ( <=24 ). --- Quote End --- You seem to be suggesting that this statement is "making Count take the value of 24", when I thought I was doing "if Count is equal to the value '24'". If I make it <=24 then it wont be a pulse that is low for one clock cycle it will be low as soon as Count is a value that is less than 24 i.e. when the counter rolls over from FF to 00 then WriteEn will be set to zero. I tried the 'C' type statement if Count == 24 but that was rejected by the Compiler so I thought I had got the correct statement as if Count = 24, perhaps that is my mistake... regards PhilipJ