1 module repwhile_test001(input [5:0] a, output [7:0] y, output [31:0] x);
7 while (value > 0) begin
14 function [31:0] myexp2;
23 reg [7:0] y_table [63:0];
24 reg [31:0] x_table [63:0];
28 for (i = 0; i < 64; i = i+1) begin
29 y_table[i] <= mylog2(i);
30 x_table[i] <= myexp2(i);
34 assign y = y_table[a];
35 assign x = x_table[a];