import pyrtl main_memory = pyrtl.MemBlock(bitwidth=32, addrwidth=32, name=”main_mem”) virtual_addr_i = pyrtl.Input(bitwidth=32, name=”virtual_addr_i”) new_req_i = pyrtl.Input(bitwidth=1, name=”new_req_i”) reset_i = pyrtl.Input(bitwidth=1, name=”reset_i”) req_type_i = pyrtl.Input(bitwidth=1, name=”req_type_i”) physical_addr_o = pyrtl.Output(bitwidth=32,name=”physical_addr_o”) dirty_o = pyrtl.Output(bitwidth=1, name=”dirty_o”) valid_o = pyrtl.Output(bitwidth=1, name=”valid_o”) ref_o = pyrtl.Output(bitwidth=1, name=”ref_o”) error_code_o = pyrtl.Output(bitwidth=3, name=”error_code_o”) finished_walk_o = pyrtl.Output(bitwidth=1, name=”finished_walk_o”) page_fault = pyrtl.WireVector(bitwidth=1, name=”page_fault”) state = pyrtl.Register(bitwidth=2, name=”state”) base_register …
AC061D26, Read More »