Verilog Tools


Not an iPhone App but some Verilog tools that use my recently discovered PHP skills!

This script converts Intel hex into Verilog readmemh format. So if you are working on an ASIC with an 8051 core and want to simulate your C programs on the logic, just copy the hex output from the compiler (eg Keil uVision) and paste it into the box below, then click Convert.

You can also use this script to generate an instantiation of a Verilog module, complete with input, output and inout wire declarations.

Intel hex to Verilog readmemh
Verilog readmemh to Intel hex
Verilog module to Verilog instantiation




OST Referral

Intel Hex


:10000000759850758920758DCBD28E75900075903E
:10001000FF7590007590FF007590007590FF7590CA
:0E002000007590FF75995A3099FDC29980DDE8
:00000001FF


Verilog Readmemh


@0000
75 98 50 75 89 20 75 8D CB D2 8E 75 90 00 75 90
@0010
FF 75 90 00 75 90 FF 00 75 90 00 75 90 FF 75 90
@0020
00 75 90 FF 75 99 5A 30 99 FD C2 99 80 DD


Verilog Module


module mux (a, b, s, y);

input [3:0] a, b;
input s;

output [3:0] y;

assign y = s ? a : b;

endmodule