run formatter

This commit is contained in:
Nicholas Orlowsky 2024-01-31 21:04:52 -06:00
parent e679a3ce68
commit f715709942
9 changed files with 550 additions and 469 deletions

View file

@ -1,18 +1,19 @@
module rom_loader (
output bit [7:0] memory [0:4095]
);
output bit [7:0] memory[0:4095]
);
import "DPI-C" function int load_rom();
import "DPI-C" function bit [7:0] get_next_instr();
import "DPI-C" function void close_rom();
import "DPI-C" function int load_rom();
import "DPI-C" function bit [7:0] get_next_instr();
import "DPI-C" function void close_rom();
initial begin
int rom_size = load_rom();
$display("HW : ROM size is %0d bytes (%0d bits) (%0d instructions)", rom_size, rom_size * 8, rom_size / 2);
for (int i = 0; i < rom_size; i++) begin
memory['h200 + i] = get_next_instr();
end
close_rom();
$display("HW : ROM loaded successfully");
initial begin
int rom_size = load_rom();
$display("HW : ROM size is %0d bytes (%0d bits) (%0d instructions)", rom_size,
rom_size * 8, rom_size / 2);
for (int i = 0; i < rom_size; i++) begin
memory['h200+i] = get_next_instr();
end
close_rom();
$display("HW : ROM loaded successfully");
end
endmodule