URL
https://opencores.org/ocsvn/pairing/pairing/trunk
Subversion Repositories pairing
[/] [pairing/] [trunk/] [testbench/] [test_tate_pairing.v] - Rev 12
Go to most recent revision | Compare with Previous | Blame | View Log
`timescale 1ns / 1ps `include "../rtl/inc.v" module test_tate_pairing; // Inputs reg clk; reg reset; reg [`WIDTH:0] x1, y1, x2, y2; // Outputs wire done; wire [`W6:0] out; // Vars reg [`W6:0] wish; // Instantiate the Unit Under Test (UUT) tate_pairing uut ( .clk(clk), .reset(reset), .x1(x1), .y1(y1), .x2(x2), .y2(y2), .done(done), .out(out) ); initial begin // Initialize Inputs clk = 0; reset = 0; x1 = 0; y1 = 0; x2 = 0; y2 = 0; // Wait 100 ns for global reset to finish #100; // Add stimulus here x1 = 194'h6a18950064046a122a14118668466a262a91509688159890; y1 = 194'h69112569422aa0a25224aa010888066061124a8685566825; x2 = 194'h155945aa8924654812564110544995a28845901211454814; y2 = 194'h8481099460280628960a82559920000a99a2106955289a40; wish = {{194'h148a60225a14a81189aa09a22848104418aa6505801246205,194'h520094820010a12551069915258a58848501052005a85609},{194'ha484046591204499252009806480198a2549624a5181695,194'h21905848428558a806805a4518844049651812a88955a8868},{194'h5565059245921805891121a95a6949564201a2a068910558,194'ha6298884510610298462582969269a122260a05a8241055a}}; @ (negedge clk); reset = 1; @ (negedge clk); reset = 0; @ (posedge done); @ (negedge clk); if (out !== wish) $display("E"); $finish; end always #5 clk = ~clk; endmodule
Go to most recent revision | Compare with Previous | Blame | View Log