Fixed ByteIM.sv and removed seven seg from A3 code
This commit is contained in:
2 files changed
+3
-16
No files matched your search
+1
-1
@@ -10,5 +10,5 @@ module ByteIM #(parameter m=5,n=2) (
|
|||||||
// 2**(m-n) memory words
|
// 2**(m-n) memory words
|
||||||
// 2**(n+3) bit wide words
|
// 2**(n+3) bit wide words
|
||||||
// Reads the whole word that contains the addressed byte
|
// 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
|
endmodule
|
||||||
+2
-15
@@ -11,25 +11,12 @@
|
|||||||
`include "sign_extender.sv"
|
`include "sign_extender.sv"
|
||||||
`include "gatereg.sv"
|
`include "gatereg.sv"
|
||||||
|
|
||||||
`ifdef QUARTUS_SYNTH
|
|
||||||
`include "seven_seg_4digit.sv"
|
|
||||||
`endif
|
|
||||||
|
|
||||||
module assignment3 #(width=5, romsz=9, ramsz=10)(
|
module assignment3 #(width=5, romsz=9, ramsz=10)(
|
||||||
input logic [0:0] clk, input logic [0:0] rst
|
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 [31:0] regs_out [32];
|
||||||
|
|
||||||
logic [2**width-1:0] pc_addr, pc_addr_2;
|
logic [2**width-1:0] pc_addr, pc_addr_2;
|
||||||
logic [2**width-1:0] pc_addr_write;
|
logic [2**width-1:0] pc_addr_write;
|
||||||
|
|||||||
Reference in new issue
Block a user