runs instructions that read other instructions' outputs

This commit is contained in:
Jacob Lifshay 2025-02-23 19:51:45 -08:00
parent 3bd5c77a3f
commit 5b15f4a6b4
Signed by: programmerjake
SSH key fingerprint: SHA256:HnFTLGpSm4Q4Fj502oCFisjZSoakwEuTsJJMSke63RQ
4 changed files with 29247 additions and 18604 deletions

View file

@ -415,6 +415,16 @@ pub fn reg_alloc(config: &CpuConfig) {
.element()
.HdlNone(),
);
connect(
unit_forwarding_info.unit_reg_frees[unit_index],
HdlOption::map(
ReadyValid::firing_data(unit_free_regs_tracker.free_in[0]),
|value| {
#[hdl]
UnitOutRegNum::<_> { value }
},
),
);
#[hdl]
if let HdlSome(output) = unit_to_reg_alloc.output {
#[hdl]