Fixed ByteIM.sv and removed seven seg from A3 code

This commit is contained in:
TroubleElectrical committed 2026-11-05 14:33:41 +11:00
1 parent 74a15cf038
commit c894488c44
2 files changed
+2 -15

No files matched your search

+1 -1
View File
@@ -10,5 +10,5 @@ module ByteIM #(parameter m=5,n=2) (
// 2**(m-n) memory words
// 2**(n+3) bit wide words
// Reads the whole word that contains the addressed byte
ROM #(m-n,2**(n+3)) wordrom(Ad[m-1:n],Dout)
ROM #(m-n,2**(n+3)) wordrom(Ad[m-1:n],Dout);
endmodule
+1 -14
View File
@@ -11,24 +11,11 @@
`include "sign_extender.sv"
`include "gatereg.sv"
`ifdef QUARTUS_SYNTH
`include "seven_seg_4digit.sv"
`endif
module assignment3 #(width=5, romsz=9, ramsz=10)(
input logic [0:0] clk, input logic [0:0] rst
`ifdef QUARTUS_SYNTH
,
input logic [4:0] HID_Register,
input logic [0:0] HID_PC,
input logic [0:0] HID_Hi_Low,
output logic[7:0] out_seg_0,
output logic[7:0] out_seg_1,
output logic[7:0] out_seg_2,
output logic[7:0] out_seg_3
`endif
);
logic [31:0] regs_out [32];
logic [2**width-1:0] pc_addr, pc_addr_2;