forked from libre-chip/cpu
runs instructions that read other instructions' outputs
This commit is contained in:
parent
3bd5c77a3f
commit
5b15f4a6b4
4 changed files with 29247 additions and 18604 deletions
|
|
@ -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]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue