You have to print screenshot for the 3 codes as described below 1.Write a Verilog code and a test bench to implement a ROM block to save the values specified in table 2, i.e. memory[X]=X^2. $iverilog...


You have to print screenshot for the 3 codes as described below<br>1.Write a Verilog code and a test bench to implement a ROM block to save the values<br>specified in table 2, i.e. memory[X]=X^2.<br>$iverilog -o main *.v<br>$vvp main<br>5 OUT= 25<br>6 OUT=<br>Address =<br>Address =<br>36<br>2.Write a Verilog code and a test bench to implement a ROM block to save the values<br>specified in table 2, i.e. memory[X]=X^3.<br>$vvp main<br>Address =<br>1 OUT=<br>1<br>Address =<br>2 OUT=<br>8<br>Address =<br>4 OUT=<br>64<br>3. Build a new module which takes X as an input while the output Y = 2X^2 + X^3 + X,<br>using the ROM modules you built in parts 1 and 2.<br>$iverilog -o main *.v<br>$vvp main<br>Address =<br>1 ,2X^2+X^3+X=<br>4<br>Address =<br>2 ,2X^2+X^3+X=<br>18<br>able2<br>X^2<br>X^3<br>X^2<br>X^3<br>1<br>9<br>81<br>729<br>2<br>4<br>8<br>10<br>100<br>1000<br>3<br>9<br>27<br>11<br>121<br>1331<br>4<br>16<br>64<br>12<br>144<br>1782<br>5<br>25<br>125<br>13<br>169<br>2197<br>6<br>36<br>216<br>14<br>196<br>2744<br>49<br>343<br>15<br>225<br>3375<br>8<br>64<br>512|<br>

Extracted text: You have to print screenshot for the 3 codes as described below 1.Write a Verilog code and a test bench to implement a ROM block to save the values specified in table 2, i.e. memory[X]=X^2. $iverilog -o main *.v $vvp main 5 OUT= 25 6 OUT= Address = Address = 36 2.Write a Verilog code and a test bench to implement a ROM block to save the values specified in table 2, i.e. memory[X]=X^3. $vvp main Address = 1 OUT= 1 Address = 2 OUT= 8 Address = 4 OUT= 64 3. Build a new module which takes X as an input while the output Y = 2X^2 + X^3 + X, using the ROM modules you built in parts 1 and 2. $iverilog -o main *.v $vvp main Address = 1 ,2X^2+X^3+X= 4 Address = 2 ,2X^2+X^3+X= 18 able2 X^2 X^3 X^2 X^3 1 9 81 729 2 4 8 10 100 1000 3 9 27 11 121 1331 4 16 64 12 144 1782 5 25 125 13 169 2197 6 36 216 14 196 2744 49 343 15 225 3375 8 64 512|

Jun 05, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here