Forum Discussion
Altera_Forum
Honored Contributor
16 years agowhat is the circuit of 2^n -1
these is a problem for me,i need some help. how can i use verilog describe 2^n -1 the input interface is input[3:0] n; the output interface is output [15:0] result; i know can u...
Altera_Forum
Honored Contributor
16 years agoThat is correct, you can use a small ROM as a lookup table based decoder. Just follow the ROM coding style in that link I posted. Keep in mind that this ROM will have a latency of one clock cycle.