sdnellen / open-register-design-tool

Tool to generate register RTL, models, and docs using SystemRDL or JSpec input
Apache License 2.0
15 stars 3 forks source link

RTl code has floating signals for HWRead SWwrite registers causing X's #9

Open sdnellen opened 5 years ago

sdnellen commented 5 years ago

From open-register-design-tool created by neenuprince: Juniper/open-register-design-tool#70

The .jrdllogic.sv file generates a signal for the HW Read SW write register, that is floating. the signal l2d_r is the signal that remains floating, causing X's to propogate. what I found is that this register genenrated code misses an assignment as below
always_comb begin l2d_other_rf_attr_hwrsww_r = rg_other_rf_attr_hwrsww_hwrsww; end

Simple rdl is as below //Register with hw = r and sw = w reg attr_hwrsww_t { name = "Hw r and sw w"; desc = "register with hw = r and sw = w"; default hw = r; default sw = w; field { fieldwidth = 32; // reset = 32'h0; } hwrsww = 32'h0; };

sdnellen commented 5 years ago

See issue #65